EclipseLink 2.0.0, build 'v20091127-r5931' API Reference

org.eclipse.persistence.tools.schemaframework
Class UniqueKeyConstraint

java.lang.Object
  extended by 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
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

name

protected java.lang.String name

sourceFields

protected java.util.Vector<java.lang.String> sourceFields
Constructor Detail

UniqueKeyConstraint

public UniqueKeyConstraint()

UniqueKeyConstraint

public UniqueKeyConstraint(java.lang.String name,
                           java.lang.String sourceField)

UniqueKeyConstraint

public UniqueKeyConstraint(java.lang.String name,
                           java.lang.String[] sourceFields)
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:


EclipseLink 2.0.0, build 'v20091127-r5931' API Reference