Package | Description |
---|---|
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.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.
|
Modifier and Type | Method and Description |
---|---|
protected Index |
MappingInfo.createIndex(MetaDataContext context,
String prefix,
Index tmplate,
Column[] cols,
boolean adapt)
Retrieve/create an index on the given columns by merging the given
template information with any user-provided information.
|
Index |
Discriminator.getIndex()
Index on the Discriminator columns, or null if none.
|
Index |
MappingInfo.getIndex()
Raw index.
|
Index |
Version.getIndex()
Index on the version columns, or null if none.
|
Index |
DiscriminatorMappingInfo.getIndex(Discriminator discrim,
Column[] cols,
boolean adapt)
Return the index to set on the discriminator columns, or null if none.
|
Index |
NoneMappingDefaults.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 |
MappingDefaultsImpl.getIndex(Discriminator disc,
Table table,
Column[] cols) |
Index |
ValueMappingInfo.getIndex(ValueMapping val,
DBIdentifier name,
boolean adapt) |
Index |
NoneMappingDefaults.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 |
MappingDefaultsImpl.getIndex(ValueMapping vm,
DBIdentifier name,
Table table,
Column[] cols) |
Index |
ValueMappingInfo.getIndex(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
Index |
NoneMappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols) |
Index |
MappingDefaults.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Index |
MappingDefaultsImpl.getIndex(ValueMapping vm,
String name,
Table table,
Column[] cols)
Deprecated.
|
Index |
VersionMappingInfo.getIndex(Version version,
Column[] cols,
boolean adapt)
Return the index to set on the version columns, or null if none.
|
Index |
NoneMappingDefaults.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.
|
Index |
MappingDefaultsImpl.getIndex(Version vers,
Table table,
Column[] cols) |
Index[] |
ClassMappingInfo.getIndices(MetaDataContext cm,
boolean adapt)
Get all indices associated with both the primary and/or
secondary tables.
|
Index |
FieldMapping.getJoinIndex()
Index on join foreign key columns.
|
Index |
FieldMappingInfo.getJoinIndex(FieldMapping field,
boolean adapt)
Index on the field join.
|
Index |
NoneMappingDefaults.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.
|
Index |
MappingDefaultsImpl.getJoinIndex(FieldMapping fm,
Table table,
Column[] cols) |
Index |
FieldMapping.getValueIndex() |
Index |
ValueMappingImpl.getValueIndex() |
Index |
ValueMapping.getValueIndex()
Index on this value's columns, or null if none.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassMappingInfo.addIndex(DBIdentifier table,
Index idx)
Add index for the given table.
|
protected Index |
MappingInfo.createIndex(MetaDataContext context,
String prefix,
Index tmplate,
Column[] cols,
boolean adapt)
Retrieve/create an index on the given columns by merging the given
template information with any user-provided information.
|
void |
Discriminator.setIndex(Index idx)
Index on the Discriminator columns, or null if none.
|
void |
MappingInfo.setIndex(Index idx)
Raw index.
|
void |
Version.setIndex(Index idx)
Index on the version columns, or null if none.
|
void |
FieldMapping.setJoinIndex(Index idx)
Index on join foreign key columns.
|
void |
FieldMapping.setValueIndex(Index idx) |
void |
ValueMappingImpl.setValueIndex(Index idx) |
void |
ValueMapping.setValueIndex(Index idx)
Index on this value's columns, or null if none.
|
protected void |
MappingInfo.syncIndex(MetaDataContext context,
Index idx)
Sets internal index information to match given mapped index.
|
Modifier and Type | Field and Description |
---|---|
static Index[] |
Schemas.EMPTY_INDEXES |
Modifier and Type | Method and Description |
---|---|
Index |
Table.addIndex(DBIdentifier name) |
Index |
Table.addIndex(String name)
Deprecated.
|
protected Index |
SchemaTool.findIndex(Table dbTable,
Index idx)
Find an index in the given table that matches the given one.
|
Index |
Table.getIndex(DBIdentifier name) |
Index |
Table.getIndex(String name)
Deprecated.
|
Index[] |
Table.getIndexes()
Return the table's indexes.
|
Index |
Table.importIndex(Index idx)
Import an index; column names must match columns of this table.
|
protected Index |
SchemaGroup.newIndex(DBIdentifier name,
Table table) |
protected Index |
SchemaGroup.newIndex(String name,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.dropIndex(Index idx)
Drop the given index from the database schema.
|
boolean |
Index.equalsIndex(Index idx)
Indexes are equal if they have the same name, the same columns, and
are both unique/not unique.
|
protected Index |
SchemaTool.findIndex(Table dbTable,
Index idx)
Find an index in the given table that matches the given one.
|
Index |
Table.importIndex(Index idx)
Import an index; column names must match columns of this table.
|
boolean |
Table.removeIndex(Index idx)
Remove the given index from the table.
|
Modifier and Type | Method and Description |
---|---|
Index[] |
OracleDictionary.getIndexInfo(DatabaseMetaData meta,
DBIdentifier catalog,
DBIdentifier schemaName,
DBIdentifier tableName,
boolean unique,
boolean approx,
Connection conn) |
Index[] |
DBDictionary.getIndexInfo(DatabaseMetaData meta,
DBIdentifier catalog,
DBIdentifier schemaName,
DBIdentifier tableName,
boolean unique,
boolean approx,
Connection conn)
Reflect on the schema to find indexes matching the given table pattern.
|
Index[] |
OracleDictionary.getIndexInfo(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
boolean unique,
boolean approx,
Connection conn) |
Index[] |
DBDictionary.getIndexInfo(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
boolean unique,
boolean approx,
Connection conn)
Deprecated.
|
protected Index |
SybaseDictionary.newIndex(ResultSet idxMeta)
Create a new index from the information in the index metadata.
|
Index |
InformixDictionary.newIndex(ResultSet idxMeta) |
protected Index |
DBDictionary.newIndex(ResultSet idxMeta)
Create a new index from the information in the schema metadata.
|
Modifier and Type | Method and Description |
---|---|
String[] |
FoxProDictionary.getCreateIndexSQL(Index index) |
String[] |
DBDictionary.getCreateIndexSQL(Index index)
Return a series of SQL statements to create the given index.
|
String[] |
MySQLDictionary.getDropIndexSQL(Index index) |
String[] |
MariaDBDictionary.getDropIndexSQL(Index index) |
String[] |
DBDictionary.getDropIndexSQL(Index index)
Return a series of SQL statements to drop the given index.
|
String |
PointbaseDictionary.getFullName(Index index) |
String |
AbstractSQLServerDictionary.getFullName(Index idx) |
String |
DBDictionary.getFullName(Index index)
Returns the full name of the index, including the schema (delimited
by the result of
DBDictionary.catalogSeparator ). |
boolean |
InformixDictionary.needsToCreateIndex(Index idx,
Table table) |
boolean |
DBDictionary.needsToCreateIndex(Index idx,
Table table) |
boolean |
SolidDBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
boolean |
DBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.