public class TimeValue extends java.lang.Object implements Expression, PrimitiveValue
PrimitiveValue.InvalidPrimitive
Modifier and Type | Field and Description |
---|---|
private java.sql.Time |
value |
Constructor and Description |
---|
TimeValue(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionVisitor expressionVisitor) |
boolean |
equals(java.lang.Object o) |
PrimitiveType |
getType() |
java.sql.Time |
getValue() |
int |
hashCode() |
void |
setValue(java.sql.Time d) |
boolean |
toBool()
The boolean value of this primitive
|
double |
toDouble()
The double value of this primitive
|
long |
toLong()
The long value of this primitive
|
java.lang.String |
toRawString()
An unescaped string encoding of this primitive value.
|
java.lang.String |
toString() |
public void accept(ExpressionVisitor expressionVisitor)
accept
in interface Expression
public java.sql.Time getValue()
public void setValue(java.sql.Time d)
public java.lang.String toRawString()
PrimitiveValue
toRawString
in interface PrimitiveValue
public java.lang.String toString()
toString
in class java.lang.Object
public long toLong() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toLong
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic double toDouble() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toDouble
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic boolean toBool() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toBool
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PrimitiveType getType()
getType
in interface PrimitiveValue