Uses of Class
org.eclipse.persistence.tools.schemaframework.TableDefinition
Package
Description
-
Uses of TableDefinition in org.eclipse.persistence.descriptors
Modifier and TypeMethodDescriptionvoid
MultitenantPolicy.addToTableDefinition
(TableDefinition tableDefinition) void
SingleTableMultitenantPolicy.addToTableDefinition
(TableDefinition tableDefinition) INTERNAL:void
TablePerMultitenantPolicy.addToTableDefinition
(TableDefinition tableDefinition) INTERNAL:void
VPDMultitenantPolicy.addToTableDefinition
(TableDefinition tableDefinition) INTERNAL: -
Uses of TableDefinition in org.eclipse.persistence.internal.databaseaccess
Modifier and TypeMethodDescriptionboolean
DatabasePlatform.checkTableExists
(DatabaseSessionImpl session, TableDefinition table, boolean suppressLogging) INTERNAL: Executes and evaluates query to check whether given table exists.protected DataReadQuery
DatabasePlatform.getTableExistsQuery
(TableDefinition table) INTERNAL: Returns query to check whether given table exists.void
DatabasePlatform.writeAddColumnClause
(Writer writer, AbstractSession session, TableDefinition table, FieldDefinition field) INTERNAL: May need to override this method if the platform supports ALTER TABLE ADD <column> and the generated sql doesn't work. -
Uses of TableDefinition in org.eclipse.persistence.platform.database
Modifier and TypeMethodDescriptionboolean
MySQLPlatform.checkTableExists
(DatabaseSessionImpl session, TableDefinition table, boolean suppressLogging) INTERNAL: Executes and evaluates query to check whether given table exists.boolean
OraclePlatform.checkTableExists
(DatabaseSessionImpl session, TableDefinition table, boolean suppressLogging) INTERNAL: Executes and evaluates query to check whether given table exists.protected DataReadQuery
MySQLPlatform.getTableExistsQuery
(TableDefinition table) INTERNAL: Returns query to check whether given table exists.protected DataReadQuery
OraclePlatform.getTableExistsQuery
(TableDefinition table) INTERNAL: Returns query to check whether given table exists.void
HANAPlatform.writeAddColumnClause
(Writer writer, AbstractSession session, TableDefinition table, FieldDefinition field) -
Uses of TableDefinition in org.eclipse.persistence.sessions.factories
Modifier and TypeMethodDescriptionprotected NonreflectiveMethodDefinition
TableCreatorClassGenerator.buildTableMethod
(TableDefinition table) -
Uses of TableDefinition in org.eclipse.persistence.tools.schemaframework
Modifier and TypeClassDescriptionclass
Purpose: Allow for tabels of Oracle 8 object-relational user defined type to be created.Modifier and TypeFieldDescriptionprotected TableDefinition
TableSequenceDefinition.tableDefinition
Modifier and TypeFieldDescriptionprotected List
<TableDefinition> TableCreator.tableDefinitions
protected Map
<String, TableDefinition> DefaultTableGenerator.tableMap
Used to track the table definition: keyed by the table name, and valued by the table definition object.Modifier and TypeMethodDescriptionSequenceDefinition.buildTableDefinition()
INTERNAL: Return a TableDefinitionTableSequenceDefinition.buildTableDefinition()
INTERNAL: Return a TableDefinition specifying sequence table.UnaryTableSequenceDefinition.buildTableDefinition()
INTERNAL: Return a TableDefinition specifying a unary sequence table.protected TableDefinition
DefaultTableGenerator.getTableDefFromDBTable
(DatabaseTable databaseTable) Build a table definition object from a database table objectModifier and TypeMethodDescriptionprotected void
DefaultTableGenerator.addFieldsForMappedKeyMapContainerPolicy
(ContainerPolicy cp, TableDefinition table) The ContainerPolicy may contain some additional fields that should be added to the tableprotected void
DefaultTableGenerator.addForeignKeyConstraint
(TableDefinition sourceTableDef, TableDefinition targetTableDef, List<String> fkFields, List<String> targetFields, boolean cascadeOnDelete) Add a foreign key constraint to the source table.void
TableCreator.addTableDefinition
(TableDefinition tableDefinition) Add the table.protected void
DefaultTableGenerator.addUniqueKeyConstraints
(TableDefinition sourceTableDef, Map<String, List<List<String>>> uniqueConstraintsMap) void
FieldDefinition.appendDBString
(Writer writer, AbstractSession session, TableDefinition table) INTERNAL: Append the database field definition string to the table creation statement.void
SchemaManager.buildFieldTypes
(TableDefinition tableDef) INTERNAL: builds the field names based on the type read in from the builderprotected ForeignKeyConstraint
TableDefinition.buildForeignKeyConstraint
(List<String> fkFieldNames, List<String> pkFieldNames, TableDefinition targetTable, DatabasePlatform platform) Build a foreign key constraint.protected void
DefaultTableGenerator.buildRelationTableFields
(ForeignReferenceMapping mapping, TableDefinition table, List<DatabaseField> fkFields, List<DatabaseField> targetFields) Build field definitions and foreign key constraints for all many-to-many relation table.boolean
SchemaManager.checkTableExists
(TableDefinition table) Check if the table exists by issuing a query.boolean
SchemaManager.checkTableExists
(TableDefinition table, boolean suppressLogging) Check if the table exists by issuing a query.void
SchemaManager.createConstraints
(TableDefinition tableDefinition) Use the table definition to add the constraints to the database, this is normally done in two steps to avoid dependencies.void
SchemaManager.dropConstraints
(TableDefinition tableDefinition) Use the table definition to drop the constraints from the table, this is normally done in two steps to avoid dependencies.protected void
DefaultTableGenerator.setFieldToRelationTable
(DatabaseField dbField, TableDefinition table) Build and add a field definition object to relation tableModifier and TypeMethodDescriptionvoid
TableCreator.addTableDefinitions
(Collection<TableDefinition> tableDefs) Add a set of tables.void
TableCreator.createConstraints
(List<TableDefinition> tables, DatabaseSession session, SchemaManager schemaManager, boolean build) Create constraints.void
TableCreator.setTableDefinitions
(List<TableDefinition> tableDefinitions) Set the tables.