StoredProcedureImpl extends AbstractProcedureImpl implements StoredProcedure { @Override public boolean isNonPrepared( final UnitOfWork transaction ) throws KException { final String option = OptionContainerUtils.getOption( transaction, this, StandardOption.NON_PREPARED.getName() ); if ( option == null ) { return DEFAULT_NON_PREPARED; } return Boolean.parseBoolean( option ); } StoredProcedureImpl( final UnitOfWork uow,
                                final Repository repository,
                                final String workspacePath ); @Override KomodoType[] getChildTypes(); @Override String getNativeQuery( final UnitOfWork transaction ); @Override ProcedureResultSet getResultSet( final UnitOfWork transaction ); @Override Map< String, String > getStandardOptions(); @Override KomodoType getTypeIdentifier( final UnitOfWork transaction ); @Override Model getParent( final UnitOfWork transaction ); @Override boolean isNonPrepared( final UnitOfWork transaction ); @Override boolean isStandardOption( final String name ); @Override void removeResultSet( final UnitOfWork transaction ); @Override void setNativeQuery( final UnitOfWork transaction,
                                final String newNativeQuery ); @Override void setNonPrepared( final UnitOfWork transaction,
                                final boolean newNonPrepared ); @SuppressWarnings( "unchecked" ) @Override T setResultSet( final UnitOfWork transaction,
                                                            final Class< T > resultSetType );  }
@Test public void shouldHaveDefaultNonPreparedAfterConstruction() throws Exception { assertThat( this.procedure.isNonPrepared( getTransaction() ), is( StoredProcedure.DEFAULT_NON_PREPARED ) ); }