builder.addPropertyValue("target", element.getAttribute("target"));
}
protected Object parseStatementFactory(Element element)
{
QueryStatementFactory defaultStatementFactory = new QueryStatementFactory();
if (element.hasAttribute(MAX_ROWS_ATTRIBUTE))
{
defaultStatementFactory.setMaxRows(Integer.parseInt(element.getAttribute(MAX_ROWS_ATTRIBUTE)));
}
if (element.hasAttribute(FETCH_SIZE))
{
defaultStatementFactory.setFetchSize(Integer.parseInt(element.getAttribute(FETCH_SIZE)));
}
else if (streaming)
{
logger.warn("Streaming mode needs to configure fetchSize property. Using default value: " + DEFAULT_FETCH_SIZE);
defaultStatementFactory.setFetchSize(DEFAULT_FETCH_SIZE);
}
return defaultStatementFactory;
}