public Object getResultObject() throws SQLException { QueryResultMapping.PCResult[] pcs = _map.getPCResults(); Object[] cols = _map.getColumnResults(); // single object cases if (pcs.length == 0 && cols.length == 1) return _mres.getObject(cols[0], JavaSQLTypes.JDBC_DEFAULT, null); if (pcs.length == 1 && cols.length == 0) return _mres.load(pcs[0], _store, _fetch); // multiple objects Object[] ret = new Object[pcs.length + cols.length]; for (int i = 0; i < pcs.length; i++) ret[i] = _mres.load(pcs[i], _store, _fetch); for (int i = 0; i < cols.length; i++) ret[pcs.length + i] = _mres.getObject(cols[i], JavaSQLTypes.JDBC_DEFAULT, null); return ret; }
public Object getResultObject() throws SQLException { QueryResultMapping.PCResult[] pcs = _map.getPCResults(); Object[] cols = _map.getColumnResults(); // single object cases if (pcs.length == 0 && cols.length == 1) return _mres.getObject(cols[0], JavaSQLTypes.JDBC_DEFAULT, null); if (pcs.length == 1 && cols.length == 0) return _mres.load(pcs[0], _store, _fetch); // multiple objects Object[] ret = new Object[pcs.length + cols.length]; for (int i = 0; i < pcs.length; i++) ret[i] = _mres.load(pcs[i], _store, _fetch); for (int i = 0; i < cols.length; i++) ret[pcs.length + i] = _mres.getObject(cols[i], JavaSQLTypes.JDBC_DEFAULT, null); return ret; }
public Object getResultObject() throws SQLException { QueryResultMapping.PCResult[] pcs = _map.getPCResults(); Object[] cols = _map.getColumnResults(); // single object cases if (pcs.length == 0 && cols.length == 1) return _mres.getObject(cols[0], JavaSQLTypes.JDBC_DEFAULT, null); if (pcs.length == 1 && cols.length == 0) return _mres.load(pcs[0], _store, _fetch); // multiple objects Object[] ret = new Object[pcs.length + cols.length]; for (int i = 0; i < pcs.length; i++) ret[i] = _mres.load(pcs[i], _store, _fetch); for (int i = 0; i < cols.length; i++) ret[pcs.length + i] = _mres.getObject(cols[i], JavaSQLTypes.JDBC_DEFAULT, null); return ret; }
public Object getResultObject() throws SQLException { QueryResultMapping.PCResult[] pcs = _map.getPCResults(); Object[] cols = _map.getColumnResults(); // single object cases if (pcs.length == 0 && cols.length == 1) return _mres.getObject(cols[0], JavaSQLTypes.JDBC_DEFAULT, null); if (pcs.length == 1 && cols.length == 0) return _mres.load(pcs[0], _store, _fetch); // multiple objects Object[] ret = new Object[pcs.length + cols.length]; for (int i = 0; i < pcs.length; i++) ret[i] = _mres.load(pcs[i], _store, _fetch); for (int i = 0; i < cols.length; i++) ret[pcs.length + i] = _mres.getObject(cols[i], JavaSQLTypes.JDBC_DEFAULT, null); return ret; }
public Object getResultObject() throws SQLException { QueryResultMapping.PCResult[] pcs = _map.getPCResults(); Object[] cols = _map.getColumnResults(); // single object cases if (pcs.length == 0 && cols.length == 1) return _mres.getObject(cols[0], JavaSQLTypes.JDBC_DEFAULT, null); if (pcs.length == 1 && cols.length == 0) return _mres.load(pcs[0], _store, _fetch); // multiple objects Object[] ret = new Object[pcs.length + cols.length]; for (int i = 0; i < pcs.length; i++) ret[i] = _mres.load(pcs[i], _store, _fetch); for (int i = 0; i < cols.length; i++) ret[pcs.length + i] = _mres.getObject(cols[i], JavaSQLTypes.JDBC_DEFAULT, null); return ret; }
for (Object col : meta.getColumnResults()) { addAttribute("name", col.toString()); startElement("column-result");
for (Object col : meta.getColumnResults()) { addAttribute("name", col.toString()); startElement("column-result");
for (Object col : meta.getColumnResults()) { addAttribute("name", col.toString()); startElement("column-result");
for (Object col : meta.getColumnResults()) { addAttribute("name", col.toString()); startElement("column-result");
for (Object col : meta.getColumnResults()) { AnnotationBuilder abColRes = newAnnotationBuilder(ColumnResult.class);
for (Object col : meta.getColumnResults()) { AnnotationBuilder abColRes = newAnnotationBuilder(ColumnResult.class);
for (Object col : meta.getColumnResults()) { AnnotationBuilder abColRes = newAnnotationBuilder(ColumnResult.class);
for (Object col : meta.getColumnResults()) { AnnotationBuilder abColRes = newAnnotationBuilder(ColumnResult.class);