Commits

tbrugz  committed ae20bb4

queryon: logging, tasks & cleanup

  • Participants
  • Parent commits 5de8f23

Comments (0)

Files changed (3)

File src/tbrugz/queryon/QueryOn.java

 		//query type (table, view, query), resultsetType? (not avaiable at this point), database type
 		LimitOffsetStrategy loStrategy = LimitOffsetStrategy.getDefaultStrategy(model.getSqlDialect());
 		if(loStrategy!=LimitOffsetStrategy.RESULTSET_CONTROL) {
-			log.info("pre-sql:\n"+sql.getSql());
+			log.debug("pre-sql:\n"+sql.getSql());
 		}
 		sql.addLimitOffset(loStrategy, reqspec);
 		

File src/tbrugz/queryon/RequestSpec.java

 		@SuppressWarnings("unchecked")
 		Map<String,String[]> params = req.getParameterMap();
 		
+		//XXX: filters: add filter 'not in', 'like'
 		for(String param: params.keySet()) {
 			if(param.startsWith("fe:")) { //XXX "feq"?
 				String col = param.substring(3);

File src/tbrugz/queryon/SQL.java

 		return;
 	}
 	
-	/*public void applyProjection(RequestSpec reqspec, Relation table) {
-		if(relation instanceof Query && reqspec.columns.size()>0) {
-			addProjection(createSQLColumns(reqspec, relation));
-		}
-		else {
-			String columns = createSQLColumns(reqspec, table);
-			if(sql.contains(PARAM_ORDER_CLAUSE)) {
-				sql = sql.replace(PARAM_PROJECTION_CLAUSE, columns);
-			}
-			else {
-				
-			}
-		}
-	}*/
-
 	public void applyProjection(RequestSpec reqspec, Relation table) {
 		String columns = createSQLColumns(reqspec, table);
 		if(sql.contains(PARAM_PROJECTION_CLAUSE)) {