org.eigenbase.sql
Class SqlTimeLiteral

java.lang.Object
  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:
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).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.sql.SqlLiteral
SqlLiteral.SqlSymbol
 
Field Summary
 
Fields inherited from class org.eigenbase.sql.SqlAbstractDateTimeLiteral
formatString, hasTimeZone, precision
 
Fields inherited from class org.eigenbase.sql.SqlLiteral
value
 
Fields inherited from class org.eigenbase.sql.SqlNode
emptyArray
 
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

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

SqlTimeLiteral

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

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