public class UniqueKeyConstraint
extends java.lang.Object
implements java.io.Serializable
Purpose: Define a unique key constraint for a table.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.util.Vector<java.lang.String> |
sourceFields |
Constructor and Description |
---|
UniqueKeyConstraint() |
UniqueKeyConstraint(java.lang.String name,
java.lang.String sourceField) |
UniqueKeyConstraint(java.lang.String name,
java.lang.String[] sourceFields) |
Modifier and Type | Method and Description |
---|---|
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:
|
protected java.lang.String name
protected java.util.Vector<java.lang.String> sourceFields
public UniqueKeyConstraint()
public UniqueKeyConstraint(java.lang.String name, java.lang.String sourceField)
public UniqueKeyConstraint(java.lang.String name, java.lang.String[] sourceFields)
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)