Class 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  
    • 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:
      • 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: