container/profiles/src/main/java/org/mobicents/slee/container/deployment/profile/jpa/JPAQueryBuilder.java
public static QueryWrapper parseDynamicQuery(QueryExpression query)
  {
    ArrayList<Object> params = new ArrayList<Object>();

    long s = System.currentTimeMillis();
    String sqlQuery = "SELECT * " + parseDynamicQuery( query, 0, null, params );
    logger.info("Query :: SQL[" + sqlQuery + "]");
    long e = System.currentTimeMillis();
    logger.info("Query :: Parsed in " + (e-s) + "ms.");

    return new QueryWrapper( sqlQuery, params );
  }
public static QueryWrapper parseDynamicQuery(QueryExpression query)
  {
    ArrayList<Object> params = new ArrayList<Object>();

    long s = System.currentTimeMillis();
    String sqlQuery = "SELECT * " + parseDynamicQuery( query, 0, null, params );
    logger.info("Query :: SQL[" + sqlQuery + "]");
    long e = System.currentTimeMillis();
    logger.info("Query :: Parsed in " + (e-s) + "ms.");

    return new QueryWrapper( sqlQuery, params );
  }
public static QueryWrapper parseDynamicQuery ( QueryExpression query ) { ArrayList < Object > params = new ArrayList < Object > ( ) ; long s = System . currentTimeMillis ( ) ; String sqlQuery = "SELECT * " + parseDynamicQuery ( query , 0 , null , params ) ; logger . info ( "Query :: SQL[" + sqlQuery + "]" ) ; long e = System . currentTimeMillis ( ) ; logger . info ( "Query :: Parsed in " + ( e - s ) + "ms." ) ; return new QueryWrapper ( sqlQuery , params ) ; }
#####################
#####################