|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(DBIdentifier name,
Table table)
|
|
Constraint(String name,
Table table)
Deprecated. |
Method Summary | |
---|---|
DBIdentifier |
getColumnIdentifier()
|
String |
getColumnName()
Deprecated. |
DBIdentifier |
getFullIdentifier()
|
String |
getFullName()
Deprecated. |
DBIdentifier |
getIdentifier()
|
String |
getName()
Deprecated. |
QualifiedDBIdentifier |
getQualifiedPath()
|
DBIdentifier |
getSchemaIdentifier()
|
String |
getSchemaName()
Deprecated. |
Table |
getTable()
Return the table of this constraint. |
DBIdentifier |
getTableIdentifier()
|
String |
getTableName()
Deprecated. |
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 |
setColumnIdentifier(DBIdentifier name)
|
void |
setColumnName(String name)
Deprecated. |
void |
setDeferred(boolean deferred)
Make this constrain deferred. |
void |
setIdentifier(DBIdentifier name)
|
void |
setName(String name)
Deprecated. |
void |
setSchemaIdentifier(DBIdentifier schema)
|
void |
setSchemaName(String schema)
Deprecated. |
void |
setTableIdentifier(DBIdentifier name)
|
void |
setTableName(String name)
Deprecated. |
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 constraintConstraint(DBIdentifier name, Table table)
Method Detail |
---|
void remove()
public Table getTable()
public String getTableName()
public DBIdentifier getTableIdentifier()
public void setTableName(String name)
public void setTableIdentifier(DBIdentifier name)
public String getSchemaName()
public DBIdentifier getSchemaIdentifier()
public void setSchemaName(String schema)
public void setSchemaIdentifier(DBIdentifier schema)
public String getColumnName()
public DBIdentifier getColumnIdentifier()
public void setColumnName(String name)
public void setColumnIdentifier(DBIdentifier name)
public String getName()
public DBIdentifier getIdentifier()
public void setName(String name)
public void setIdentifier(DBIdentifier name)
public String getFullName()
public QualifiedDBIdentifier getQualifiedPath()
public DBIdentifier getFullIdentifier()
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 |