Class ConstraintMetaData

    • Field Detail

      • name

        protected String name
        the constraint name
      • table

        protected String table
        the constraint table name. Name of the table to which this applies (null implies the enclosing class' table).
      • memberNames

        protected List<String> memberNames
        The member names for this constraint.
      • columnNames

        protected List<String> columnNames
        The column names for this constraint.
    • Constructor Detail

      • ConstraintMetaData

        public ConstraintMetaData()
        Default constructor. Set fields using setters before populate().
      • ConstraintMetaData

        public ConstraintMetaData​(ConstraintMetaData acmd)
        Copy constructor.
        acmd - Metadata to copy
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getTable

        public String getTable()
      • setTable

        public void setTable​(String table)
      • addMember

        public void addMember​(String memberName)
        Add a new member that is part of this constraint.
        memberName - member name for the field/property
      • getMemberNames

        public final String[] getMemberNames()
      • getNumberOfMembers

        public int getNumberOfMembers()
      • addColumn

        public void addColumn​(String columnName)
        Add a new column that is part of the constraint.
        columnName - Name for the column
      • getColumnNames

        public final String[] getColumnNames()
      • getNumberOfColumns

        public int getNumberOfColumns()