Class UniqueKeyConstraint
- java.lang.Object
-
- org.eclipse.persistence.tools.schemaframework.UniqueKeyConstraint
-
- All Implemented Interfaces:
java.io.Serializable
public class UniqueKeyConstraint extends java.lang.Object implements java.io.Serializable
Purpose: Define a unique key constraint for a table.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected java.util.Vector<java.lang.String>
sourceFields
-
Constructor Summary
Constructors Constructor Description UniqueKeyConstraint()
UniqueKeyConstraint(java.lang.String name, java.lang.String sourceField)
UniqueKeyConstraint(java.lang.String name, java.lang.String[] sourceFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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:
-
-
-
Method Detail
-
addSourceField
public void addSourceField(java.lang.String sourceField)
PUBLIC:
-
appendDBString
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.
-
getName
public java.lang.String getName()
PUBLIC:
-
getSourceFields
public java.util.Vector<java.lang.String> getSourceFields()
PUBLIC:
-
setName
public void setName(java.lang.String name)
PUBLIC:
-
setSourceFields
public void setSourceFields(java.util.Vector<java.lang.String> sourceFields)
PUBLIC:
-
-