コード例 #1
0
 /**
  * Private the constructor method
  *
  * @param token The key every developer owns,if you don't hava a unique token,please go to our
  *     website to apply for one.
  */
 private FexUtils(String token) {
   this.mToken = token;
   mService = Service.getInstance();
 }
コード例 #2
0
 /**
  * Execute the query SQL language,we will use the HttpClient you passed.If client is null,we will
  * use the default HttpClient.
  *
  * @param sql The sql you want to execute.
  * @param client HttpClient from org.apache.
  * @return A List with Map in it,each map represents a javaBean mapping in your database.
  * @throws InternetConnectionException
  */
 public List<Map<String, Object>> query(String sql, HttpClient client)
     throws InternetConnectionException {
   return mService.query(this.mToken, sql, client);
 }
コード例 #3
0
 /**
  * Execute the update SQL language,we will use the HttpClient you passed.If client is null,we will
  * use the default HttpClient.
  *
  * @param sql The sql you want to execute.
  * @param client HttpClient from org.apache.
  * @return A List with Map in it,each map represents a javaBean mapping in your database.
  * @throws InternetConnectionException
  */
 public Integer update(String sql, HttpClient client) throws InternetConnectionException {
   return mService.update(this.mToken, sql, client);
 }