this.commandType = ctype ;
}
public JSONObject execute() throws SQLException{
if (commandType == IQueryable.QUERY_COMMAND){
Rows rows = query.execQuery() ;
return (JSONObject) rows.toHandle(new JSONHandler());
} else {
int rowcount = query.execUpdate() ;
JSONObject body = new JSONObject() ;
body.put("ROWCOUNT", rowcount) ;