result set
This commit is contained in:
parent
6c8cb4bd21
commit
f8e722e4d5
|
@ -62,5 +62,13 @@ public abstract class OFResultSet {
|
||||||
|
|
||||||
public abstract Map<String, String> parse();
|
public abstract Map<String, String> parse();
|
||||||
|
|
||||||
|
public OFResultSet newInstance(Item item) {
|
||||||
|
String type = (String) item.getQuery().getQueryInfo().get("parseDirection");
|
||||||
|
if (type.equals("row")) {
|
||||||
|
return new OFResultSetRow(item);
|
||||||
|
} else {
|
||||||
|
return new OFResultSetCol(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user