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 | 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 | Description |
---|---|---|
TType |
DataTableColumnDef.type |
The TType object for this column.
|
Modifier and Type | Method | 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(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 TType |
TType.fromClass(java.lang.Class c) |
Given a java class, this will return a default TType object that can
encapsulate Java objects of this type.
|
TType |
DataTableColumnDef.getTType() |
Returns the TType for this column.
|
TType |
TObject.getTType() |
Returns the type of this object.
|
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(java.lang.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 |
AbstractFunction.returnTType() |
|
TType |
AbstractFunction.returnTType(VariableResolver resolver,
QueryContext context) |
By Default, we assume a function returns a Numeric object.
|
TType |
CorrelatedVariable.returnTType() |
Returns the TType this correlated variable evaluates to.
|
TType |
Expression.returnTType(VariableResolver resolver,
QueryContext context) |
Determines the type of object this expression evaluates to.
|
TType |
Function.returnTType(VariableResolver resolver,
QueryContext context) |
The type of object this function returns.
|
TType |
Operator.returnTType() |
The type of object this Operator evaluates to.
|
TType |
VariableResolver.returnTType(Variable variable) |
Returns the TType of object the given variable is.
|
static TType |
TType.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.
|
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
TType.asEncodedString(TType type) |
Encodes a TType into a string which is a useful way to serialize a TType.
|
static java.lang.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 java.lang.Object |
TType.castObjectToTType(java.lang.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 |
TArrayType.comparableTypes(TType type) |
|
boolean |
TBinaryType.comparableTypes(TType type) |
|
boolean |
TBooleanType.comparableTypes(TType type) |
|
boolean |
TDateType.comparableTypes(TType type) |
|
boolean |
TJavaObjectType.comparableTypes(TType type) |
|
boolean |
TNullType.comparableTypes(TType type) |
|
boolean |
TNumericType.comparableTypes(TType type) |
|
boolean |
TQueryPlanType.comparableTypes(TType type) |
|
boolean |
TStringType.comparableTypes(TType type) |
For strings, the locale must be the same for the types to be comparable.
|
abstract boolean |
TType.comparableTypes(TType type) |
Returns true if the type of this object is logically comparable to the
type of the given object.
|
static TObject |
TObject.createAndCastFromObject(TType type,
java.lang.Object ob) |
Returns a TObject of the given type and with the given Java object.
|
void |
ProcedureManager.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 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 java.lang.reflect.Method |
ProcedureManager.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.
|
void |
DataTableColumnDef.setFromTType(TType type) |
Sets this DataTableColumnDef object up from information in the TType
object.
|
Constructor | Description |
---|---|
TObject(TType type,
java.lang.Object ob) |
Constructs the TObject as the given type.
|
Modifier and Type | Method | Description |
---|---|---|
void |
ColumnDef.setDataType(TType type) |
Sets the type of data of this column.
|
Modifier and Type | Method | Description |
---|---|---|
TType |
SQL.GetTType() |
Copyright © 2018. All rights reserved.