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 Unique |
MappingInfo.createUnique(MetaDataContext context,
String prefix,
Unique tmplate,
Column[] cols,
boolean adapt)
Retrieve/create a unique constraint on the given columns by merging the
given template information with any user-provided information.
|
Unique[] |
FieldMapping.getJoinTableUniques() |
Unique[] |
FieldMappingInfo.getJoinTableUniques(FieldMapping field,
boolean def,
boolean adapt)
Get the unique constraints associated with the Sequence table.
|
Unique |
FieldMapping.getJoinUnique()
Unique constraint on join foreign key columns.
|
Unique |
FieldMappingInfo.getJoinUnique(FieldMapping field,
boolean def,
boolean adapt)
Unique constraint on the field join.
|
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.
|
Unique |
MappingInfo.getUnique()
Raw unique constraint information.
|
Unique |
ValueMappingInfo.getUnique(ValueMapping val,
DBIdentifier name,
boolean adapt) |
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 |
ValueMappingInfo.getUnique(ValueMapping val,
String name,
boolean adapt)
Deprecated.
|
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.
|
Unique[] |
ClassMappingInfo.getUniques(DBIdentifier table)
Get the unique constraints of the given primary or secondary table.
|
Unique[] |
ClassMappingInfo.getUniques(MetaDataContext cm,
boolean adapt)
Get all the unique constraints associated with both the primary and/or
secondary tables.
|
Unique[] |
ClassMappingInfo.getUniques(String table)
Deprecated.
|
Unique |
ValueMapping.getValueUnique()
Unique constraint on this value's columns, or null if none.
|
Unique |
ValueMappingImpl.getValueUnique() |
Unique |
FieldMapping.getValueUnique() |
Modifier and Type | Method and Description |
---|---|
void |
FieldMappingInfo.addJoinTableUnique(Unique u)
Add Unique Constraint to the Join Table.
|
void |
ClassMappingInfo.addUnique(DBIdentifier table,
Unique unique)
Add a unique constraint for the given table.
|
void |
ClassMappingInfo.addUnique(String table,
Unique unique)
Deprecated.
|
protected Unique |
MappingInfo.createUnique(MetaDataContext context,
String prefix,
Unique tmplate,
Column[] cols,
boolean adapt)
Retrieve/create a unique constraint on the given columns by merging the
given template information with any user-provided information.
|
void |
FieldMapping.setJoinTableUniques(Unique[] unqs) |
void |
FieldMapping.setJoinUnique(Unique unq)
Unique constraint on join foreign key columns.
|
void |
MappingInfo.setUnique(Unique unq)
Raw unique constraint information.
|
void |
ValueMapping.setValueUnique(Unique unq)
Unique constraint on this value's columns, or null if none.
|
void |
ValueMappingImpl.setValueUnique(Unique unq) |
void |
FieldMapping.setValueUnique(Unique unq) |
protected void |
FieldMappingInfo.syncJoinTableUniques(MetaDataContext context,
Unique[] unqs)
Sets internal constraint information to match given mapped constraint.
|
protected void |
MappingInfo.syncUnique(MetaDataContext context,
Unique unq)
Sets internal constraint information to match given mapped constraint.
|
Modifier and Type | Field and Description |
---|---|
static Unique[] |
Schemas.EMPTY_UNIQUES |
Unique |
XMLSchemaParser.UniqueInfo.unq |
Modifier and Type | Method and Description |
---|---|
Unique |
Table.addUnique(DBIdentifier name) |
Unique |
Table.addUnique(String name)
Deprecated.
|
Unique |
Table.getUnique(DBIdentifier name) |
Unique |
Table.getUnique(String name)
Deprecated.
|
Unique[] |
Table.getUniques()
Return the table's unique constraints.
|
Unique |
Table.importUnique(Unique unq)
Import a constraint; column names must match columns of this table.
|
protected Unique |
SchemaGroup.newUnique(DBIdentifier name,
Table table) |
protected Unique |
SchemaGroup.newUnique(String name,
Table table)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SchemaTool.createIndex(Index idx,
Table table,
Unique[] uniques) |
boolean |
Unique.equalsUnique(Unique unq)
Return true if the structure of this primary key matches that of
the given one (same table, same columns).
|
Unique |
Table.importUnique(Unique unq)
Import a constraint; column names must match columns of this table.
|
boolean |
Table.removeUnique(Unique unq)
Remove the given unique constraint from the table.
|
Modifier and Type | Method and Description |
---|---|
protected String |
DBDictionary.getUniqueConstraintSQL(Unique unq)
Return the declaration SQL for the given unique constraint.
|
boolean |
DBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
boolean |
SolidDBDictionary.needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.