Uses of Class
com.mckoi.database.TType
-
Packages that use TType Package Description com.mckoi.database The core database classes for Mckoi.com.mckoi.database.interpret com.mckoi.database.sql These classes parse SQL statements in Mckoi. -
-
Uses of TType in com.mckoi.database
Subclasses of TType in com.mckoi.database Modifier and Type Class Description classTArrayTypeAn implementation of TType for an expression array.classTBinaryTypeAn implementation of TType for a binary block of data.classTBooleanTypeAn implementation of TType for a boolean value.classTDateTypeAn implementation of TType for date objects.classTJavaObjectTypeAn implementation of TType for a java object of possibly defined type.classTNullTypeAn implementation of TType that represents a NULL type.classTNumericTypeAn implementation of TType for a number.classTQueryPlanTypeAn implementation of TType for a query plan value.classTStringTypeAn implementation of TType for a String.Fields in com.mckoi.database declared as TType Modifier and Type Field Description TTypeDataTableColumnDef. typeThe TType object for this column.Methods in com.mckoi.database that return TType Modifier and Type Method Description static TTypeTType. binaryType(int sql_type, int size)Returns a TBinaryType object.static TTypeTType. booleanType(int sql_type)Returns a TBooleanType object.static TTypeTType. dateType(int sql_type)Returns a TDateType object.static TTypeTType. decodeString(java.lang.String encoded_str)Decodes a String that has been encoded with the 'asEncodedString' method and returns a TType that represented the type.static TType[]TType. decodeTypes(java.lang.String encoded_str)Decodes a list (or array) of TType objects that was previously encoded with the 'asEncodedString(Type[])' method.static TTypeTType. fromClass(java.lang.Class c)Given a java class, this will return a default TType object that can encapsulate Java objects of this type.TTypeDataTableColumnDef. getTType()Returns the TType for this column.TTypeTObject. getTType()Returns the type of this object.TTypeTable. getTTypeForColumn(int column)Returns a TType object that would represent values at the given column index.TTypeTable. getTTypeForColumn(Variable v)Returns a TType object that would represent values in the given column.static TTypeTType. getWidestType(TType t1, TType t2)Assuming that the two types are numeric types, this will return the 'widest' of the two types.static TTypeTType. javaObjectType(java.lang.String class_name)Returns a TBinaryType constrained for the given class.static TTypeTType. numericType(int sql_type, int size, int scale)Returns a TNumericType object of the given size and scale.TTypeAbstractFunction. returnTType()TTypeAbstractFunction. returnTType(VariableResolver resolver, QueryContext context)By Default, we assume a function returns a Numeric object.TTypeCorrelatedVariable. returnTType()Returns the TType this correlated variable evaluates to.TTypeExpression. returnTType(VariableResolver resolver, QueryContext context)Determines the type of object this expression evaluates to.TTypeFunction. returnTType(VariableResolver resolver, QueryContext context)The type of object this function returns.TTypeOperator. returnTType()The type of object this Operator evaluates to.TTypeVariableResolver. returnTType(Variable variable)Returns the TType of object the given variable is.static TTypeTType. stringType(int sql_type, int size, java.lang.String locale, int strength, int decomposition)Returns a TStringType object of the given size and locale information.Methods in com.mckoi.database with parameters of type TType Modifier and Type Method Description static java.lang.StringTType. asEncodedString(TType type)Encodes a TType into a string which is a useful way to serialize a TType.static java.lang.StringTType. asEncodedString(TType[] types)Given an array of TType, returns a String that that is the encoded form of the array and that can be later decoded back into an array of TType.static java.lang.ObjectTType. castObjectToTType(java.lang.Object ob, TType type)Casts the given Java object to the given type.TObjectTObject. castTo(TType cast_to_type)Casts this object to the given type and returns a new TObject.booleanTArrayType. comparableTypes(TType type)booleanTBinaryType. comparableTypes(TType type)booleanTBooleanType. comparableTypes(TType type)booleanTDateType. comparableTypes(TType type)booleanTJavaObjectType. comparableTypes(TType type)booleanTNullType. comparableTypes(TType type)booleanTNumericType. comparableTypes(TType type)booleanTQueryPlanType. comparableTypes(TType type)booleanTStringType. comparableTypes(TType type)For strings, the locale must be the same for the types to be comparable.abstract booleanTType. comparableTypes(TType type)Returns true if the type of this object is logically comparable to the type of the given object.static TObjectTObject. createAndCastFromObject(TType type, java.lang.Object ob)Returns a TObject of the given type and with the given Java object.voidProcedureManager. defineJavaProcedure(ProcedureName procedure_name, java.lang.String java_specification, TType return_type, TType[] param_types, java.lang.String username)Defines a Java stored procedure.static TTypeTType. getWidestType(TType t1, TType t2)Assuming that the two types are numeric types, this will return the 'widest' of the two types.static java.lang.reflect.MethodProcedureManager. javaProcedureMethod(java.lang.String location_str, TType[] param_types)Given a Java location_str and a list of parameter types, returns an immutable 'Method' object that can be used to invoke a Java stored procedure.voidDataTableColumnDef. setFromTType(TType type)Sets this DataTableColumnDef object up from information in the TType object.Constructors in com.mckoi.database with parameters of type TType Constructor Description TObject(TType type, java.lang.Object ob)Constructs the TObject as the given type. -
Uses of TType in com.mckoi.database.interpret
Methods in com.mckoi.database.interpret with parameters of type TType Modifier and Type Method Description voidColumnDef. setDataType(TType type)Sets the type of data of this column. -
Uses of TType in com.mckoi.database.sql
Methods in com.mckoi.database.sql that return TType Modifier and Type Method Description TTypeSQL. GetTType()
-