|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.tools.schemaframework.UniqueKeyConstraint
public class UniqueKeyConstraint
Purpose: Define a unique key constraint for a table.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.util.Vector<java.lang.String> |
sourceFields
|
Constructor Summary | |
---|---|
UniqueKeyConstraint()
|
|
UniqueKeyConstraint(java.lang.String name,
java.lang.String sourceField)
|
|
UniqueKeyConstraint(java.lang.String name,
java.lang.String[] sourceFields)
|
Method Summary | |
---|---|
void |
addSourceField(java.lang.String sourceField)
PUBLIC: |
void |
appendDBString(java.io.Writer writer,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Append the database field definition string to the table creation statement. |
java.lang.String |
getName()
PUBLIC: |
java.util.Vector<java.lang.String> |
getSourceFields()
PUBLIC: |
void |
setName(java.lang.String name)
PUBLIC: |
void |
setSourceFields(java.util.Vector<java.lang.String> sourceFields)
PUBLIC: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected java.util.Vector<java.lang.String> sourceFields
Constructor Detail |
---|
public UniqueKeyConstraint()
public UniqueKeyConstraint(java.lang.String name, java.lang.String sourceField)
public UniqueKeyConstraint(java.lang.String name, java.lang.String[] sourceFields)
Method Detail |
---|
public void addSourceField(java.lang.String sourceField)
public void appendDBString(java.io.Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session)
public java.lang.String getName()
public java.util.Vector<java.lang.String> getSourceFields()
public void setName(java.lang.String name)
public void setSourceFields(java.util.Vector<java.lang.String> sourceFields)
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |