|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.schema.ReferenceCounter
org.apache.openjpa.jdbc.schema.Constraint
public abstract class Constraint
A table constraint. This class is closely aligned with the constraint
information available from DatabaseMetaData
.
Constructor Summary | |
---|---|
Constraint()
Default constructor. |
|
Constraint(String name,
Table table)
Constructor. |
Method Summary | |
---|---|
String |
getColumnName()
Return the column's name. |
String |
getFullName()
Return the full name of the constraint. |
String |
getName()
Return the name of the constraint. |
String |
getSchemaName()
Return the column table's schema name. |
Table |
getTable()
Return the table of this constraint. |
String |
getTableName()
Return the column's table name. |
boolean |
isDeferred()
Return true if this is a deferred constraint. |
abstract boolean |
isLogical()
Return whether this constraint is a logical constraint only; i.e. |
(package private) void |
remove()
Called when the constraint is removed from the owning table. |
void |
setColumnName(String name)
Set the column's name. |
void |
setDeferred(boolean deferred)
Make this constrain deferred. |
void |
setName(String name)
Set the name of the constraint. |
void |
setSchemaName(String schema)
Set the column table's schema name. |
void |
setTableName(String name)
Set the column's table name. |
String |
toString()
|
Methods inherited from class org.apache.openjpa.jdbc.schema.ReferenceCounter |
---|
deref, getRefCount, ref |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
Constraint()
Constraint(String name, Table table)
name
- the name of the constraint, or null if nonetable
- the local table of the constraintMethod Detail |
---|
void remove()
public Table getTable()
public String getTableName()
public void setTableName(String name)
public String getSchemaName()
public void setSchemaName(String schema)
public String getColumnName()
public void setColumnName(String name)
public String getName()
public void setName(String name)
public String getFullName()
public abstract boolean isLogical()
public boolean isDeferred()
public void setDeferred(boolean deferred)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |