while (stmts.hasNext()) {
try {
int limit = Integer.parseInt(stmts.nextStatement().getString());
database.setResultSizeLimit(limit);
} catch (NumberFormatException ex) {
throw new D2RQException("Value of d2rq:resultSizeLimit must be numeric", D2RQException.MUST_BE_NUMERIC);
}
}
stmts = r.listProperties(D2RQ.textColumn);
while (stmts.hasNext()) {
database.addTextColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.numericColumn);
while (stmts.hasNext()) {
database.addNumericColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.booleanColumn);
while (stmts.hasNext()) {
database.addBooleanColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.dateColumn);
while (stmts.hasNext()) {
database.addDateColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.timestampColumn);
while (stmts.hasNext()) {
database.addTimestampColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.timeColumn);
while (stmts.hasNext()) {
database.addTimeColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.binaryColumn);
while (stmts.hasNext()) {
database.addBinaryColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.bitColumn);
while (stmts.hasNext()) {
database.addBitColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.intervalColumn);
while (stmts.hasNext()) {
database.addIntervalColumn(stmts.nextStatement().getString());
}
stmts = r.listProperties(D2RQ.fetchSize);
while (stmts.hasNext()) {
try {
int fetchSize = Integer.parseInt(stmts.nextStatement().getString());
database.setFetchSize(fetchSize);
} catch (NumberFormatException ex) {
throw new D2RQException("Value of d2rq:fetchSize must be numeric", D2RQException.MUST_BE_NUMERIC);
}
}
stmts = r.listProperties(D2RQ.startupSQLScript);
while (stmts.hasNext()) {
database.setStartupSQLScript(stmts.next().getResource());