@Test public void testTranslateQuery() { assertThat( factory.translateQuery( QUERY ), is( equalTo( QUERY ) ) ); }
protected String translateQuery( final String query ) { return query; }
SimpleSQLReportDataFactory extends AbstractDataFactory { protected String translateQuery( final String query ) { return query; } }
SimpleSQLReportDataFactory extends AbstractDataFactory { protected String translateQuery( final String query ) { return query; } SimpleSQLReportDataFactory();  SimpleSQLReportDataFactory( final Connection connection );  SimpleSQLReportDataFactory( final ConnectionProvider connectionProvider ); }
SimpleSQLReportDataFactory extends AbstractDataFactory { protected String translateQuery( final String query ) { return query; } 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 { protected String translateQuery( final String query ) { return query; } 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; }