|
|||||||||
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.TJavaObjectType
public class TJavaObjectType
An implementation of TType for a java object of possibly defined type.
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 | |
---|---|
TJavaObjectType(java.lang.String class_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.String |
getJavaClassTypeString()
Returns the java class type of 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 TJavaObjectType(java.lang.String class_type)
Method Detail |
---|
public java.lang.String getJavaClassTypeString()
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 |