Package org.jzkit.search.util.QueryModel

Examples of org.jzkit.search.util.QueryModel.CQLString


  private static Log log = LogFactory.getLog(CQLQueryBuilder.class);
  private ApplicationContext ctx = null;

  public QueryModel build(InternalModelRootNode query) {
    boolean complex_support = false;
    return new CQLString( visitNode(query,null,null, complex_support) );
  }
View Full Code Here


  private String getCQLString(IRQuery q) throws InvalidQueryException {
    // Here we need to get an instance of CQLQuery.. So if thats not what we have been passed,
    // this is the place to create one.
    log.fine("Class of IRQuery: "+q.getQueryModel().getClass().getName());

    CQLString cql_string = null;
    QueryModel qm = q.getQueryModel();

    if ( qm instanceof CQLString )
      cql_string = (CQLString)qm;
    else
      cql_string = CQLBuilder.buildFrom(qm, ctx);

    String retval = cql_string.toString();
    log.fine("cql to use is : "+retval);

    // return "dc.title=science";
    return retval;
  }
View Full Code Here

  private String getCQLString(IRQuery q) throws InvalidQueryException {
    // Here we need to get an instance of CQLQuery.. So if thats not what we have been passed,
    // this is the place to create one.
    log.fine("Class of IRQuery: "+q.getQueryModel().getClass().getName());

    CQLString cql_string = null;
    QueryModel qm = q.getQueryModel();

    if ( qm instanceof CQLString )
      cql_string = (CQLString)qm;
    else
      cql_string = CQLBuilder.buildFrom(qm, ctx);

    String retval = cql_string.toString();
    log.fine("cql to use is : "+retval);

    // return "dc.title=science";
    return retval;
  }
View Full Code Here

TOP

Related Classes of org.jzkit.search.util.QueryModel.CQLString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.