IndexImpl extends TableConstraintImpl implements Index { @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; } IndexImpl( final UnitOfWork uow,
                      final Repository repository,
                      final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override ConstraintType getConstraintType(); @Override String getExpression( final UnitOfWork uow ); @Override int getTypeId(); @Override Table getParent( final UnitOfWork transaction ); @Override void setExpression( final UnitOfWork uow,
                               final String newExpression );  }
@Test public void shouldHaveParentTableAfterConstruction() throws Exception { assertThat( this.index.getParent( getTransaction() ), is( instanceOf( Table.class ) ) ); assertThat( this.index.getTable( getTransaction() ), is( this.table ) ); }