|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.Export.Components.ExportUniqueKey
public class ExportUniqueKey
A class to hold the elements of a unique key. Elements are stored as a linked list of names of attributes which constitute the unique key. This class should only be used for SQL database generation as it does not contain full functionality.
Field Summary | |
---|---|
private java.util.LinkedList<java.lang.String> |
_elements
The attributes involved in the unique key |
Constructor Summary | |
---|---|
ExportUniqueKey()
Constructor. |
Method Summary | |
---|---|
void |
addElement(java.lang.String e)
Adds a new element to the unique key by adding the name of the attribute that is part of the unique key to the list of all elements which form the unique key. |
java.util.LinkedList |
getElements()
Getter method for the linked list of all names of attributes which form this unique key |
static java.lang.String |
getUniqueKeyString(ExportTable t)
Formats the unique key string for SQL exportation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.LinkedList<java.lang.String> _elements
Constructor Detail |
---|
public ExportUniqueKey()
Method Detail |
---|
public void addElement(java.lang.String e)
e
- The name of the element which forms a part of the unique keypublic java.util.LinkedList getElements()
public static java.lang.String getUniqueKeyString(ExportTable t)
t
- The table for which unique keys must be determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |