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.
|
Modifier and Type | Class and Description |
---|---|
class |
TArrayType
An implementation of TType for an expression array.
|
class |
TBinaryType
An implementation of TType for a binary block of data.
|
class |
TBooleanType
An implementation of TType for a boolean value.
|
class |
TDateType
An implementation of TType for date objects.
|
class |
TJavaObjectType
An implementation of TType for a java object of possibly defined type.
|
class |
TNullType
An implementation of TType that represents a NULL type.
|
class |
TNumericType
An implementation of TType for a number.
|
class |
TQueryPlanType
An implementation of TType for a query plan value.
|
class |
TStringType
An implementation of TType for a String.
|
Modifier and Type | Field and Description |
---|---|
TType |
DataTableColumnDef.type
The TType object for this column.
|
Modifier and Type | Method and Description |
---|---|
static TType |
TType.binaryType(int sql_type,
int size)
Returns a TBinaryType object.
|
static TType |
TType.booleanType(int sql_type)
Returns a TBooleanType object.
|
static TType |
TType.dateType(int sql_type)
Returns a TDateType object.
|
static TType |
TType.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 TType |
TType.fromClass(Class c)
Given a java class, this will return a default TType object that can
encapsulate Java objects of this type.
|
TType |
TObject.getTType()
Returns the type of this object.
|
TType |
DataTableColumnDef.getTType()
Returns the TType for this column.
|
TType |
Table.getTTypeForColumn(int column)
Returns a TType object that would represent values at the given
column index.
|
TType |
Table.getTTypeForColumn(Variable v)
Returns a TType object that would represent values in the given
column.
|
static TType |
TType.getWidestType(TType t1,
TType t2)
Assuming that the two types are numeric types, this will return the
'widest' of the two types.
|
static TType |
TType.javaObjectType(String class_name)
Returns a TBinaryType constrained for the given class.
|
static TType |
TType.numericType(int sql_type,
int size,
int scale)
Returns a TNumericType object of the given size and scale.
|
TType |
CorrelatedVariable.returnTType()
Returns the TType this correlated variable evaluates to.
|
TType |
Operator.returnTType()
The type of object this Operator evaluates to.
|
TType |
AbstractFunction.returnTType() |
TType |
VariableResolver.returnTType(Variable variable)
Returns the TType of object the given variable is.
|
TType |
Function.returnTType(VariableResolver resolver,
QueryContext context)
The type of object this function returns.
|
TType |
Expression.returnTType(VariableResolver resolver,
QueryContext context)
Determines the type of object this expression evaluates to.
|
TType |
AbstractFunction.returnTType(VariableResolver resolver,
QueryContext context)
By Default, we assume a function returns a Numeric object.
|
static TType |
TType.stringType(int sql_type,
int size,
String locale,
int strength,
int decomposition)
Returns a TStringType object of the given size and locale information.
|
Modifier and Type | Method and Description |
---|---|
static String |
TType.asEncodedString(TType type)
Encodes a TType into a string which is a useful way to serialize a TType.
|
static String |
TType.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 Object |
TType.castObjectToTType(Object ob,
TType type)
Casts the given Java object to the given type.
|
TObject |
TObject.castTo(TType cast_to_type)
Casts this object to the given type and returns a new TObject.
|
boolean |
TNumericType.comparableTypes(TType type) |
boolean |
TDateType.comparableTypes(TType type) |
boolean |
TBinaryType.comparableTypes(TType type) |
boolean |
TArrayType.comparableTypes(TType type) |
boolean |
TStringType.comparableTypes(TType type)
For strings, the locale must be the same for the types to be comparable.
|
boolean |
TNullType.comparableTypes(TType type) |
boolean |
TBooleanType.comparableTypes(TType type) |
abstract boolean |
TType.comparableTypes(TType type)
Returns true if the type of this object is logically comparable to the
type of the given object.
|
boolean |
TJavaObjectType.comparableTypes(TType type) |
boolean |
TQueryPlanType.comparableTypes(TType type) |
static TObject |
TObject.createAndCastFromObject(TType type,
Object ob)
Returns a TObject of the given type and with the given Java object.
|
void |
ProcedureManager.defineJavaProcedure(ProcedureName procedure_name,
String java_specification,
TType return_type,
TType[] param_types,
String username)
Defines a Java stored procedure.
|
void |
ProcedureManager.defineJavaProcedure(ProcedureName procedure_name,
String java_specification,
TType return_type,
TType[] param_types,
String username)
Defines a Java stored procedure.
|
static TType |
TType.getWidestType(TType t1,
TType t2)
Assuming that the two types are numeric types, this will return the
'widest' of the two types.
|
static Method |
ProcedureManager.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.
|
void |
DataTableColumnDef.setFromTType(TType type)
Sets this DataTableColumnDef object up from information in the TType
object.
|
Constructor and Description |
---|
TObject(TType type,
Object ob)
Constructs the TObject as the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
ColumnDef.setDataType(TType type)
Sets the type of data of this column.
|
Modifier and Type | Method and Description |
---|---|
TType |
SQL.GetTType() |
Copyright © 2015. All rights reserved.