Package | Description |
---|---|
org.apache.openjpa.jdbc.identifier | |
org.apache.openjpa.jdbc.kernel |
OpenJPA-JDBC Runtime Kernel
Runtime services for the JDBC OpenJPA implementation.
|
org.apache.openjpa.jdbc.kernel.exps |
OpenJPA-JDBC Expression Tree
|
org.apache.openjpa.jdbc.meta |
OpenJPA-JDBC ORM Metadata
This package extends the standard persistence metadata with
object-relational mapping information.
|
org.apache.openjpa.jdbc.meta.strats |
OpenJPA-JDBC ORM Strategies
Library of mapping strategies.
|
org.apache.openjpa.jdbc.schema |
OpenJPA-JDBC Schema Management
This package provides utilities for managing the schema of
persistent objects stored in a relational database.
|
org.apache.openjpa.jdbc.sql |
OpenJPA-JDBC SQL Abstraction
Utilities for generating SQL.
|
org.apache.openjpa.persistence.jdbc |
OpenJPA JPA-JDBC
JDBC-specific extensions to OpenJPA JPA runtime.
|
Modifier and Type | Method and Description |
---|---|
DBIdentifier |
DBIdentifierUtil.getValidColumnIdentifier(DBIdentifier name,
Table table,
int maxLen,
boolean checkForUniqueness)
Returns a valid column name/identifier, based upon the configuration and
provided parameters.
|
DBIdentifier |
DBIdentifierUtilImpl.getValidColumnIdentifier(DBIdentifier name,
Table table,
int maxLen,
boolean checkForUniqueness) |
DBIdentifier |
DBIdentifierUtil.getValidForeignKeyIdentifier(DBIdentifier name,
Table table,
Table toTable,
int maxLen)
Returns a valid foreign key identifier, based upon the configuration and
provided parameters.
|
DBIdentifier |
DBIdentifierUtilImpl.getValidForeignKeyIdentifier(DBIdentifier name,
Table table,
Table toTable,
int maxLen) |
DBIdentifier |
DBIdentifierUtil.getValidIndexIdentifier(DBIdentifier name,
Table table,
int maxLen)
Returns a valid index identifier, based upon the configuration and
provided parameters.
|
DBIdentifier |
DBIdentifierUtilImpl.getValidIndexIdentifier(DBIdentifier name,
Table table,
int maxLen) |
DBIdentifier |
DBIdentifierUtil.getValidUniqueIdentifier(DBIdentifier name,
Table table,
int maxLen)
Returns a valid unique constraint identifier, based upon the configuration and
provided parameters.
|
DBIdentifier |
DBIdentifierUtilImpl.getValidUniqueIdentifier(DBIdentifier name,
Table table,
int maxLen) |
Modifier and Type | Method and Description |
---|---|
protected Column |
ClassTableJDBCSeq.addPrimaryKeyColumn(Table table) |
protected Column |
ValueTableJDBCSeq.addPrimaryKeyColumn(Table table) |
protected Column |
TableJDBCSeq.addPrimaryKeyColumn(Table table)
Add the primary key column to the given table and return it.
|
DBIdentifier |
TableJDBCSeq.resolveTableIdentifier(ClassMapping mapping,
Table table)
Resolve a fully qualified table name
|
String |
TableJDBCSeq.resolveTableName(ClassMapping mapping,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
FilterValue.getColumnAlias(String col,
Table table)
Return the alias to use for the given column (this includes the table
alias prefix, if any).
|
Modifier and Type | Method and Description |
---|---|
Table |
MappingInfo.createTable(MetaDataContext context,
MappingInfo.TableDefaults def,
DBIdentifier schemaName,
DBIdentifier given,
boolean adapt) |
Table |
MappingInfo.createTable(MetaDataContext context,
MappingInfo.TableDefaults def,
String schemaName,
String given,
boolean adapt)
Deprecated.
|
Table |
FieldMapping.getTable()
The mapping's primary table.
|
Table |
ClassMapping.getTable()
The mapping's primary table.
|
Table |
ClassMappingInfo.getTable(ClassMapping cls,
boolean adapt)
Return the primary table for the given class.
|
Table |
ClassMappingInfo.getTable(ClassMapping cls,
DBIdentifier tableName,
boolean adapt)
Return the named table for the given class.
|
Table |
ClassMappingInfo.getTable(ClassMapping cls,
String tableName,
boolean adapt)
Deprecated.
|
Table |
FieldMappingInfo.getTable(FieldMapping field,
boolean create,
boolean adapt)
Return the table for the given field, or null if no table given.
|
Table |
ValueMappingInfo.getTable(ValueMapping val) |
Modifier and Type | Method and Description |
---|---|
protected void |
MappingDefaultsImpl.correctName(Table table,
Column col)
Correct the given column's name.
|
protected Column[] |
MappingInfo.createColumns(MetaDataContext context,
String prefix,
Column[] tmplates,
Table table,
boolean adapt)
Retrieve/create columns on the given table by merging the given
template information with any user-provided information.
|
protected ForeignKey |
MappingInfo.createForeignKey(MetaDataContext context,
String prefix,
List<Column> given,
MappingInfo.ForeignKeyDefaults def,
Table table,
ClassMapping cls,
ClassMapping rel,
boolean inversable,
boolean adapt)
Retrieve/create a foreign key (possibly logical) on the given columns
by merging the given template information with any user-provided
information.
|
ForeignKey |
MappingInfo.ForeignKeyDefaults.get(Table local,
Table foreign,
boolean inverse)
Return a default foreign key for the given tables, or null to
create a logical foreign key only.
|
ClassMapping |
ReverseMappingTool.getClassMapping(Table table)
Return the class mapping for the given table, or null if none.
|
String |
ReverseCustomizer.getClassName(Table table,
String defaultName)
Return the fully-qualified class name to generate for the given table.
|
String |
PropertiesReverseCustomizer.getClassName(Table table,
String defaultName) |
Column[] |
ValueMappingInfo.getColumns(ValueMapping val,
DBIdentifier name,
Column[] tmplates,
Table table,
boolean adapt) |
Column[] |
ValueMappingInfo.getColumns(ValueMapping val,
String name,
Column[] tmplates,
Table table,
boolean adapt)
Deprecated.
|
Column[] |
ClassMappingInfo.getDataStoreIdColumns(ClassMapping cls,
Column[] tmplates,
Table table,
boolean adapt)
Return the datastore identity columns for the given class, based on the
given templates.
|
ForeignKey |
NoneMappingDefaults.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse) |
ForeignKey |
MappingDefaultsImpl.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse) |
ForeignKey |
MappingDefaults.getForeignKey(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
boolean inverse)
Return a default foreign key for the join from this value to its
related type, or null for a logical foreign key only.
|
ForeignKey |
NoneMappingDefaults.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
ForeignKey |
MappingDefaultsImpl.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
ForeignKey |
MappingDefaults.getForeignKey(ValueMapping vm,
String name,
Table local,
Table foreign,
boolean inverse)
Deprecated.
|
Index |
NoneMappingDefaults.getIndex(Discriminator disc,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(Discriminator disc,
Table table,
Column[] cols) |
Index |
MappingDefaults.getIndex(Discriminator disc,
Table table,
Column[] cols)
Return a default index for the discriminator, or null if the
discriminator columns should not be indexed by default.
|
Index |
NoneMappingDefaults.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Index |
MappingDefaults.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Return a default index for the value, or null if the value columns
should not be indexed by default.
|
Index |
NoneMappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Index |
MappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Index |
NoneMappingDefaults.getIndex(Version vers,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getIndex(Version vers,
Table table,
Column[] cols) |
Index |
MappingDefaults.getIndex(Version vers,
Table table,
Column[] cols)
Return a default index for the version, or null if the
version columns should not be indexed by default.
|
protected DBIdentifier |
MappingDefaultsImpl.getIndexName(DBIdentifier name,
Table table,
Column[] cols) |
protected String |
MappingDefaultsImpl.getIndexName(String name,
Table table,
Column[] cols)
Deprecated.
|
ForeignKey |
FieldMappingInfo.getJoin(FieldMapping field,
Table table,
boolean adapt)
Return the join from the field table to the owning class table.
|
ForeignKey |
FieldMappingInfo.getJoin(FieldMapping field,
Table table,
boolean adapt,
List<Column> cols) |
ForeignKey |
NoneMappingDefaults.getJoinForeignKey(ClassMapping cls,
Table local,
Table foreign) |
ForeignKey |
MappingDefaultsImpl.getJoinForeignKey(ClassMapping cls,
Table local,
Table foreign) |
ForeignKey |
MappingDefaults.getJoinForeignKey(ClassMapping cls,
Table local,
Table foreign)
Return a default foreign key for the join from this class' table to its
superclass' table, or null for a logical foreign key only.
|
ForeignKey |
FieldMappingInfo.getJoinForeignKey(FieldMapping field,
Table table,
boolean adapt) |
ForeignKey |
NoneMappingDefaults.getJoinForeignKey(FieldMapping fm,
Table local,
Table foreign) |
ForeignKey |
MappingDefaultsImpl.getJoinForeignKey(FieldMapping fm,
Table local,
Table foreign) |
ForeignKey |
MappingDefaults.getJoinForeignKey(FieldMapping fm,
Table local,
Table foreign)
Return a default foreign key for the join from this field's table to its
defining class' table, or null for a logical foreign key only.
|
Index |
NoneMappingDefaults.getJoinIndex(FieldMapping fm,
Table table,
Column[] cols) |
Index |
MappingDefaultsImpl.getJoinIndex(FieldMapping fm,
Table table,
Column[] cols) |
Index |
MappingDefaults.getJoinIndex(FieldMapping fm,
Table table,
Column[] cols)
Return a default index for the join, or null if the
join columns should not be indexed by default.
|
Unique |
NoneMappingDefaults.getJoinUnique(FieldMapping fm,
Table table,
Column[] cols) |
Unique |
MappingDefaultsImpl.getJoinUnique(FieldMapping fm,
Table table,
Column[] cols) |
Unique |
MappingDefaults.getJoinUnique(FieldMapping fm,
Table table,
Column[] cols)
Return a default constraint for the join, or null if the join columns
should not be constrained by default.
|
Column |
ValueMappingInfo.getNullIndicatorColumn(ValueMapping val,
DBIdentifier name,
Table table,
boolean adapt) |
Column |
ValueMappingInfo.getNullIndicatorColumn(ValueMapping val,
String name,
Table table,
boolean adapt)
Deprecated.
|
Column |
FieldMappingInfo.getOrderColumn(FieldMapping field,
Table table,
boolean adapt)
Return the ordering column for this field, or null if none.
|
DBIdentifier |
NoneMappingDefaults.getPrimaryKeyIdentifier(ClassMapping cm,
Table table) |
DBIdentifier |
MappingDefaultsImpl.getPrimaryKeyIdentifier(ClassMapping cm,
Table table) |
DBIdentifier |
MappingDefaults.getPrimaryKeyIdentifier(ClassMapping cm,
Table table)
Return the name of the primary key for the table of the given class,
or null for database default.
|
String |
NoneMappingDefaults.getPrimaryKeyName(ClassMapping cm,
Table table) |
String |
MappingDefaultsImpl.getPrimaryKeyName(ClassMapping cm,
Table table)
Deprecated.
|
String |
MappingDefaults.getPrimaryKeyName(ClassMapping cm,
Table table)
Deprecated.
|
ForeignKey |
ClassMappingInfo.getSuperclassJoin(ClassMapping cls,
Table table,
boolean adapt)
Return the join from this class to its superclass.
|
int |
ReverseCustomizer.getTableType(Table table,
int defaultType)
Return the type of the given table, or the given default type.
|
int |
PropertiesReverseCustomizer.getTableType(Table table,
int defaultType) |
Unique |
NoneMappingDefaults.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Unique |
MappingDefaultsImpl.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Unique |
MappingDefaults.getUnique(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Return a default constraint for the value, or null if the value columns
should not be constrained by default.
|
Unique |
NoneMappingDefaults.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols) |
Unique |
MappingDefaultsImpl.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Unique |
MappingDefaults.getUnique(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
ForeignKey |
ReverseMappingTool.getUniqueForeignKey(Table table)
If the given table has a single unique foreign key or a foreign
key that matches the primary key, return it.
|
void |
NoneMappingDefaults.installPrimaryKey(FieldMapping fm,
Table table) |
void |
MappingDefaultsImpl.installPrimaryKey(FieldMapping fm,
Table table) |
void |
MappingDefaults.installPrimaryKey(FieldMapping fm,
Table table)
If desired, install a primary key on the given secondary table.
|
boolean |
ReverseMappingTool.isBaseTable(Table table)
Return whether the given table is a base class table.
|
protected static Column |
MappingInfo.mergeColumn(MetaDataContext context,
String prefix,
Column tmplate,
boolean compat,
Column given,
Table table,
boolean adapt,
boolean fill)
Merge the given columns if possible.
|
ClassMapping |
ReverseMappingTool.newClassMapping(Class cls,
Table table)
Create a new class to be mapped to a table.
|
void |
MappingInfo.ForeignKeyDefaults.populate(Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Populate the given foreign key column with defaults.
|
void |
NoneMappingDefaults.populateColumns(Discriminator disc,
Table table,
Column[] cols) |
void |
MappingDefaultsImpl.populateColumns(Discriminator disc,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(Discriminator disc,
Table table,
Column[] cols)
Fill in default information for the given discriminator columns.
|
void |
NoneMappingDefaults.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
void |
MappingDefaultsImpl.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Fill in default information for the given value columns.
|
void |
NoneMappingDefaults.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
void |
MappingDefaultsImpl.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
void |
NoneMappingDefaults.populateColumns(Version vers,
Table table,
Column[] cols) |
void |
MappingDefaultsImpl.populateColumns(Version vers,
Table table,
Column[] cols) |
void |
MappingDefaults.populateColumns(Version vers,
Table table,
Column[] cols)
Fill in default information for the given version columns.
|
void |
NoneMappingDefaults.populateDataStoreIdColumns(ClassMapping cls,
Table table,
Column[] cols) |
void |
MappingDefaultsImpl.populateDataStoreIdColumns(ClassMapping cls,
Table table,
Column[] cols) |
void |
MappingDefaults.populateDataStoreIdColumns(ClassMapping cls,
Table table,
Column[] cols)
Fill in default information for the given datastore identity columns.
|
void |
NoneMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
MappingDefaultsImpl.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
MappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Fill in default information for the given column used to join a value
to its related type.
|
void |
NoneMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
void |
MappingDefaultsImpl.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
void |
MappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols)
Deprecated.
|
void |
NoneMappingDefaults.populateJoinColumn(ClassMapping cm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols) |
void |
MappingDefaultsImpl.populateJoinColumn(ClassMapping cm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols) |
void |
MappingDefaults.populateJoinColumn(ClassMapping cm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols)
Fill in default information for the given column used to join a class
to its superclass table.
|
void |
NoneMappingDefaults.populateJoinColumn(FieldMapping fm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols) |
void |
MappingDefaultsImpl.populateJoinColumn(FieldMapping fm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols) |
void |
MappingDefaults.populateJoinColumn(FieldMapping fm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols)
Fill in default information for the given column used to join a field
to its defining class' table.
|
boolean |
NoneMappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
boolean |
MappingDefaultsImpl.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
boolean |
MappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols)
Fill in default information for the given null indicator columns.
|
boolean |
NoneMappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
MappingDefaultsImpl.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
MappingDefaults.populateNullIndicatorColumns(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
boolean |
NoneMappingDefaults.populateOrderColumns(FieldMapping fm,
Table table,
Column[] cols) |
boolean |
MappingDefaultsImpl.populateOrderColumns(FieldMapping fm,
Table table,
Column[] cols) |
boolean |
MappingDefaults.populateOrderColumns(FieldMapping fm,
Table table,
Column[] cols)
Fill in default information for the given order columns.
|
void |
ClassMapping.setTable(Table table)
The mapping's primary table.
|
protected static Column |
MappingInfo.syncColumn(MetaDataContext context,
Column col,
int num,
boolean forceJDBCType,
Table colTable,
Table targetTable,
Object target,
boolean inverse)
Create a copy of the given column with the raw mapping information
set correctly, and without settings that match defaults.
|
protected void |
MappingInfo.syncForeignKey(MetaDataContext context,
ForeignKey fk,
Table local,
Table target)
Sets internal constraint and column information to match given mapped
constraint.
|
boolean |
ReverseCustomizer.unmappedTable(Table table)
Notification that a table has gone unmapped.
|
boolean |
PropertiesReverseCustomizer.unmappedTable(Table table) |
Modifier and Type | Method and Description |
---|---|
StateComparisonVersionStrategy.CustomUpdate |
StateComparisonVersionStrategy.customUpdate(OpenJPAStateManager sm,
JDBCStore store,
Table table,
boolean record)
This method is for class mappings that take over the update
process, but still want to use this indicator for optimistic locking.
|
Row |
StateComparisonVersionStrategy.CustomUpdate.getAllRows(Table table,
int action) |
Row |
StateComparisonVersionStrategy.CustomUpdate.getRow(Table table,
int action,
OpenJPAStateManager sm,
boolean create) |
Row |
StateComparisonVersionStrategy.CustomUpdate.getSecondaryRow(Table table,
int action) |
Modifier and Type | Method and Description |
---|---|
Table |
Schema.addTable(DBIdentifier name) |
Table |
Schema.addTable(DBIdentifier name,
DBIdentifier validName) |
Table |
Schema.addTable(String name)
Deprecated.
|
Table |
Schema.addTable(String name,
String validName)
Deprecated.
|
Table |
LazySchemaFactory.findTable(DBIdentifier name) |
Table |
DynamicSchemaFactory.findTable(DBIdentifier name) |
Table |
LazySchemaFactory.findTable(QualifiedDBIdentifier path) |
Table |
SchemaGroup.findTable(QualifiedDBIdentifier path) |
Table |
DynamicSchemaFactory.findTable(QualifiedDBIdentifier path) |
Table |
SchemaGroup.findTable(Schema inSchema,
DBIdentifier name) |
Table |
SchemaGroup.findTable(Schema inSchema,
DBIdentifier name,
DBIdentifier defaultSchemaName) |
Table |
SchemaGroup.findTable(Schema inSchema,
QualifiedDBIdentifier path,
DBIdentifier defaultSchemaName) |
Table |
SchemaGroup.findTable(Schema inSchema,
String name)
Deprecated.
|
Table |
LazySchemaFactory.findTable(String name)
Deprecated.
|
Table |
SchemaGroup.findTable(String name)
Deprecated.
|
Table |
DynamicSchemaFactory.findTable(String name) |
Table |
SchemaGroup.findTable(Table table)
Find the equivalent of the given table in this schema group.
|
Table |
ForeignKey.getPrimaryKeyTable()
Returns the table this foreign key is linking to, if it is known yet.
|
Table |
Constraint.getTable()
Return the table of this constraint.
|
Table |
Column.getTable()
Return the table for the column.
|
Table |
Schema.getTable(DBIdentifier name) |
Table |
Schema.getTable(String name)
Deprecated.
|
Table[] |
SchemaSerializer.getTables()
Return the set of tables that will be serialized.
|
Table[] |
Schema.getTables()
Return the schema's tables.
|
Table[] |
XMLSchemaSerializer.getTables() |
Table |
Schema.importTable(Table table)
Import a table from another schema.
|
protected Table |
SchemaGroup.newTable(DBIdentifier name,
Schema schema) |
protected Table |
DynamicSchemaFactory.newTable(DBIdentifier name,
Schema schema) |
protected Table |
SchemaGroup.newTable(String name,
Schema schema)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
SchemaSerializer.addTable(Table table)
Add the given table to the set of tables that will be serialized.
|
void |
XMLSchemaSerializer.addTable(Table table) |
boolean |
SchemaTool.createIndex(Index idx,
Table table)
Add the given index to the database schema.
|
boolean |
SchemaTool.createIndex(Index idx,
Table table,
Unique[] uniques) |
boolean |
SchemaTool.createTable(Table table)
Add the given table to the database schema.
|
boolean |
SchemaTool.dropTable(Table table)
Drop the given table from the database schema.
|
protected ForeignKey |
SchemaTool.findForeignKey(Table dbTable,
ForeignKey fk)
Find a foreign key in the given table that matches the given one.
|
protected Index |
SchemaTool.findIndex(Table dbTable,
Index idx)
Find an index in the given table that matches the given one.
|
Table |
SchemaGroup.findTable(Table table)
Find the equivalent of the given table in this schema group.
|
Table |
Schema.importTable(Table table)
Import a table from another schema.
|
protected boolean |
SchemaTool.isDroppable(Table table)
Return true if the table is droppable.
|
boolean |
SchemaGroup.isKnownTable(Table table)
Return true if the given table is known to exist.
|
boolean |
DynamicSchemaFactory.isKnownTable(Table table) |
protected Column |
SchemaGroup.newColumn(DBIdentifier name,
Table table) |
protected Column |
DynamicSchemaFactory.newColumn(DBIdentifier name,
Table table) |
protected Column |
SchemaGroup.newColumn(String name,
Table table)
Deprecated.
|
protected ForeignKey |
SchemaGroup.newForeignKey(DBIdentifier name,
Table table) |
protected ForeignKey |
SchemaGroup.newForeignKey(String name,
Table table)
Deprecated.
|
protected Index |
SchemaGroup.newIndex(DBIdentifier name,
Table table) |
protected Index |
SchemaGroup.newIndex(String name,
Table table)
Deprecated.
|
protected PrimaryKey |
SchemaGroup.newPrimaryKey(DBIdentifier name,
Table table) |
protected PrimaryKey |
SchemaGroup.newPrimaryKey(String name,
Table table)
Deprecated.
|
protected Unique |
SchemaGroup.newUnique(DBIdentifier name,
Table table) |
protected Unique |
SchemaGroup.newUnique(String name,
Table table)
Deprecated.
|
boolean |
SchemaSerializer.removeTable(Table table)
Remove the given table from the set to be serialized.
|
boolean |
Schema.removeTable(Table tab)
Remove the given table from the schema.
|
boolean |
XMLSchemaSerializer.removeTable(Table table) |
Modifier and Type | Method and Description |
---|---|
protected void |
SchemaTool.dropTables(Collection<Table> tables,
SchemaGroup change)
Remove the given collection of tables from the database schema.
|
Constructor and Description |
---|
Column(DBIdentifier name,
Table table) |
Column(String name,
Table table)
Deprecated.
|
ForeignKey(DBIdentifier name,
Table table) |
ForeignKey(String name,
Table table)
Deprecated.
|
Index(DBIdentifier name,
Table table) |
Index(String name,
Table table)
Deprecated.
|
LocalConstraint(DBIdentifier name,
Table table) |
LocalConstraint(String name,
Table table)
Deprecated.
|
PrimaryKey(DBIdentifier name,
Table table) |
PrimaryKey(String name,
Table table)
Deprecated.
|
Unique(DBIdentifier name,
Table table) |
Unique(String name,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Table |
RowImpl.getTable() |
Table |
Row.getTable()
Return the table for this row.
|
Table |
Join.getTable1() |
Table |
Join.getTable2() |
Table[] |
DBDictionary.getTables(DatabaseMetaData meta,
DBIdentifier sqlCatalog,
DBIdentifier sqlSchemaName,
DBIdentifier sqlTableName,
Connection conn)
Reflect on the schema to find tables matching the given name pattern.
|
Table[] |
DBDictionary.getTables(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
Deprecated.
not used by openjpa internally anymore
|
protected Table |
DBDictionary.newTable(ResultSet tableMeta)
Create a new table from the information in the schema metadata.
|
Modifier and Type | Method and Description |
---|---|
SQLBuffer |
SQLBuffer.append(Table table) |
Joins |
SelectImpl.crossJoin(Table localTable,
Table foreignTable) |
Joins |
SelectImpl.SelectResult.crossJoin(Table localTable,
Table foreignTable) |
Joins |
Joins.crossJoin(Table localTable,
Table foreignTable)
Perform a cross join on the given tables.
|
Row |
RowManagerImpl.getAllRows(Table table,
int action) |
Row |
RowManager.getAllRows(Table table,
int action)
Return a logical row representing an update that should be made to
all rows of the given table.
|
String |
Select.getColumnAlias(String col,
Table table)
Return the alias for the given column.
|
String |
SelectImpl.getColumnAlias(String col,
Table table) |
String |
LogicalUnion.UnionSelect.getColumnAlias(String col,
Table table) |
String |
Select.getColumnAlias(String col,
Table table,
Joins joins)
Return the alias for the given column.
|
String |
SelectImpl.getColumnAlias(String col,
Table table,
Joins joins) |
String |
LogicalUnion.UnionSelect.getColumnAlias(String col,
Table table,
Joins joins) |
String[] |
MySQLDictionary.getCreateTableSQL(Table table) |
String[] |
HSQLDictionary.getCreateTableSQL(Table table) |
String[] |
H2Dictionary.getCreateTableSQL(Table table) |
String[] |
SybaseDictionary.getCreateTableSQL(Table table) |
String[] |
InformixDictionary.getCreateTableSQL(Table table) |
String[] |
DBDictionary.getCreateTableSQL(Table table)
Return a series of SQL statements to create the given table, complete
with columns.
|
String[] |
OracleDictionary.getCreateTableSQL(Table table) |
String[] |
MariaDBDictionary.getCreateTableSQL(Table table) |
String[] |
DBDictionary.getCreateTableSQL(Table table,
SchemaGroup group)
Return a series of SQL statements to create the given table, complete
with columns.
|
String[] |
SolidDBDictionary.getCreateTableSQL(Table table,
SchemaGroup group) |
String[] |
MySQLDictionary.getDeleteTableContentsSQL(Table[] tables,
Connection conn) |
String[] |
DBDictionary.getDeleteTableContentsSQL(Table[] tables,
Connection conn)
Create SQL to delete the contents of the specified tables.
|
String[] |
MariaDBDictionary.getDeleteTableContentsSQL(Table[] tables,
Connection conn) |
String[] |
DBDictionary.getDropTableSQL(Table table)
Return a series of SQL statements to drop the given table.
|
DBIdentifier |
DBDictionary.getFullIdentifier(Table table,
boolean logical)
Returns the full name of the table, including the schema (delimited
by
DBDictionary.catalogSeparator ). |
String |
DBDictionary.getFullName(Table table,
boolean logical) |
Row |
RowManagerImpl.getRow(Table table,
int action,
OpenJPAStateManager sm,
boolean create) |
Row |
RowManager.getRow(Table table,
int action,
OpenJPAStateManager sm,
boolean create)
Return the row for the given table and owner object, or null if
create is false and the row has not already been created. |
Row |
RowManagerImpl.getSecondaryRow(Table table,
int action) |
Row |
RowManager.getSecondaryRow(Table table,
int action)
Return a row for the given secondary table.
|
DBIdentifier |
DBDictionary.getValidColumnName(DBIdentifier name,
Table table)
Make any necessary changes to the given column name to make it valid
for the current DB.
|
DBIdentifier |
DBDictionary.getValidColumnName(DBIdentifier name,
Table table,
boolean checkForUniqueness)
Make any necessary changes to the given column name to make it valid
for the current DB.
|
String |
DBDictionary.getValidColumnName(String name,
Table table)
Deprecated.
|
String |
DBDictionary.getValidColumnName(String name,
Table table,
boolean checkForUniqueness)
Deprecated.
|
DBIdentifier |
DBDictionary.getValidForeignKeyName(DBIdentifier name,
Table table,
Table toTable)
Make any necessary changes to the given foreign key name to make it
valid for the current DB.
|
String |
DBDictionary.getValidForeignKeyName(String name,
Table table,
Table toTable)
Deprecated.
|
DBIdentifier |
DBDictionary.getValidIndexName(DBIdentifier name,
Table table)
Make any necessary changes to the given index name to make it valid
for the current DB.
|
String |
DBDictionary.getValidIndexName(String name,
Table table)
Deprecated.
|
String |
DBDictionary.getValidPrimaryKeyName(String name,
Table table)
Make any necessary changes to the given primary key name to make it
valid for the current DB.
|
DBIdentifier |
DBDictionary.getValidUniqueName(DBIdentifier name,
Table table)
Make any necessary changes to the given unique constraint name to make
it valid for the current DB.
|
String |
DBDictionary.getValidUniqueName(String name,
Table table)
Deprecated.
|
boolean |
Select.isSelected(Table table)
Return whether the given table is being used in this select.
|
boolean |
SelectImpl.isSelected(Table table) |
boolean |
LogicalUnion.UnionSelect.isSelected(Table table) |
boolean |
HSQLDictionary.isSystemIndex(DBIdentifier name,
Table table) |
boolean |
H2Dictionary.isSystemIndex(DBIdentifier name,
Table table) |
boolean |
DBDictionary.isSystemIndex(DBIdentifier name,
Table table)
This method is used to filter system indexes from database metadata.
|
boolean |
PostgresDictionary.isSystemIndex(DBIdentifier name,
Table table) |
boolean |
SolidDBDictionary.isSystemIndex(DBIdentifier name,
Table table) |
boolean |
HSQLDictionary.isSystemIndex(String name,
Table table) |
boolean |
H2Dictionary.isSystemIndex(String name,
Table table) |
boolean |
DBDictionary.isSystemIndex(String name,
Table table)
Deprecated.
|
boolean |
EmpressDictionary.isSystemIndex(String name,
Table table) |
boolean |
PostgresDictionary.isSystemIndex(String name,
Table table) |
boolean |
InformixDictionary.needsToCreateIndex(Index idx,
Table table) |
boolean |
DBDictionary.needsToCreateIndex(Index idx,
Table table) |
boolean |
DBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
boolean |
SolidDBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
void |
SybaseDictionary.refSchemaComponents(Table table) |
void |
DBDictionary.refSchemaComponents(Table table)
Increment the reference count of any table components that this
dictionary adds that are not used by mappings.
|
Constructor and Description |
---|
PrimaryRow(Table table,
int action,
OpenJPAStateManager owner)
Constructor; supply table and action.
|
RowImpl(Table table,
int action)
Constructor.
|
SecondaryRow(Table table,
int action)
Constructor; supply table and action.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistenceMappingDefaults.populateColumns(Version vers,
Table table,
Column[] cols) |
void |
PersistenceMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
DBIdentifier sName,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
PersistenceMappingDefaults.populateForeignKeyColumn(ValueMapping vm,
String name,
Table local,
Table foreign,
Column col,
Object target,
boolean inverse,
int pos,
int cols) |
void |
PersistenceMappingDefaults.populateJoinColumn(FieldMapping fm,
Table local,
Table foreign,
Column col,
Object target,
int pos,
int cols) |
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.