// Parse limit
if ((node = limitNode.attributes.get("limit_paramid")) != null)
m_limitParameterId = Long.parseLong(node);
else {
assert(limitNode.children.size() == 1);
VoltXMLElement valueNode = limitNode.children.get(0);
String isParam = valueNode.attributes.get("isparam");
if ((isParam != null) && (isParam.equalsIgnoreCase("true"))) {
m_limitParameterId = Long.parseLong(valueNode.attributes.get("id"));
} else {
node = limitNode.attributes.get("limit");
assert(node != null);
m_limit = Long.parseLong(node);
}
}
}
if (offsetNode != null) {
// Parse offset
if ((node = offsetNode.attributes.get("offset_paramid")) != null)
m_offsetParameterId = Long.parseLong(node);
else {
if (offsetNode.children.size() == 1) {
VoltXMLElement valueNode = offsetNode.children.get(0);
String isParam = valueNode.attributes.get("isparam");
if ((isParam != null) && (isParam.equalsIgnoreCase("true"))) {
m_offsetParameterId = Long.parseLong(valueNode.attributes.get("id"));
} else {
node = offsetNode.attributes.get("offset");