|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.TType
com.mckoi.database.TDateType
public class TDateType
An implementation of TType for date objects.
Field Summary |
---|
Fields inherited from class com.mckoi.database.TType |
---|
ARRAY_TYPE, BINARY_TYPE, BOOLEAN_TYPE, DATE_TYPE, NULL_TYPE, NUMERIC_TYPE, QUERY_PLAN_TYPE, STRING_TYPE |
Constructor Summary | |
---|---|
TDateType(int sql_type)
Constructs the type. |
Method Summary | |
---|---|
int |
calculateApproximateMemoryUse(java.lang.Object ob)
Calculates the approximate memory usage of an object of this type in bytes. |
boolean |
comparableTypes(TType type)
Returns true if the type of this object is logically comparable to the type of the given object. |
int |
compareObs(java.lang.Object ob1,
java.lang.Object ob2)
Compares two objects that are logically comparable under this type. |
java.lang.Class |
javaClass()
Returns the Java Class that is used to represent this type of object. |
Methods inherited from class com.mckoi.database.TType |
---|
asEncodedString, asEncodedString, asSQLString, binaryType, booleanType, castObjectToTType, dateType, decodeString, decodeTypes, fromClass, getSQLType, getWidestType, javaObjectType, numericType, stringType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TDateType(int sql_type)
Method Detail |
---|
public boolean comparableTypes(TType type)
TType
comparableTypes
in class TType
public int compareObs(java.lang.Object ob1, java.lang.Object ob2)
TType
compareObs
in class TType
public int calculateApproximateMemoryUse(java.lang.Object ob)
TType
calculateApproximateMemoryUse
in class TType
public java.lang.Class javaClass()
TType
javaClass
in class TType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |