forked from Tencent/APIJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPIJSONCreator.java
More file actions
42 lines (34 loc) · 881 Bytes
/
Copy pathAPIJSONCreator.java
File metadata and controls
42 lines (34 loc) · 881 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package apijson.framework;
import apijson.orm.FunctionParser;
import apijson.orm.Parser;
import apijson.orm.ParserCreator;
import apijson.orm.SQLConfig;
import apijson.orm.SQLCreator;
import apijson.orm.SQLExecutor;
import apijson.orm.Verifier;
import apijson.orm.VerifierCreator;
/**APIJSON相关创建器
* @author Lemon
*/
public class APIJSONCreator implements ParserCreator<Long>, VerifierCreator<Long>, SQLCreator {
@Override
public Parser<Long> createParser() {
return new APIJSONParser();
}
@Override
public FunctionParser createFunctionParser() {
return new APIJSONFunctionParser();
}
@Override
public Verifier<Long> createVerifier() {
return new APIJSONVerifier();
}
@Override
public SQLConfig createSQLConfig() {
return new APIJSONSQLConfig();
}
@Override
public SQLExecutor createSQLExecutor() {
return new APIJSONSQLExecutor();
}
}