Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
ClassDescriptor.defaultTable |
protected DatabaseTable |
InheritancePolicy.readAllSubclassesView |
Modifier and Type | Field and Description |
---|---|
protected Map<DatabaseTable,Map<DatabaseField,DatabaseField>> |
ClassDescriptor.additionalTablePrimaryKeyFields |
protected Map<DatabaseTable,DatabaseTable> |
ClassDescriptor.multipleTableForeignKeys |
protected Map<DatabaseTable,DatabaseTable> |
ClassDescriptor.multipleTableForeignKeys |
protected Vector<DatabaseTable> |
ClassDescriptor.multipleTableInsertOrder |
protected Vector<DatabaseTable> |
ClassDescriptor.tables |
Modifier and Type | Method and Description |
---|---|
protected DatabaseTable |
ClassDescriptor.extractDefaultTable()
INTERNAL:
The first table in the tables is always treated as default.
|
DatabaseTable |
ClassDescriptor.getDefaultTable()
INTERNAL:
The first table in the tables is always treated as default.
|
DatabaseTable |
InheritancePolicy.getReadAllSubclassesView()
INTERNAL:
The view can be used to optimize/customize the query for all subclasses where they have multiple tables.
|
DatabaseTable |
ClassDescriptor.getTable(String tableName)
INTERNAL:
Checks if table name exists with the current descriptor or not.
|
Modifier and Type | Method and Description |
---|---|
Map<DatabaseTable,Map<DatabaseField,DatabaseField>> |
ClassDescriptor.getAdditionalTablePrimaryKeyFields()
INTERNAL:
This is used to map the primary key field names in a multiple table descriptor.
|
Map<DatabaseTable,DatabaseTable> |
ClassDescriptor.getMultipleTableForeignKeys()
INTERNAL:
Returns the foreign key relationships used for multiple tables which were specified by the user.
|
Map<DatabaseTable,DatabaseTable> |
ClassDescriptor.getMultipleTableForeignKeys()
INTERNAL:
Returns the foreign key relationships used for multiple tables which were specified by the user.
|
Vector<DatabaseTable> |
ClassDescriptor.getMultipleTableInsertOrder()
INTERNAL:
Returns the Vector of DatabaseTables in the order which INSERTS should take place.
|
Vector<DatabaseTable> |
ClassDescriptor.getTables()
INTERNAL:
Return all the tables.
|
Modifier and Type | Method and Description |
---|---|
protected void |
InheritancePolicy.addChildTableJoinExpression(DatabaseTable table,
Expression expression)
INTERNAL:
childrenTablesJoinExpressions, childrenTables, allTables and childrenJoinExpression
are created simultaneously and kept in sync.
|
void |
InheritancePolicy.addChildTableJoinExpressionToAllParents(DatabaseTable table,
Expression expression)
INTERNAL:
call addChildTableJoinExpression on all parents
|
void |
ClassDescriptor.addTable(DatabaseTable table)
PUBLIC:
Specify the table for the class of objects the receiver describes.
|
Expression |
VersionLockingPolicy.buildDeleteExpression(DatabaseTable table,
Expression mainExpression,
AbstractRecord row)
INTERNAL:
When given an expression, this method will return a new expression with
the optimistic locking values included.
|
Expression |
VersionLockingPolicy.buildUpdateExpression(DatabaseTable table,
Expression mainExpression,
AbstractRecord row,
AbstractRecord row2)
INTERNAL:
When given an expression, this method will return a new expression
with the optimistic locking values included.
|
protected void |
ClassDescriptor.setAdditionalTablePrimaryKeyFields(DatabaseTable table,
DatabaseField field1,
DatabaseField field2)
INTERNAL:
This is used to map the primary key field names in a multiple table
descriptor.
|
void |
ClassDescriptor.setDefaultTable(DatabaseTable defaultTable)
INTERNAL:
The descriptors default table can be configured if the first table is not desired.
|
protected void |
InheritancePolicy.setReadAllSubclassesView(DatabaseTable readAllSubclassesView)
INTERNAL:
The view can be used to optimize/customize the query for all subclasses where they have multiple tables.
|
protected void |
ClassDescriptor.toggleAdditionalTablePrimaryKeyFields(DatabaseTable targetTable,
DatabaseTable sourceTable)
INTERNAL:
This method will be called in the case where the foreign key field is
in the target table which is before the source table.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassDescriptor.setAdditionalTablePrimaryKeyFields(Map<DatabaseTable,Map<DatabaseField,DatabaseField>> additionalTablePrimaryKeyFields)
INTERNAL:
This is used to map the primary key field names in a multiple table
descriptor.
|
protected void |
ClassDescriptor.setMultipleTableForeignKeys(Map<DatabaseTable,DatabaseTable> newValue)
INTERNAL:
|
protected void |
ClassDescriptor.setMultipleTableForeignKeys(Map<DatabaseTable,DatabaseTable> newValue)
INTERNAL:
|
void |
ClassDescriptor.setMultipleTableInsertOrder(Vector<DatabaseTable> newValue)
ADVANCED:
Sets the Vector of DatabaseTables in the order which INSERTS should take place.
|
void |
ClassDescriptor.setTables(Vector<DatabaseTable> theTables)
INTERNAL:
Sets the tables
|
Modifier and Type | Method and Description |
---|---|
boolean |
IntegrityChecker.checkTable(DatabaseTable table,
AbstractSession session)
INTERNAL:
This method checks that tables are present in the database.
|
static DescriptorException |
DescriptorException.illegalTableNameInMultipleTableForeignKeyField(ClassDescriptor descriptor,
DatabaseTable table) |
static QueryException |
QueryException.objectToInsertIsEmpty(DatabaseTable table) |
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
ExpressionBuilder.aliasedViewTable |
protected DatabaseTable |
Expression.currentAlias |
protected DatabaseTable |
Expression.lastTable
Temporary values for table aliasing
|
protected DatabaseTable |
ExpressionBuilder.viewTable |
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
Expression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
ExpressionBuilder.aliasForTable(DatabaseTable table)
INTERNAL: Find the alias for a given table.
|
DatabaseTable |
ExpressionBuilder.getAliasedViewTable()
INTERNAL:
|
DatabaseTable |
ExpressionBuilder.getViewTable()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
Expression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
ExpressionBuilder.aliasForTable(DatabaseTable table)
INTERNAL: Find the alias for a given table.
|
protected void |
Expression.assignAlias(String name,
DatabaseTable tableOrExpression)
INTERNAL:
Alias a particular table within this node
|
Expression |
Expression.getTable(DatabaseTable table)
ADVANCED: Return an expression representing a table in a data-level query.
|
void |
ExpressionBuilder.setViewTable(DatabaseTable theTable)
INTERNAL:
This expression represents something read through a view table.
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
DatabasePlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
May override this method if the platform support temporary tables.
|
Modifier and Type | Method and Description |
---|---|
protected String |
DatabasePlatform.getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL:
May override this method if the platform supports temporary tables.
|
DatabaseTable |
DatabasePlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
May override this method if the platform support temporary tables.
|
void |
DatabasePlatform.writeCleanUpTempTableSql(Writer writer,
DatabaseTable table)
INTERNAL:
Don't override this method.
|
void |
DatabasePlatform.writeCreateTempTableSql(Writer writer,
DatabaseTable table,
AbstractSession session,
Collection pkFields,
Collection usedFields,
Collection allFields)
INTERNAL:
Don't override this method.
|
void |
DatabasePlatform.writeDeleteFromTargetTableUsingTempTableSql(Writer writer,
DatabaseTable table,
DatabaseTable targetTable,
Collection pkFields,
Collection targetPkFields)
INTERNAL:
Write an sql string for deletion from target table using temporary table.
|
void |
DatabasePlatform.writeInsertIntoTableSql(Writer writer,
DatabaseTable table,
Collection usedFields)
INTERNAL:
May need to override this method if the platform supports temporary tables
and the generated sql doesn't work.
|
void |
DatabasePlatform.writeUpdateOriginalFromTempTableSql(Writer writer,
DatabaseTable table,
Collection pkFields,
Collection assignedFields)
INTERNAL:
May need to override this method if the platform supports temporary tables
and the generated sql doesn't work.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ObjectBuilder.buildDeleteExpression(DatabaseTable table,
AbstractRecord row)
Build and return the expression to use as the where clause to delete an object.
|
Expression |
OptimisticLockingPolicy.buildDeleteExpression(DatabaseTable table,
Expression mainExpression,
AbstractRecord row)
INTERNAL:
When given an expression, this method will return a new expression with
the optimistic locking values included.
|
Expression |
ObjectBuilder.buildPrimaryKeyExpression(DatabaseTable table)
Build the primary key expression for the secondary table.
|
Expression |
ObjectBuilder.buildUpdateExpression(DatabaseTable table,
AbstractRecord transactionRow,
AbstractRecord modifyRow)
Build and return the expression to use as the where clause to an update object.
|
Expression |
OptimisticLockingPolicy.buildUpdateExpression(DatabaseTable table,
Expression mainExpression,
AbstractRecord translationRow,
AbstractRecord modifyRow)
INTERNAL:
When given an expression, this method will return a new expression with
the optimistic locking values included.
|
Modifier and Type | Method and Description |
---|---|
void |
MetadataDescriptor.addTable(DatabaseTable table)
INTERNAL:
|
void |
MetadataDescriptor.setPrimaryTable(DatabaseTable primaryTable)
INTERNAL:
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
MetadataTable.m_databaseTable |
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
MetadataTable.getDatabaseTable()
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
static void |
XMLTableHelper.processUniqueConstraints(Node node,
XMLHelper helper,
DatabaseTable table)
INTERNAL:
Process the unique-constraints for a given table node.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
SQLSelectStatement.currentAlias |
protected DatabaseTable[] |
TableAliasLookup.keys |
protected DatabaseTable |
SQLSelectStatement.lastTable |
protected DatabaseTable |
TableExpression.table |
protected DatabaseTable |
SQLModifyStatement.table |
protected DatabaseTable |
SQLDeleteAllStatementForTempTable.targetTable |
protected DatabaseTable[] |
TableAliasLookup.values |
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
DataExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
QueryKeyExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
CompoundExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table from the first or second child in the additionalOuterJoinCriteria
|
DatabaseTable |
FunctionExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
TableAliasLookup.get(DatabaseTable key) |
protected DatabaseTable |
QueryKeyExpression.getAliasedTable()
Return the alias for our table
|
DatabaseTable |
TableExpression.getTable() |
DatabaseTable |
SQLModifyStatement.getTable() |
DatabaseTable |
SQLDeleteAllStatementForTempTable.getTargetTable() |
DatabaseTable |
TableAliasLookup.keyAtValue(DatabaseTable value) |
DatabaseTable[] |
TableAliasLookup.keys() |
DatabaseTable |
TableAliasLookup.put(DatabaseTable key,
DatabaseTable value)
put method comment.
|
DatabaseTable[] |
TableAliasLookup.values() |
Modifier and Type | Method and Description |
---|---|
void |
SQLSelectStatement.addTable(DatabaseTable table)
Add a table to the statement.
|
DatabaseTable |
DataExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
QueryKeyExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
DatabaseTable |
CompoundExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table from the first or second child in the additionalOuterJoinCriteria
|
DatabaseTable |
FunctionExpression.aliasForTable(DatabaseTable table)
INTERNAL:
Find the alias for a given table
|
protected void |
DataExpression.assignAlias(DatabaseTable alias,
DatabaseTable table)
INTERNAL:
Alias a particular table within this node
|
protected void |
DataExpression.assignAlias(String name,
DatabaseTable table)
INTERNAL:
Alias a particular table within this node
|
Expression |
DataExpression.existingDerivedTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
TableAliasLookup.get(DatabaseTable key) |
Expression |
DataExpression.getTable(DatabaseTable table) |
protected boolean |
SQLSelectStatement.hasAliasForTable(DatabaseTable table) |
DatabaseTable |
TableAliasLookup.keyAtValue(DatabaseTable value) |
Expression |
DataExpression.newDerivedTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
TableAliasLookup.put(DatabaseTable key,
DatabaseTable value)
put method comment.
|
void |
SQLSelectStatement.removeTable(DatabaseTable table)
Remove a table from the statement.
|
void |
TableExpression.setTable(DatabaseTable table)
INTERNAL:
Added for temporal querying.
|
void |
SQLModifyStatement.setTable(DatabaseTable table) |
void |
SQLDeleteAllStatementForTempTable.setTargetTable(DatabaseTable targetTable) |
Constructor and Description |
---|
TableExpression(DatabaseTable aTable)
TableExpression constructor comment.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
DatabaseField.table
Fields table (encapsulates name + creator).
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
DatabaseField.getTable() |
Modifier and Type | Method and Description |
---|---|
boolean |
DatabaseTable.equals(DatabaseTable table)
Two tables are equal if their names and tables are equal,
or their names are equal and one does not have a qualifier assigned.
|
void |
DatabaseField.setTable(DatabaseTable table)
Set the table for the field.
|
Constructor and Description |
---|
DatabaseField(String fieldName,
DatabaseTable databaseTable) |
Modifier and Type | Method and Description |
---|---|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteAllStatement(DatabaseTable table,
Expression inheritanceExpression,
SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
SQLCall selectCallForNotExist,
SQLSelectStatement selectStatementForNotExist,
Collection primaryKeyFields)
Return the appropriate delete statement
Passing of a call/ statement pair is used because the same pair
may be used several times.
|
protected Vector |
ExpressionQueryMechanism.buildDeleteAllStatementsForMappingsWithTempTable(ClassDescriptor descriptor,
DatabaseTable rootTable,
Collection rootTablePrimaryKeyFields,
boolean dontCheckDescriptor)
Build delete statements with temporary table for ManyToMany and DirectCollection mappings.
|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteStatement(DatabaseTable table)
Return the appropriate delete statement
|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteStatementForDeleteAllQuery(DatabaseTable table)
Used by DeleteAllQuery to create DeleteStatement in a simple case
when selectionCriteria==null.
|
protected SQLDeleteStatement |
ExpressionQueryMechanism.buildDeleteStatementForDeleteAllQuery(DatabaseTable table,
Expression inheritanceExpression)
Used by DeleteAllQuery to create DeleteStatement in a simple case
when selectionCriteria==null.
|
protected SQLInsertStatement |
ExpressionQueryMechanism.buildInsertStatement(DatabaseTable table)
Return the appropriate insert statement
|
protected Vector |
ExpressionQueryMechanism.buildStatementsForUpdateAllForTempTables(DatabaseTable table,
HashMap databaseFieldsToValues,
Collection primaryKeyFields) |
protected SQLUpdateAllStatement |
ExpressionQueryMechanism.buildUpdateAllStatement(DatabaseTable table,
HashMap databaseFieldsToValues,
SQLCall selectCallForExist,
SQLSelectStatement selectStatementForExist,
Collection primaryKeyFields) |
protected SQLUpdateStatement |
ExpressionQueryMechanism.buildUpdateStatement(DatabaseTable table)
Return the appropriate update statement
|
protected static String |
ExpressionQueryMechanism.getAliasTableName(SQLSelectStatement selectStatement,
DatabaseTable table) |
protected ClassDescriptor |
ExpressionQueryMechanism.getHighestDescriptorMappingTable(DatabaseTable table)
Pass to this method a table mapped by query's descriptor.
|
protected Collection |
ExpressionQueryMechanism.getPrimaryKeyFieldsForTable(ClassDescriptor descriptor,
DatabaseTable table) |
protected Collection |
ExpressionQueryMechanism.getPrimaryKeyFieldsForTable(DatabaseTable table) |
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
DirectCollectionMapping.referenceTable
Stores the reference table
|
protected DatabaseTable |
ManyToManyMapping.relationTable
The intermediate relation table.
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
DirectCollectionMapping.getReferenceTable()
INTERNAL:
Return the direct table.
|
DatabaseTable |
ManyToManyMapping.getRelationTable()
INTERNAL:
Return the relation table associated with the mapping.
|
Modifier and Type | Method and Description |
---|---|
void |
DirectCollectionMapping.setReferenceTable(DatabaseTable table)
INTERNAL:
Set the reference table.
|
void |
ManyToManyMapping.setRelationTable(DatabaseTable relationTable)
PUBLIC:
Set the relational table.
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
SQLServerPlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
DB2Platform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
SQLAnyWherePlatform.getTempTableForTable(DatabaseTable table) |
DatabaseTable |
SybasePlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
protected String |
DB2Platform.getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL:
|
protected String |
PostgreSQLPlatform.getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL:
|
protected String |
DerbyPlatform.getCreateTempTableSqlBodyForTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
SQLServerPlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
DB2Platform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
DatabaseTable |
SQLAnyWherePlatform.getTempTableForTable(DatabaseTable table) |
DatabaseTable |
SybasePlatform.getTempTableForTable(DatabaseTable table)
INTERNAL:
|
void |
MySQL4Platform.writeDeleteFromTargetTableUsingTempTableSql(Writer writer,
DatabaseTable table,
DatabaseTable targetTable,
Collection pkFields,
Collection targetPkFields)
INTERNAL:
|
void |
SQLServerPlatform.writeUpdateOriginalFromTempTableSql(Writer writer,
DatabaseTable table,
Collection pkFields,
Collection assignedFields)
INTERNAL:
|
void |
MySQL4Platform.writeUpdateOriginalFromTempTableSql(Writer writer,
DatabaseTable table,
Collection pkFields,
Collection assignedFields)
INTERNAL:
|
void |
SybasePlatform.writeUpdateOriginalFromTempTableSql(Writer writer,
DatabaseTable table,
Collection pkFields,
Collection assignedFields)
INTERNAL:
|
void |
DerbyPlatform.writeUpdateOriginalFromTempTableSql(Writer writer,
DatabaseTable table,
Collection pkFields,
Collection assignedFields)
INTERNAL:
May need to override this method if the platform supports temporary tables
and the generated sql doesn't work.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseTable |
TableSequence.table
Hold the database table
|
Modifier and Type | Method and Description |
---|---|
DatabaseTable |
TableSequence.getTable() |
Modifier and Type | Method and Description |
---|---|
void |
TableSequence.setTable(DatabaseTable table) |
Copyright © 2023. All rights reserved.