@Test public void shouldHaveCorrectConstraintType() throws Exception { assertThat( this.uniqueConstraint.getConstraintType(), is( TableConstraint.ConstraintType.UNIQUE ) ); assertThat( this.uniqueConstraint.getRawProperty( getTransaction(), TeiidDdlLexicon.Constraint.TYPE ).getStringValue( getTransaction() ), is( TableConstraint.ConstraintType.UNIQUE.toValue() ) ); }
@Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } UniqueConstraintImpl( final UnitOfWork uow,
                                 final Repository repository,
                                 final String workspacePath ); }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } UniqueConstraintImpl( final UnitOfWork uow,
                                 final Repository repository,
                                 final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override ConstraintType getConstraintType(); @Override int getTypeId(); @Override Table getParent( final UnitOfWork transaction ); }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } UniqueConstraintImpl( final UnitOfWork uow,
                                 final Repository repository,
                                 final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override ConstraintType getConstraintType(); @Override int getTypeId(); @Override Table getParent( final UnitOfWork transaction );  }