private int getResultSet(JavaMethod pMethod, DirectAccessible pRs, DirectAccessible pElement,
Iterator pColumns, int pParamNum)
throws SAXException {
for (Iterator iter = pColumns; iter.hasNext(); ) {
Column col = (Column) iter.next();
CustomColumnData colData = (CustomColumnData) col.getCustomData();
Object sg = colData.getSG();
PropertySG propertySG;
TypeSG typeSG;
if (sg instanceof AttributeSG) {
AttributeSG attrSG = (AttributeSG) sg;
propertySG = attrSG.getPropertySG();
typeSG = attrSG.getTypeSG();
} else if (sg instanceof ParticleSG) {
ParticleSG particleSG = (ParticleSG) sg;
propertySG = particleSG.getPropertySG();
typeSG = particleSG.getObjectSG().getTypeSG();
} else {
throw new IllegalStateException("Invalid SG type for column " + col.getName() + ": " + sg);
}
Object value = getResultSetValue(pMethod, col, pRs, new Integer(++pParamNum), typeSG);
propertySG.setValue(pMethod, pElement, value, null);
}
return pParamNum;