Class UniqueKeyConstraint

java.lang.Object
org.eclipse.persistence.tools.schemaframework.UniqueKeyConstraint
All Implemented Interfaces:
Serializable

public class UniqueKeyConstraint extends Object implements Serializable

Purpose: Define a unique key constraint for a table.

See Also:
  • Field Details

  • Constructor Details

    • UniqueKeyConstraint

      public UniqueKeyConstraint()
    • UniqueKeyConstraint

      public UniqueKeyConstraint(String name, String sourceField)
    • UniqueKeyConstraint

      public UniqueKeyConstraint(String name, String[] sourceFields)
  • Method Details

    • addSourceField

      public void addSourceField(String sourceField)
      PUBLIC:
    • appendDBString

      public void appendDBString(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session)
      INTERNAL: Append the database field definition string to the table creation statement.
    • getName

      public String getName()
      PUBLIC:
    • getSourceFields

      public Vector<String> getSourceFields()
      PUBLIC:
    • setName

      public void setName(String name)
      PUBLIC:
    • setSourceFields

      public void setSourceFields(Vector<String> sourceFields)
      PUBLIC: