Uses of Class
org.apache.openjpa.jdbc.schema.Constraint
-
Packages that use Constraint Package Description org.apache.openjpa.jdbc.schema OpenJPA-JDBC Schema Management -
-
Uses of Constraint in org.apache.openjpa.jdbc.schema
Subclasses of Constraint in org.apache.openjpa.jdbc.schema Modifier and Type Class 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.Methods in org.apache.openjpa.jdbc.schema with type parameters of type Constraint Modifier and Type Method Description <T extends Constraint>
java.util.Set<T>Column. getConstraints(java.lang.Class<T> type)
Gets all constrains of the given type attached to this column.Methods in org.apache.openjpa.jdbc.schema that return types with arguments of type Constraint Modifier and Type Method Description java.util.Set<Constraint>
Column. getConstraints()
Gets all constrains attached this column.Methods in org.apache.openjpa.jdbc.schema with parameters of type Constraint Modifier and Type Method 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.Method parameters in org.apache.openjpa.jdbc.schema with type arguments of type Constraint Modifier and Type Method Description boolean
Column. hasConstraint(java.lang.Class<? extends Constraint> type)
Affirms if this column has any constraint of given type.
-