@Test public void shouldFailConstructionIfNotVdbImport() { if ( RelationalObjectImpl.VALIDATE_INITIAL_STATE ) { try { new VdbImportImpl( getTransaction(), _repo, this.vdbImport.getParent( getTransaction() ).getAbsolutePath() ); fail(); } catch ( final KException e ) { } } }
@Override public Vdb 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 Vdb result = Vdb.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; }
VdbImportImpl extends RelationalChildRestrictedObject implements VdbImport { @Override public Vdb 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 Vdb result = Vdb.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } }
VdbImportImpl extends RelationalChildRestrictedObject implements VdbImport { @Override public Vdb 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 Vdb result = Vdb.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } VdbImportImpl( final UnitOfWork uow,
                          final Repository repository,
                          final String workspacePath ); }
VdbImportImpl extends RelationalChildRestrictedObject implements VdbImport { @Override public Vdb 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 Vdb result = Vdb.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } VdbImportImpl( final UnitOfWork uow,
                          final Repository repository,
                          final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override Vdb getParent( final UnitOfWork transaction ); @Override int getTypeId(); @Override int getVersion( final UnitOfWork uow ); @Override boolean isImportDataPolicies( final UnitOfWork uow ); @Override void setImportDataPolicies( final UnitOfWork uow,
                                       final boolean newImportDataPolicies ); @Override void setVersion( final UnitOfWork uow,
                            final int newVersion ); }
VdbImportImpl extends RelationalChildRestrictedObject implements VdbImport { @Override public Vdb 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 Vdb result = Vdb.RESOLVER.resolve( transaction, grouping.getParent( transaction ) ); return result; } VdbImportImpl( final UnitOfWork uow,
                          final Repository repository,
                          final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override Vdb getParent( final UnitOfWork transaction ); @Override int getTypeId(); @Override int getVersion( final UnitOfWork uow ); @Override boolean isImportDataPolicies( final UnitOfWork uow ); @Override void setImportDataPolicies( final UnitOfWork uow,
                                       final boolean newImportDataPolicies ); @Override void setVersion( final UnitOfWork uow,
                            final int newVersion );  }