org.eigenbase.sql
Class SqlTimeLiteral
java.lang.Object
org.eigenbase.sql.SqlNode
org.eigenbase.sql.SqlLiteral
org.eigenbase.sql.SqlAbstractDateTimeLiteral
org.eigenbase.sql.SqlTimeLiteral
- All Implemented Interfaces:
- Cloneable
public class SqlTimeLiteral
- extends SqlAbstractDateTimeLiteral
A SQL literal representing a TIME value, for example TIME
'14:33:44.567'
.
Create values using SqlLiteral.createTime(java.util.Calendar, int, org.eigenbase.sql.parser.SqlParserPos)
.
Methods inherited from class org.eigenbase.sql.SqlLiteral |
accept, bigDecimalValue, booleanValue, createApproxNumeric, createBinaryString, createBinaryString, createBoolean, createCharString, createCharString, createDate, createExactNumeric, createInterval, createNegative, createNull, createSample, createSymbol, createTime, createTimestamp, createUnknown, equals, equalsDeep, getKind, getMonotonicity, getStringValue, getTypeName, getValue, hashCode, intValue, longValue, sampleValue, stringValue, symbolValue, unescapeUnicode, validate, valueMatchesType |
SqlTimeLiteral
SqlTimeLiteral(Calendar t,
int precision,
boolean hasTZ,
SqlParserPos pos)
SqlTimeLiteral
SqlTimeLiteral(Calendar t,
int precision,
boolean hasTZ,
String format,
SqlParserPos pos)
clone
public SqlNode clone(SqlParserPos pos)
- Description copied from class:
SqlNode
- Clones a SqlNode with a different position.
- Overrides:
clone
in class SqlLiteral
toString
public String toString()
- Description copied from class:
SqlAbstractDateTimeLiteral
- Returns e.g.
DATE '1969-07-21'
.
- Specified by:
toString
in class SqlAbstractDateTimeLiteral
toFormattedString
public String toFormattedString()
- Returns e.g. '03:05:67.456'.
- Specified by:
toFormattedString
in class SqlAbstractDateTimeLiteral