Package org.apache.openjpa.jdbc.schema
Class Constraint
java.lang.Object
org.apache.openjpa.jdbc.schema.Constraint
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ForeignKey,LocalConstraint
A table constraint. This class is closely aligned with the constraint
information available from
DatabaseMetaData.- Author:
- Abe White
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidderef()booleanDeprecated.Deprecated.getName()Deprecated.intDeprecated.getTable()Return the table of this constraint.Deprecated.inthashCode()booleanReturn true if this is a deferred constraint.abstract booleanReturn whether this constraint is a logical constraint only; i.e.voidref()voidvoidsetColumnName(String name) Deprecated.voidsetDeferred(boolean deferred) Make this constrain deferred.voidsetIdentifier(DBIdentifier name) voidDeprecated.voidsetSchemaIdentifier(DBIdentifier schema) voidsetSchemaName(String schema) Deprecated.voidvoidsetTableName(String name) Deprecated.toString()
-
Method Details
-
getTable
Return the table of this constraint. -
getTableName
Deprecated.Return the column's table name. -
getTableIdentifier
-
setTableName
Deprecated.Set the column's table name. You can only call this method on columns whose table object is not set. -
setTableIdentifier
-
getSchemaName
Deprecated.Return the column table's schema name. -
getSchemaIdentifier
-
setSchemaName
Deprecated.Set the column table's schema name. You can only call this method on columns whose table object is not set. -
setSchemaIdentifier
-
getColumnName
Deprecated.Return the column's name. -
getColumnIdentifier
-
setColumnName
Deprecated.Set the column's name. You can only call this method on columns whose table object is not set. -
setColumnIdentifier
-
getName
Deprecated.Return the name of the constraint. -
getIdentifier
-
setName
Deprecated.Set the name of the constraint. This method cannot be called if the constraint already belongs to a table. -
setIdentifier
-
getFullName
Deprecated.Return the full name of the constraint. -
getQualifiedPath
-
getFullIdentifier
-
isLogical
public abstract boolean isLogical()Return whether this constraint is a logical constraint only; i.e. if it does not exist in the database. -
isDeferred
public boolean isDeferred()Return true if this is a deferred constraint. -
setDeferred
public void setDeferred(boolean deferred) Make this constrain deferred. -
toString
-
equals
-
hashCode
public int hashCode() -
getRefCount
public int getRefCount() -
ref
public void ref() -
deref
public void deref()
-