PreparedStatement st = null;
ResultSet rs = null;
try {
st = dbEnvironment.createStatementWithBoundFixtureSymbols(query);
rs = st.executeQuery();
DataTable dt = new DataTable(rs);
int rowSize = dt.getRowSize();
if (rowSize == 0) {
throw new RuntimeException("can't retrieve any data by query:" + query);
} else if (rowSize > 1) {
throw new RuntimeException("allowing one row data retrieved by query:" + query);
}
int colSize = dt.getColSize();
if (colSize == 0) {
throw new RuntimeException("can't retrieve any column by query:" + query);
} else if (colSize > 1) {
throw new RuntimeException("allowing one column data retrieved by query:" + query);
}
DataRow row = dt.getUnprocessedRows().get(0);
List<String> values = row.getStringValues();
org.jtester.fit.util.SymbolUtil.setSymbol(symbolName, values.get(0));
} catch (Exception sqle) {
throw new Error(sqle);
} finally {