@Test public void shouldHaveParentModel() throws Exception { assertThat( this.view.getParent( getTransaction() ), is( instanceOf( Model.class ) ) ); assertThat( this.view.getParent( getTransaction() ), is( ( KomodoObject )this.model ) ); }
@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 parent = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, parent ); return result; }
ViewImpl extends TableImpl implements View { @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 parent = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, parent ); return result; } }
ViewImpl extends TableImpl implements View { @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 parent = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, parent ); return result; } ViewImpl( final UnitOfWork uow,
                     final Repository repository,
                     final String workspacePath ); }
ViewImpl extends TableImpl implements View { @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 parent = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, parent ); return result; } ViewImpl( final UnitOfWork uow,
                     final Repository repository,
                     final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override Model getParent( final UnitOfWork transaction ); @Override ForeignKey addForeignKey( final UnitOfWork uow,
                                     final String foreignKeyName,
                                     final Table referencedTable ); @Override UniqueConstraint addUniqueConstraint( final UnitOfWork transaction,
                                                 final String constraintName ); @Override void removeForeignKey( final UnitOfWork transaction,
                                  final String foreignKeyToRemove ); @Override void removeUniqueConstraint( final UnitOfWork transaction,
                                        final String constraintToRemove ); @Override PrimaryKey setPrimaryKey( final UnitOfWork transaction,
                                     final String newPrimaryKeyName ); }
ViewImpl extends TableImpl implements View { @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 parent = super.getParent( transaction ); final Model result = Model.RESOLVER.resolve( transaction, parent ); return result; } ViewImpl( final UnitOfWork uow,
                     final Repository repository,
                     final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override Model getParent( final UnitOfWork transaction ); @Override ForeignKey addForeignKey( final UnitOfWork uow,
                                     final String foreignKeyName,
                                     final Table referencedTable ); @Override UniqueConstraint addUniqueConstraint( final UnitOfWork transaction,
                                                 final String constraintName ); @Override void removeForeignKey( final UnitOfWork transaction,
                                  final String foreignKeyToRemove ); @Override void removeUniqueConstraint( final UnitOfWork transaction,
                                        final String constraintToRemove ); @Override PrimaryKey setPrimaryKey( final UnitOfWork transaction,
                                     final String newPrimaryKeyName );  }