|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.AbstractDBItem
de.fesenmeyer.dbnormalizer.core.Key
public abstract class Key
Abstract base class for keys of a table. The attributes the key consists of are represented as a list, not as a set, because the order of the attributes is not arbitrary for a key. For example, when defining a foreign key (FK), the order of the referenced table's PK attributes must be considered.
Field Summary | |
---|---|
private List<String> |
attributes
The attributes this key consists of. |
Constructor Summary | |
---|---|
Key()
Class Constructor. |
Method Summary | |
---|---|
List<String> |
getAttributes()
Gets the attributes this key consists of. |
void |
setAttributes(List<String> attributes)
Sets the attributes this key consists of. |
String |
toString()
Overridden method which returns an appropriate string representation of this key. |
Methods inherited from class de.fesenmeyer.dbnormalizer.core.AbstractDBItem |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private List<String> attributes
Constructor Detail |
---|
public Key()
Method Detail |
---|
public List<String> getAttributes()
public void setAttributes(List<String> attributes)
attributes
- the attributespublic String toString()
toString
in class AbstractDBItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |