@Test public void shouldHaveParentModel() throws Exception { assertThat( this.source.getParent( getTransaction() ), is( instanceOf( Model.class ) ) ); }
@Override public Model 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 grouping = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; }
ModelSourceImpl extends RelationalChildRestrictedObject implements ModelSource { @Override public Model 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 grouping = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } }
ModelSourceImpl extends RelationalChildRestrictedObject implements ModelSource { @Override public Model 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 grouping = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } ModelSourceImpl( final UnitOfWork uow,
                            final Repository repository,
                            final String workspacePath ); }
ModelSourceImpl extends RelationalChildRestrictedObject implements ModelSource { @Override public Model 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 grouping = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } ModelSourceImpl( final UnitOfWork uow,
                            final Repository repository,
                            final String workspacePath ); @Override KomodoType getTypeIdentifier( UnitOfWork uow ); @Override String getJndiName( final UnitOfWork uow ); @Override Model getParent( final UnitOfWork transaction ); @Override String getTranslatorName( final UnitOfWork uow ); @Override int getTypeId(); @Override void setJndiName( final UnitOfWork uow,
                             final String newJndiName ); @Override void setTranslatorName( final UnitOfWork uow,
                                   final String newTranslatorName ); }
ModelSourceImpl extends RelationalChildRestrictedObject implements ModelSource { @Override public Model 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 grouping = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } ModelSourceImpl( final UnitOfWork uow,
                            final Repository repository,
                            final String workspacePath ); @Override KomodoType getTypeIdentifier( UnitOfWork uow ); @Override String getJndiName( final UnitOfWork uow ); @Override Model getParent( final UnitOfWork transaction ); @Override String getTranslatorName( final UnitOfWork uow ); @Override int getTypeId(); @Override void setJndiName( final UnitOfWork uow,
                             final String newJndiName ); @Override void setTranslatorName( final UnitOfWork uow,
                                   final String newTranslatorName );  }