Package | Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ForeignKey
Represents a database foreign key; may be a logical key with no
database representation.
|
class |
Index
Represents a database index.
|
class |
LocalConstraint
Constraint over local table columns, as opposed to a foreign key which
spans tables.
|
class |
PrimaryKey
Represents a table primary key.
|
class |
Unique
Represents a unique constraint.
|
Modifier and Type | Method and Description |
---|---|
<T extends Constraint> |
Column.getConstraints(Class<T> type)
Gets all constrains of the given type attached to this column.
|
Modifier and Type | Method and Description |
---|---|
Set<Constraint> |
Column.getConstraints()
Gets all constrains attached this column.
|
Modifier and Type | Method and Description |
---|---|
void |
Column.addConstraint(Constraint c)
Adds the given constraint to this column.
|
void |
Column.removeConstraint(Constraint c)
Removes the given constraint from this column.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Column.hasConstraint(Class<? extends Constraint> type)
Affirms if this column has any constraint of given type.
|
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.