@Test public void shouldHaveCorrectConstraintType() throws Exception { assertThat( this.primaryKey.getConstraintType(), is( TableConstraint.ConstraintType.PRIMARY_KEY ) ); assertThat( this.primaryKey.getRawProperty( getTransaction(), TeiidDdlLexicon.Constraint.TYPE ).getStringValue( getTransaction() ), is( TableConstraint.ConstraintType.PRIMARY_KEY.toValue() ) ); }
@Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; }
PrimaryKeyImpl extends TableConstraintImpl implements PrimaryKey { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } }
PrimaryKeyImpl extends TableConstraintImpl implements PrimaryKey { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } PrimaryKeyImpl( final UnitOfWork uow,
                           final Repository repository,
                           final String workspacePath ); }
PrimaryKeyImpl extends TableConstraintImpl implements PrimaryKey { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } PrimaryKeyImpl( 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 ); }
PrimaryKeyImpl extends TableConstraintImpl implements PrimaryKey { @Override public ConstraintType getConstraintType() { return CONSTRAINT_TYPE; } PrimaryKeyImpl( 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 );  }