@Test public void testSetQuery() { ScriptableDataFactory dataFactory = new ScriptableDataFactory(); dataFactory.setQuery( QUERY_NAME, QUERY_VALUE ); assertThat( dataFactory.getQuery( QUERY_NAME ), is( equalTo( QUERY_VALUE ) ) ); dataFactory.setQuery( QUERY_NAME, null ); assertThat( dataFactory.getQuery( QUERY_NAME ), is( nullValue() ) ); }
public void setQuery( final String name, final String value ) { if ( value == null ) { queries.remove( name ); } else { queries.put( name, value ); } }
ScriptableDataFactory extends AbstractDataFactory { public void setQuery( final String name, final String value ) { if ( value == null ) { queries.remove( name ); } else { queries.put( name, value ); } } }
ScriptableDataFactory extends AbstractDataFactory { public void setQuery( final String name, final String value ) { if ( value == null ) { queries.remove( name ); } else { queries.put( name, value ); } } ScriptableDataFactory(); }
ScriptableDataFactory extends AbstractDataFactory { public void setQuery( final String name, final String value ) { if ( value == null ) { queries.remove( name ); } else { queries.put( name, value ); } } 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 void setQuery( final String name, final String value ) { if ( value == null ) { queries.remove( name ); } else { queries.put( name, value ); } } 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();  }