Uses of Class
com.mckoi.database.TType
Packages that use TType
Package
Description
The core database classes for Mckoi.
These classes parse SQL statements in Mckoi.
-
Uses of TType in com.mckoi.database
Subclasses of TType in com.mckoi.databaseModifier and TypeClassDescriptionclassAn implementation of TType for an expression array.classAn implementation of TType for a binary block of data.final classAn implementation of TType for a boolean value.classAn implementation of TType for date objects.classAn implementation of TType for a java object of possibly defined type.classAn implementation of TType that represents a NULL type.final classAn implementation of TType for a number.classAn implementation of TType for a query plan value.final classAn implementation of TType for a String.Fields in com.mckoi.database declared as TTypeMethods in com.mckoi.database that return TTypeModifier and TypeMethodDescriptionstatic 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(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(String encoded_str) Decodes a list (or array) of TType objects that was previously encoded with the 'asEncodedString(Type[])' method.static TTypeGiven a java class, this will return a default TType object that can encapsulate Java objects of this type.DataTableColumnDef.getTType()Returns the TType for this column.TObject.getTType()Returns the type of this object.Table.getTTypeForColumn(int column) Returns a TType object that would represent values at the given column index.Table.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(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.AbstractFunction.returnTType()AbstractFunction.returnTType(VariableResolver resolver, QueryContext context) By Default, we assume a function returns a Numeric object.CorrelatedVariable.returnTType()Returns the TType this correlated variable evaluates to.Expression.returnTType(VariableResolver resolver, QueryContext context) Determines the type of object this expression evaluates to.Function.returnTType(VariableResolver resolver, QueryContext context) The type of object this function returns.Operator.returnTType()The type of object this Operator evaluates to.VariableResolver.returnTType(Variable variable) Returns the TType of object the given variable is.static TTypeTType.stringType(int sql_type, int size, 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 TTypeModifier and TypeMethodDescriptionstatic StringTType.asEncodedString(TType type) Encodes a TType into a string which is a useful way to serialize a TType.static 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 ObjectTType.castObjectToTType(Object ob, TType type) Casts the given Java object to the given 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, Object ob) Returns a TObject of the given type and with the given Java object.voidProcedureManager.defineJavaProcedure(ProcedureName procedure_name, String java_specification, TType return_type, TType[] param_types, 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 MethodProcedureManager.javaProcedureMethod(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 -
Uses of TType in com.mckoi.database.interpret
Methods in com.mckoi.database.interpret with parameters of type TTypeModifier and TypeMethodDescriptionvoidColumnDef.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