|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.tif.jacob.core.definition.KeyType
public final class KeyType
This class declares the different types of table keys and their common characteristics, e.g. unique or not, etc.
IKey.getType()| Field Summary | |
|---|---|
static KeyType |
FOREIGN
The key type for foreign keys. |
static KeyType |
INDEX
The key type for non-unique indices. |
static KeyType |
PRIMARY
The key type for primary keys. |
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
static KeyType |
UNIQUE
The key type for unique indices. |
| Method Summary | |
|---|---|
java.lang.String |
getPrefix()
Returns the prefix of this key type. |
boolean |
isIndex()
Checks whether this key type is an index. |
boolean |
isUnique()
Checks whether this key type is an unique constraint. |
java.lang.String |
toString()
Returns a string representation of this key type, which is easy for a person to read. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.lang.String RCS_ID
public static final transient java.lang.String RCS_REV
public static final KeyType PRIMARY
public static final KeyType FOREIGN
public static final KeyType UNIQUE
Note that indices are abstracted as keys as well.
public static final KeyType INDEX
Note that indices are abstracted as keys as well.
| Method Detail |
|---|
public java.lang.String getPrefix()
public boolean isIndex()
true if this key type is an index, otherwise
falsepublic boolean isUnique()
true if this key type is an unique constraint,
otherwise falsepublic java.lang.String toString()
toString in class java.lang.Object
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||