@Test public void testClone() { SimpleSQLReportDataFactory result = factory.clone(); assertThat( result, is( not( sameInstance( factory ) ) ) ); assertThat( result.getConnectionProvider(), is( equalTo( factory.getConnectionProvider() ) ) ); }
public SimpleSQLReportDataFactory clone() { final SimpleSQLReportDataFactory dataFactory = (SimpleSQLReportDataFactory) super.clone(); dataFactory.connection = null; return dataFactory; }
SimpleSQLReportDataFactory extends AbstractDataFactory { public SimpleSQLReportDataFactory clone() { final SimpleSQLReportDataFactory dataFactory = (SimpleSQLReportDataFactory) super.clone(); dataFactory.connection = null; return dataFactory; } }
SimpleSQLReportDataFactory extends AbstractDataFactory { public SimpleSQLReportDataFactory clone() { final SimpleSQLReportDataFactory dataFactory = (SimpleSQLReportDataFactory) super.clone(); dataFactory.connection = null; return dataFactory; } SimpleSQLReportDataFactory();  SimpleSQLReportDataFactory( final Connection connection );  SimpleSQLReportDataFactory( final ConnectionProvider connectionProvider ); }
SimpleSQLReportDataFactory extends AbstractDataFactory { public SimpleSQLReportDataFactory clone() { final SimpleSQLReportDataFactory dataFactory = (SimpleSQLReportDataFactory) super.clone(); dataFactory.connection = null; return dataFactory; } SimpleSQLReportDataFactory();  SimpleSQLReportDataFactory( final Connection connection );  SimpleSQLReportDataFactory( final ConnectionProvider connectionProvider ); String getUserField(); void setUserField( final String userField ); String getPasswordField(); void setPasswordField( final String passwordField ); int getBestResultSetType( final DataRow dataRow ); synchronized TableModel queryData( final String query, final DataRow parameters ); String[] getReferencedFields( final String query, final DataRow parameters ); static boolean isExpandArrayParameterNeeded( final String query ); ResultSet performQuery( Statement statement, final String translatedQuery, final String[] preparedParameterNames ); void cancelRunningQuery(); synchronized void close(); SimpleSQLReportDataFactory clone(); void setConnectionProvider( final ConnectionProvider connectionProvider ); ConnectionProvider getConnectionProvider(); boolean isQueryExecutable( final String query, final DataRow parameters ); String[] getQueryNames(); ArrayList<Object> getQueryHash( final String queryName, final DataRow parameter ); }
SimpleSQLReportDataFactory extends AbstractDataFactory { public SimpleSQLReportDataFactory clone() { final SimpleSQLReportDataFactory dataFactory = (SimpleSQLReportDataFactory) super.clone(); dataFactory.connection = null; return dataFactory; } SimpleSQLReportDataFactory();  SimpleSQLReportDataFactory( final Connection connection );  SimpleSQLReportDataFactory( final ConnectionProvider connectionProvider ); String getUserField(); void setUserField( final String userField ); String getPasswordField(); void setPasswordField( final String passwordField ); int getBestResultSetType( final DataRow dataRow ); synchronized TableModel queryData( final String query, final DataRow parameters ); String[] getReferencedFields( final String query, final DataRow parameters ); static boolean isExpandArrayParameterNeeded( final String query ); ResultSet performQuery( Statement statement, final String translatedQuery, final String[] preparedParameterNames ); void cancelRunningQuery(); synchronized void close(); SimpleSQLReportDataFactory clone(); void setConnectionProvider( final ConnectionProvider connectionProvider ); ConnectionProvider getConnectionProvider(); boolean isQueryExecutable( final String query, final DataRow parameters ); String[] getQueryNames(); ArrayList<Object> getQueryHash( final String queryName, final DataRow parameter ); static Configuration globalConfig; }