Class SqlTimeLiteral

  extended by org.eigenbase.sql.SqlNode
      extended by org.eigenbase.sql.SqlLiteral
          extended by org.eigenbase.sql.SqlAbstractDateTimeLiteral
              extended by org.eigenbase.sql.SqlTimeLiteral
All Implemented Interfaces:

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).

Nested Class Summary
Nested classes/interfaces inherited from class org.eigenbase.sql.SqlLiteral
Field Summary
Fields inherited from class org.eigenbase.sql.SqlAbstractDateTimeLiteral
formatString, hasTimeZone, precision
Fields inherited from class org.eigenbase.sql.SqlLiteral
Fields inherited from class org.eigenbase.sql.SqlNode
Constructor Summary
SqlTimeLiteral(Calendar t, int precision, boolean hasTZ, SqlParserPos pos)
SqlTimeLiteral(Calendar t, int precision, boolean hasTZ, String format, SqlParserPos pos)
Method Summary
 SqlNode clone(SqlParserPos pos)
          Clones a SqlNode with a different position.
 String toFormattedString()
          Returns e.g.
 String toString()
          Returns e.g.
Methods inherited from class org.eigenbase.sql.SqlAbstractDateTimeLiteral
createSqlType, getCal, getDate, getPrec, getTime, getTimestamp, getTimeZone, toValue, unparse
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
Methods inherited from class org.eigenbase.sql.SqlNode
clone, cloneArray, equalDeep, findValidOptions, getParserPosition, isA, toSqlString, toSqlString, validateExpr
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


SqlTimeLiteral(Calendar t,
               int precision,
               boolean hasTZ,
               SqlParserPos pos)


SqlTimeLiteral(Calendar t,
               int precision,
               boolean hasTZ,
               String format,
               SqlParserPos pos)
Method Detail


public SqlNode clone(SqlParserPos pos)
Description copied from class: SqlNode
Clones a SqlNode with a different position.

clone in class SqlLiteral


public String toString()
Description copied from class: SqlAbstractDateTimeLiteral
Returns e.g. DATE '1969-07-21'.

Specified by:
toString in class SqlAbstractDateTimeLiteral


public String toFormattedString()
Returns e.g. '03:05:67.456'.

Specified by:
toFormattedString in class SqlAbstractDateTimeLiteral