result set

This commit is contained in:
jackdaw@loafle.com 2017-04-25 16:39:58 +09:00
parent 6c8cb4bd21
commit f8e722e4d5

View File

@ -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);
}
}
} }