@@ -88,17 +88,25 @@ public JSONRequest setFormat(Boolean format) {
8888 public static final int QUERY_TOTAL = 1 ;
8989 public static final int QUERY_ALL = 2 ;
9090
91+ public static final String SUBQUERY_RANGE_ALL = "ALL" ;
92+ public static final String SUBQUERY_RANGE_ANY = "ANY" ;
93+
9194 public static final String KEY_QUERY = "query" ;
9295 public static final String KEY_COUNT = "count" ;
9396 public static final String KEY_PAGE = "page" ;
9497 public static final String KEY_JOIN = "join" ;
98+ public static final String KEY_SUBQUERY_RANGE = "range" ;
99+ public static final String KEY_SUBQUERY_FROM = "from" ;
95100
96101 public static final List <String > ARRAY_KEY_LIST ;
97102 static {
98103 ARRAY_KEY_LIST = new ArrayList <String >();
99104 ARRAY_KEY_LIST .add (KEY_QUERY );
100105 ARRAY_KEY_LIST .add (KEY_COUNT );
101106 ARRAY_KEY_LIST .add (KEY_PAGE );
107+ ARRAY_KEY_LIST .add (KEY_JOIN );
108+ ARRAY_KEY_LIST .add (KEY_SUBQUERY_RANGE );
109+ ARRAY_KEY_LIST .add (KEY_SUBQUERY_FROM );
102110 }
103111
104112 /**set what to query in Array layer
@@ -125,6 +133,33 @@ public JSONRequest setCount(int count) {
125133 public JSONRequest setPage (int page ) {
126134 return puts (KEY_PAGE , page );
127135 }
136+
137+ /**set joins of Main Table and it's Vice Tables in Array layer
138+ * @param joins "@/User/id@", "&/User/id@,>/Comment/momentId@" ...
139+ * @return
140+ */
141+ public JSONRequest setJoin (String ... joins ) {
142+ return puts (KEY_JOIN , StringUtil .getString (joins ));
143+ }
144+
145+ /**set range for Subquery
146+ * @param range
147+ * @return
148+ * @see {@link #SUBQUERY_RANGE_ALL}
149+ * @see {@link #SUBQUERY_RANGE_ANY}
150+ */
151+ public JSONRequest setSubqueryRange (String range ) {
152+ return puts (KEY_SUBQUERY_RANGE , range );
153+ }
154+
155+ /**set from for Subquery
156+ * @param range
157+ * @return
158+ */
159+ public JSONRequest setSubqueryFrom (String from ) {
160+ return puts (KEY_SUBQUERY_FROM , from );
161+ }
162+
128163 //array object >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
129164
130165
0 commit comments