cascading.lingual.type
Class SQLDateTimeCoercibleType

java.lang.Object
  extended by org.eigenbase.reltype.RelDataTypeImpl
      extended by org.eigenbase.sql.type.AbstractSqlType
          extended by org.eigenbase.sql.type.BasicSqlType
              extended by cascading.lingual.type.SQLDateTimeCoercibleType
All Implemented Interfaces:
CoercibleType, Serializable, Cloneable, Type, org.eigenbase.reltype.RelDataType, org.eigenbase.reltype.RelDataTypeFamily
Direct Known Subclasses:
SQLDateCoercibleType, SQLTimeCoercibleType, SQLTimestampCoercibleType

public abstract class SQLDateTimeCoercibleType
extends org.eigenbase.sql.type.BasicSqlType
implements CoercibleType

See Also:
Serialized Form

Field Summary
static int MILLIS_PER_DAY
           
 
Fields inherited from class org.eigenbase.sql.type.AbstractSqlType
isNullable, typeName
 
Fields inherited from class org.eigenbase.reltype.RelDataTypeImpl
digest, fieldList, fields
 
Fields inherited from interface org.eigenbase.reltype.RelDataType
PRECISION_NOT_SPECIFIED, SCALE_NOT_SPECIFIED
 
Constructor Summary
protected SQLDateTimeCoercibleType(org.eigenbase.sql.type.SqlTypeName sqlTypeName)
           
 
Method Summary
 Object canonical(Object value)
           
 Object coerce(Object value, Type to)
           
protected abstract  org.eigenbase.util14.ZonelessDatetime createInstance()
           
 boolean equals(Object object)
           
 int hashCode()
           
 boolean isNullable()
           
protected abstract  org.eigenbase.util14.ZonelessDatetime parse(String value)
           
 
Methods inherited from class org.eigenbase.sql.type.BasicSqlType
generateTypeString, getCharset, getCollation, getLimit, getPrecision, getScale
 
Methods inherited from class org.eigenbase.sql.type.AbstractSqlType
getFamily, getPrecedenceList, getSqlTypeName
 
Methods inherited from class org.eigenbase.reltype.RelDataTypeImpl
computeDigest, getComparability, getComponentType, getField, getFieldCount, getFieldList, getFieldNames, getFieldOrdinal, getFields, getFullTypeString, getIntervalQualifier, getKeyType, getSqlIdentifier, getValueType, isStruct, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cascading.tuple.type.CoercibleType
getCanonicalType
 

Field Detail

MILLIS_PER_DAY

public static final int MILLIS_PER_DAY
See Also:
Constant Field Values
Constructor Detail

SQLDateTimeCoercibleType

protected SQLDateTimeCoercibleType(org.eigenbase.sql.type.SqlTypeName sqlTypeName)
Method Detail

canonical

public Object canonical(Object value)
Specified by:
canonical in interface CoercibleType

coerce

public Object coerce(Object value,
                     Type to)
Specified by:
coerce in interface CoercibleType

parse

protected abstract org.eigenbase.util14.ZonelessDatetime parse(String value)

createInstance

protected abstract org.eigenbase.util14.ZonelessDatetime createInstance()

isNullable

public boolean isNullable()
Specified by:
isNullable in interface org.eigenbase.reltype.RelDataType
Overrides:
isNullable in class org.eigenbase.sql.type.AbstractSqlType

hashCode

public int hashCode()
Overrides:
hashCode in class org.eigenbase.reltype.RelDataTypeImpl

equals

public boolean equals(Object object)
Overrides:
equals in class org.eigenbase.reltype.RelDataTypeImpl


Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.