Uses of Class
org.apache.openjpa.jdbc.schema.Index
Package
Description
OpenJPA-JDBC ORM Metadata
OpenJPA-JDBC Schema Management
OpenJPA-JDBC SQL Abstraction
-
Uses of Index in org.apache.openjpa.jdbc.meta
Modifier and TypeMethodDescriptionprotected 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.Discriminator.getIndex()
Index on the Discriminator columns, or null if none.DiscriminatorMappingInfo.getIndex
(Discriminator discrim, Column[] cols, boolean adapt) Return the index to set on the discriminator columns, or null if none.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.MappingDefaults.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.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.Return a default index for the version, or null if the version columns should not be indexed by default.MappingDefaultsImpl.getIndex
(Discriminator disc, Table table, Column[] cols) MappingDefaultsImpl.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) Deprecated.MappingDefaultsImpl.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) MappingInfo.getIndex()
Raw index.NoneMappingDefaults.getIndex
(Discriminator disc, Table table, Column[] cols) NoneMappingDefaults.getIndex
(ValueMapping vm, String name, Table table, Column[] cols) NoneMappingDefaults.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getIndex
(ValueMapping val, String name, boolean adapt) Deprecated.ValueMappingInfo.getIndex
(ValueMapping val, DBIdentifier name, boolean adapt) Version.getIndex()
Index on the version columns, or null if none.Return the index to set on the version columns, or null if none.Index[]
ClassMappingInfo.getIndices
(MetaDataContext cm, boolean adapt) Get all indices associated with both the primary and/or secondary tables.FieldMapping.getJoinIndex()
Index on join foreign key columns.FieldMappingInfo.getJoinIndex
(FieldMapping field, boolean adapt) Index on the field join.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.MappingDefaultsImpl.getJoinIndex
(FieldMapping fm, Table table, Column[] cols) NoneMappingDefaults.getJoinIndex
(FieldMapping fm, Table table, Column[] cols) FieldMapping.getValueIndex()
ValueMapping.getValueIndex()
Index on this value's columns, or null if none.ValueMappingImpl.getValueIndex()
Modifier and TypeMethodDescriptionvoid
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
Index on the Discriminator columns, or null if none.void
Raw index.void
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
ValueMapping.setValueIndex
(Index idx) Index on this value's columns, or null if none.void
ValueMappingImpl.setValueIndex
(Index idx) protected void
MappingInfo.syncIndex
(MetaDataContext context, Index idx) Sets internal index information to match given mapped index. -
Uses of Index in org.apache.openjpa.jdbc.schema
Modifier and TypeMethodDescriptionDeprecated.Table.addIndex
(DBIdentifier name) protected Index
Find an index in the given table that matches the given one.Deprecated.Table.getIndex
(DBIdentifier name) Index[]
Table.getIndexes()
Return the table's indexes.Table.importIndex
(Index idx) Import an index; column names must match columns of this table.protected Index
Deprecated.protected Index
SchemaGroup.newIndex
(DBIdentifier name, Table table) Modifier and TypeMethodDescriptionboolean
SchemaTool.createIndex
(Index idx, Table table) Add the given index to the database schema.boolean
SchemaTool.createIndex
(Index idx, Table table, Unique[] uniques) boolean
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
Find an index in the given table that matches the given one.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. -
Uses of Index in org.apache.openjpa.jdbc.sql
Modifier and TypeMethodDescriptionIndex[]
DBDictionary.getIndexInfo
(DatabaseMetaData meta, String catalog, String schemaName, String tableName, boolean unique, boolean approx, Connection conn) Deprecated.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[]
OracleDictionary.getIndexInfo
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, boolean unique, boolean approx, Connection conn) protected Index
Create a new index from the information in the schema metadata.protected Index
Create a new index from the information in the index metadata.Modifier and TypeMethodDescriptionString[]
DBDictionary.getCreateIndexSQL
(Index index) Return a series of SQL statements to create the given index.String[]
FoxProDictionary.getCreateIndexSQL
(Index index) String[]
DBDictionary.getDropIndexSQL
(Index index) Return a series of SQL statements to drop the given index.String[]
MariaDBDictionary.getDropIndexSQL
(Index index) String[]
MySQLDictionary.getDropIndexSQL
(Index index) AbstractSQLServerDictionary.getFullName
(Index idx) DBDictionary.getFullName
(Index index) Returns the full name of the index, including the schema (delimited by the result ofDBDictionary.catalogSeparator
).PointbaseDictionary.getFullName
(Index index) boolean
DBDictionary.needsToCreateIndex
(Index idx, Table table) boolean
DBDictionary.needsToCreateIndex
(Index idx, Table table, Unique[] uniques) boolean
InformixDictionary.needsToCreateIndex
(Index idx, Table table) boolean
SolidDBDictionary.needsToCreateIndex
(Index idx, Table table, Unique[] uniques)