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 TypeMethodDescriptionvoid
deref()
boolean
Deprecated.Deprecated.getName()
Deprecated.int
Deprecated.getTable()
Return the table of this constraint.Deprecated.int
hashCode()
boolean
Return true if this is a deferred constraint.abstract boolean
Return whether this constraint is a logical constraint only; i.e.void
ref()
void
void
setColumnName
(String name) Deprecated.void
setDeferred
(boolean deferred) Make this constrain deferred.void
setIdentifier
(DBIdentifier name) void
Deprecated.void
setSchemaIdentifier
(DBIdentifier schema) void
setSchemaName
(String schema) Deprecated.void
void
setTableName
(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()
-