@Test public void testClone() throws Exception { ScriptableDataFactory dataFactory = new ScriptableDataFactory(); dataFactory.setQuery( QUERY_NAME, QUERY_VALUE ); ScriptableDataFactory clonedFactory = dataFactory.clone(); assertThat( clonedFactory, is( notNullValue() ) ); assertThat( clonedFactory.getQuery( QUERY_NAME ), is( equalTo( QUERY_VALUE ) ) ); }
public ScriptableDataFactory clone() { final ScriptableDataFactory dataFactory = (ScriptableDataFactory) super.clone(); dataFactory.queries = (LinkedHashMap<String, String>) queries.clone(); dataFactory.interpreter = null; dataFactory.dataRowWrapper = null; return dataFactory; }
ScriptableDataFactory extends AbstractDataFactory { public ScriptableDataFactory clone() { final ScriptableDataFactory dataFactory = (ScriptableDataFactory) super.clone(); dataFactory.queries = (LinkedHashMap<String, String>) queries.clone(); dataFactory.interpreter = null; dataFactory.dataRowWrapper = null; return dataFactory; } }
ScriptableDataFactory extends AbstractDataFactory { public ScriptableDataFactory clone() { final ScriptableDataFactory dataFactory = (ScriptableDataFactory) super.clone(); dataFactory.queries = (LinkedHashMap<String, String>) queries.clone(); dataFactory.interpreter = null; dataFactory.dataRowWrapper = null; return dataFactory; } ScriptableDataFactory(); }
ScriptableDataFactory extends AbstractDataFactory { public ScriptableDataFactory clone() { final ScriptableDataFactory dataFactory = (ScriptableDataFactory) super.clone(); dataFactory.queries = (LinkedHashMap<String, String>) queries.clone(); dataFactory.interpreter = null; dataFactory.dataRowWrapper = null; return dataFactory; } 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 ScriptableDataFactory clone() { final ScriptableDataFactory dataFactory = (ScriptableDataFactory) super.clone(); dataFactory.queries = (LinkedHashMap<String, String>) queries.clone(); dataFactory.interpreter = null; dataFactory.dataRowWrapper = null; return dataFactory; } 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();  }