new DataSourceFragment("<remoteDatasourceName>") { protected void fragment(Connection conn) throws Exception { Statement stmt = conn.createStatement(); ... }}.execute();
7172737475767778798081
public SQLStatement createSQLStatament() throws Exception { return new SQLStatement(sqlQuery); } public void load() throws Exception { new DataSourceFragment(dataSource) { protected void fragment(Connection connection) throws Exception { // Execute the query. PreparedStatement stmt = null; ResultSet rs = null; try {