@Test public void shouldHaveParentTableAfterConstruction() throws Exception { assertThat( this.uniqueConstraint.getParent( getTransaction() ), is( instanceOf( Table.class ) ) ); assertThat( this.uniqueConstraint.getTable( getTransaction() ), is( this.table ) ); }
@Override public Table getParent( final UnitOfWork transaction ) throws KException { ArgCheck.isNotNull( transaction, "transaction" ); ArgCheck.isTrue( ( transaction.getState() == State.NOT_STARTED ), "transaction state must be NOT_STARTED" ); final KomodoObject parent = super.getParent( transaction ); final Table result = Table.RESOLVER.resolve( transaction, parent ); return result; }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public Table getParent( final UnitOfWork transaction ) throws KException { ArgCheck.isNotNull( transaction, "transaction" ); ArgCheck.isTrue( ( transaction.getState() == State.NOT_STARTED ), "transaction state must be NOT_STARTED" ); final KomodoObject parent = super.getParent( transaction ); final Table result = Table.RESOLVER.resolve( transaction, parent ); return result; } }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public Table getParent( final UnitOfWork transaction ) throws KException { ArgCheck.isNotNull( transaction, "transaction" ); ArgCheck.isTrue( ( transaction.getState() == State.NOT_STARTED ), "transaction state must be NOT_STARTED" ); final KomodoObject parent = super.getParent( transaction ); final Table result = Table.RESOLVER.resolve( transaction, parent ); return result; } UniqueConstraintImpl( final UnitOfWork uow,
                                 final Repository repository,
                                 final String workspacePath ); }
UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public Table getParent( final UnitOfWork transaction ) throws KException { ArgCheck.isNotNull( transaction, "transaction" ); ArgCheck.isTrue( ( transaction.getState() == State.NOT_STARTED ), "transaction state must be NOT_STARTED" ); final KomodoObject parent = super.getParent( transaction ); final Table result = Table.RESOLVER.resolve( transaction, parent ); return result; } 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 Table getParent( final UnitOfWork transaction ) throws KException { ArgCheck.isNotNull( transaction, "transaction" ); ArgCheck.isTrue( ( transaction.getState() == State.NOT_STARTED ), "transaction state must be NOT_STARTED" ); final KomodoObject parent = super.getParent( transaction ); final Table result = Table.RESOLVER.resolve( transaction, parent ); return result; } 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 );  }