forked from APIJSON/APIJSON-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemoObjectParser.java
More file actions
26 lines (19 loc) · 949 Bytes
/
DemoObjectParser.java
File metadata and controls
26 lines (19 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package apijson.demo;
import java.util.List;
import javax.servlet.http.HttpSession;
import com.alibaba.fastjson.JSONObject;
import apijson.NotNull;
import apijson.RequestMethod;
import apijson.framework.APIJSONObjectParser;
import apijson.orm.Join;
import apijson.orm.SQLConfig;
public class DemoObjectParser extends APIJSONObjectParser {
public DemoObjectParser(HttpSession session, @NotNull JSONObject request, String parentPath, SQLConfig arrayConfig
, boolean isSubquery, boolean isTable, boolean isArrayMainTable) throws Exception {
super(session, request, parentPath, arrayConfig, isSubquery, isTable, isArrayMainTable);
}
@Override
public SQLConfig newSQLConfig(RequestMethod method, String table, String alias, JSONObject request, List<Join> joinList, boolean isProcedure) throws Exception {
return DemoSQLConfig.newSQLConfig(method, table, alias, request, joinList, isProcedure);
}
}