@Test public void testIsQueryExecutable() { ScriptableDataFactory dataFactory = new ScriptableDataFactory(); boolean result = dataFactory.isQueryExecutable( QUERY_NAME, null ); assertThat( result, is( equalTo( false ) ) ); dataFactory.setQuery( QUERY_NAME, QUERY_VALUE ); result = dataFactory.isQueryExecutable( QUERY_NAME, null ); assertThat( result, is( equalTo( true ) ) ); }
public boolean isQueryExecutable( final String query, final DataRow parameters ) { return queries.containsKey( query ); }
ScriptableDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { return queries.containsKey( query ); } }
ScriptableDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { return queries.containsKey( query ); } ScriptableDataFactory(); }
ScriptableDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { return queries.containsKey( query ); } ScriptableDataFactory(); String getLanguage(); void setLanguage( final String language ); void setQuery( final String name, final String value ); String getScript(); void setScript( final String script ); String getShutdownScript(); void setShutdownScript( final String shutdownScript ); String getQuery( final String name ); String[] getQueryNames(); TableModel queryData( final String query, final DataRow parameters ); ScriptableDataFactory clone(); DataFactory derive(); void close(); boolean isQueryExecutable( final String query, final DataRow parameters ); void cancelRunningQuery(); }
ScriptableDataFactory extends AbstractDataFactory { public boolean isQueryExecutable( final String query, final DataRow parameters ) { return queries.containsKey( query ); } ScriptableDataFactory(); String getLanguage(); void setLanguage( final String language ); void setQuery( final String name, final String value ); String getScript(); void setScript( final String script ); String getShutdownScript(); void setShutdownScript( final String shutdownScript ); String getQuery( final String name ); String[] getQueryNames(); TableModel queryData( final String query, final DataRow parameters ); ScriptableDataFactory clone(); DataFactory derive(); void close(); boolean isQueryExecutable( final String query, final DataRow parameters ); void cancelRunningQuery();  }