Package | Description |
---|---|
com.mckoi.database |
The core database classes for Mckoi.
|
com.mckoi.database.sql |
These classes parse SQL statements in Mckoi.
|
Modifier and Type | Field and Description |
---|---|
static TObject |
TObject.BOOLEAN_FALSE |
static TObject |
TObject.BOOLEAN_NULL |
static TObject |
TObject.BOOLEAN_TRUE |
static TObject |
SelectableRange.FIRST_IN_SET
An object that represents the first value in the set.
|
static TObject |
SelectableRange.LAST_IN_SET
An object that represents the last value in the set.
|
static TObject |
TObject.NULL_OBJECT |
static TObject |
GrantManager.PUBLIC_USERNAME
The name of the 'public' username.
|
Modifier and Type | Method and Description |
---|---|
static TObject |
TObject.bigNumberVal(BigNumber val)
Returns a TObject of numeric type that represents the given BigNumber
value.
|
static TObject |
TObject.booleanVal(boolean b)
Returns a TObject of boolean type that is either true or false.
|
TObject |
TObject.castTo(TType cast_to_type)
Casts this object to the given type and returns a new TObject.
|
static TObject |
TObject.createAndCastFromObject(TType type,
Object ob)
Returns a TObject of the given type and with the given Java object.
|
static TObject |
TObject.dateVal(Date d)
Returns a TObject of DATE type that represents the given time value.
|
static TObject |
TObject.doubleVal(double val)
Returns a TObject of numeric type that represents the given double value.
|
abstract TObject |
Operator.eval(TObject ob1,
TObject ob2,
GroupResolver group,
VariableResolver resolver,
QueryContext context) |
abstract TObject |
AbstractAggregateFunction.evalAggregate(GroupResolver group,
QueryContext context,
TObject val1,
TObject val2)
Evaluates the aggregate function for the given values and returns the
result.
|
TObject |
Function.evaluate(GroupResolver group,
VariableResolver resolver,
QueryContext context)
Evaluates the function and returns a TObject that represents the result
of the function.
|
TObject |
AbstractAggregateFunction.evaluate(GroupResolver group,
VariableResolver resolver,
QueryContext context) |
TObject |
Expression.evaluate(GroupResolver group,
VariableResolver resolver,
QueryContext context)
Evaluates this expression and returns an Object that represents the
result of the evaluation.
|
TObject |
Expression.evaluate(VariableResolver resolver,
QueryContext context)
Evaluation without a grouping table.
|
protected TObject |
CollatedBaseSearch.firstInCollationOrder()
Returns the first value of this column (in collated order).
|
protected TObject |
InsertSearch.firstInCollationOrder() |
TObject |
SimpleTableQuery.get(int column,
int row)
Gets the TObject at the given cell in the table.
|
protected TObject |
SelectableScheme.getCellContents(int row)
Obtains the given cell in the row from the table.
|
TObject |
FunctionTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
GTPrivMapDataSource.getCellContents(int column,
int row) |
TObject |
GTSQLTypeInfoDataSource.getCellContents(int column,
int row) |
TObject |
TemporaryTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
TableAccessState.getCellContents(int column,
int row)
Returns the cell at the given row/column coordinates in the table.
|
TObject |
RawDiagnosticTable.getCellContents(int column,
int record_index)
Returns the contents of the given cell in this table.
|
TObject |
JoinedTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
DataTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
FilterTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
abstract TObject |
Table.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
TableDataSource.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
SubsetColumnTable.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
CompositeTable.getCellContents(int column,
int row) |
TObject |
DataTableFilter.getCellContents(int column,
int row)
Returns an object that represents the information in the given cell
in the table.
|
TObject |
RowData.getCellData(int column)
Returns the TObject that represents the information in the given column
of the row.
|
TObject |
SelectableRange.getEnd()
Returns the end of the range.
|
TObject |
CorrelatedVariable.getEvalResult()
Returns the value this correlated variable evaluates to.
|
TObject |
Table.getFirstCellContent(int column)
Returns the TObject value that represents the first item in the set or
null if there are no items in the column set.
|
TObject[] |
Table.getFirstCellContent(int[] col_map)
Returns the TObject value that represents the first item in the set or
null if there are no items in the column set.
|
TObject |
Table.getLastCellContent(int column)
Returns the TObject value that represents the last item in the set or
null if there are no items in the column set.
|
TObject[] |
Table.getLastCellContent(int[] col_map)
Returns the TObject value that represents the last item in the set or
null if there are no items in the column set.
|
TObject |
Table.getSingleCellContent(int column)
If the given column contains all items of the same value, this method
returns the value.
|
TObject[] |
Table.getSingleCellContent(int[] col_map)
If the given column contains all items of the same value, this method
returns the value.
|
TObject |
SelectableRange.getStart()
Returns the start of the range.
|
static TObject |
TObject.intVal(int val)
Returns a TObject of numeric type that represents the given int value.
|
TObject |
ProcedureManager.invokeProcedure(ProcedureName procedure_name,
TObject[] params)
Invokes the procedure with the given name and the given parameters and
returns the procedure return value.
|
protected TObject |
CollatedBaseSearch.lastInCollationOrder()
Returns the last value of this column (in collated order).
|
protected TObject |
InsertSearch.lastInCollationOrder() |
static TObject |
TObject.longVal(long val)
Returns a TObject of numeric type that represents the given long value.
|
static TObject |
TObject.nullVal()
Returns a TObject of NULL type that represents a null value.
|
static TObject |
TObject.objectVal(Object ob)
Returns a TObject from the given Java value.
|
TObject |
TObject.operatorAdd(TObject val)
Mathematical addition of this object to the given object.
|
TObject |
TObject.operatorConcat(TObject val)
String concat of this object to the given object.
|
TObject |
TObject.operatorDivide(TObject val)
Mathematical division of this object to the given object.
|
TObject |
TObject.operatorEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorGreater(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorGreaterEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorIs(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorLess(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorLessEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorMultiply(TObject val)
Mathematical multiply of this object to the given object.
|
TObject |
TObject.operatorNot()
Performs a logical NOT on this value.
|
TObject |
TObject.operatorNotEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorOr(TObject val)
Bitwise OR operation of this object with the given object.
|
TObject |
TObject.operatorSubtract(TObject val)
Mathematical subtraction of this object to the given object.
|
TObject |
AbstractAggregateFunction.postEvalAggregate(GroupResolver group,
QueryContext context,
TObject result)
Called just before the value is returned to the parent.
|
TObject |
VariableResolver.resolve(Variable variable)
Returns the value of a given variable.
|
TObject |
GroupResolver.resolve(Variable variable,
int set_index)
Returns the value of a variable of a group.
|
static TObject |
TObject.stringVal(String str)
Returns a TObject of VARCHAR type that represents the given String value.
|
static TObject |
TObject.stringVal(StringObject str)
Returns a TObject of VARCHAR type that represents the given StringObject
value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Table.allColumnMatchesValue(int column,
Operator op,
TObject ob)
Returns true if the given column contains all values that the given
operator returns true for with the given value.
|
static Object[] |
Caster.castArgsToConstructor(TObject[] args,
Constructor constructor)
Cast the given arguments to the specified constructors parameter types.
|
boolean |
Table.columnContainsCell(int column,
TObject cell)
Returns true if the given cell is found in the table.
|
boolean |
Table.columnContainsValue(int column,
TObject ob)
Returns true if the given column number contains the value given.
|
boolean |
Table.columnMatchesValue(int column,
Operator op,
TObject ob)
Returns true if the given column contains a value that the given
operator returns true for with the given value.
|
boolean |
TObject.comparableTypes(TObject ob)
Returns true if the type of this object is logically comparable to the
type of the given object.
|
static boolean |
Table.compareCells(TObject ob1,
TObject ob2,
Operator op)
Compares cell1 with cell2 and if the given operator evalutes to true then
returns true, otherwise false.
|
int |
TObject.compareTo(TObject tob)
Compares this object with the given object (which is of a logically
comparable type).
|
int |
TObject.compareToNoNulls(TObject tob)
Compares this object with the given object (which is of a logically
comparable type).
|
void |
ConnectionTriggerManager.createTableTrigger(String schema,
String name,
int type,
TableName on_table,
String procedure_name,
TObject[] params)
Creates a new trigger action on a stored procedure and makes the change
to the transaction of this DatabaseConnection.
|
static void |
Caster.deserializeJavaObjects(TObject[] args)
Find any JAVA_OBJECTs in the args and deserialize them into
real Java objects.
|
abstract TObject |
Operator.eval(TObject ob1,
TObject ob2,
GroupResolver group,
VariableResolver resolver,
QueryContext context) |
abstract TObject |
AbstractAggregateFunction.evalAggregate(GroupResolver group,
QueryContext context,
TObject val1,
TObject val2)
Evaluates the aggregate function for the given values and returns the
result.
|
static Constructor |
Caster.findBestConstructor(Constructor[] constructs,
TObject[] args)
Search for the best constructor that we can use with the given
argument types.
|
static String |
Caster.getArgTypesString(TObject[] args)
Get a string giving the database types of all of the arguments.
|
static int |
Caster.getSqlType(TObject arg)
Get the SQL type for a database argument.
|
static int[] |
Caster.getSqlTypes(TObject[] args)
Get the SQL types for the given database arguments.
|
void |
SelectableRangeSet.intersect(Operator op,
TObject val)
Intersects this range with the given Operator and value constraint.
|
TObject |
ProcedureManager.invokeProcedure(ProcedureName procedure_name,
TObject[] params)
Invokes the procedure with the given name and the given parameters and
returns the procedure return value.
|
TObject |
TObject.operatorAdd(TObject val)
Mathematical addition of this object to the given object.
|
TObject |
TObject.operatorConcat(TObject val)
String concat of this object to the given object.
|
TObject |
TObject.operatorDivide(TObject val)
Mathematical division of this object to the given object.
|
TObject |
TObject.operatorEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorGreater(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorGreaterEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorIs(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorLess(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorLessEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorMultiply(TObject val)
Mathematical multiply of this object to the given object.
|
TObject |
TObject.operatorNotEquals(TObject val)
Comparison of this object and the given object.
|
TObject |
TObject.operatorOr(TObject val)
Bitwise OR operation of this object with the given object.
|
TObject |
TObject.operatorSubtract(TObject val)
Mathematical subtraction of this object to the given object.
|
TObject |
AbstractAggregateFunction.postEvalAggregate(GroupResolver group,
QueryContext context,
TObject result)
Called just before the value is returned to the parent.
|
static Table |
FunctionTable.resultTable(DatabaseQueryContext context,
TObject ob)
Returns a FunctionTable that has a single TObject in it.
|
protected abstract int |
CollatedBaseSearch.searchFirst(TObject val)
Finds the position in the collated set of the first value in the column
equal to the given value.
|
protected int |
InsertSearch.searchFirst(TObject val) |
protected abstract int |
CollatedBaseSearch.searchLast(TObject val)
Finds the position in the collated set of the last value in the column
equal to the given value.
|
protected int |
InsertSearch.searchLast(TObject val) |
IntegerVector |
SelectableScheme.selectBetween(TObject ob1,
TObject ob2) |
IntegerVector |
SelectableScheme.selectEqual(TObject ob) |
IntegerVector |
SelectableScheme.selectGreater(TObject ob) |
IntegerVector |
SelectableScheme.selectGreaterOrEqual(TObject ob) |
IntegerVector |
SimpleTableQuery.selectIndexesEqual(int column,
TObject cell)
Finds the index of all the rows in the table where the given column is
equal to the given object.
|
IntegerVector |
SimpleTableQuery.selectIndexesEqual(int col1,
TObject cell1,
int col2,
TObject cell2)
Finds the index of all the rows in the table where the given column is
equal to the given object for both of the clauses.
|
IntegerVector |
SelectableScheme.selectLess(TObject ob) |
IntegerVector |
SelectableScheme.selectLessOrEqual(TObject ob) |
IntegerVector |
SelectableScheme.selectNotEqual(TObject ob) |
void |
RowData.setColumnData(int column,
TObject cell)
Sets up a column by casting the value from the given TObject to a
type that is compatible with the column.
|
void |
RowData.setColumnDataFromTObject(int column,
TObject ob)
Sets up a column from a TObject.
|
void |
CorrelatedVariable.setEvalResult(TObject ob)
Sets the value this correlated variable evaluates to.
|
void |
TemporaryTable.setRowCell(TObject cell,
int column,
int row)
Sets the cell in the given column / row to the given value.
|
void |
TemporaryTable.setRowCell(TObject cell,
String col_name)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
TemporaryTable.setRowObject(TObject ob,
int col_index)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
TemporaryTable.setRowObject(TObject ob,
int col_index,
int row)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
TemporaryTable.setRowObject(TObject ob,
String col_name)
Sets the cell in the column of the last row of this table to the given
TObject.
|
void |
SelectableRangeSet.union(Operator op,
TObject val)
Unions this range with the given Operator and value constraint.
|
boolean |
TObject.valuesEqual(TObject ob)
Equality test.
|
Constructor and Description |
---|
SelectableRange(byte set_start_flag,
TObject start,
byte set_end_flag,
TObject end)
Constructs the range.
|
Modifier and Type | Method and Description |
---|---|
static TObject |
Util.parseNumberToken(Token token,
boolean negative)
Parses a NUMBER_LITERAL Token with a sign boolean.
|
static TObject |
Util.toArrayParamObject(Expression[] arr)
Converts an expression array to an array type that can be added to an
expression.
|
static TObject |
Util.zeroNumber()
Returns numeric 0
|
Copyright © 2015. All rights reserved.