Class Constraint

    • Constructor Detail

      • Constraint

        public Constraint​(Table table,
                          java.lang.String name)
        Parameters:
        table - is the parent table
        name - of the constraint
    • Method Detail

      • getEntity

        public Table getEntity()
        Specified by:
        getEntity in interface Unit
        Returns:
        the table it belongs to
      • getText

        public java.lang.String getText()
        Returns:
        constraint definition text
      • setText

        public void setText​(java.lang.String text)
        Set the constraint definition text
        Parameters:
        text - definition
      • sameAs

        public boolean sameAs​(AbstractUnit unit,
                              boolean considerRenaming)
        A dedicated comparator with other unit.
        Overrides:
        sameAs in class AbstractUnit
        Parameters:
        unit - to compare with
        Returns:
        true if is the same
      • getRdbms

        public java.lang.String getRdbms()
        Specified by:
        getRdbms in interface DbUnit