Package com.intersys.gds.query

Examples of com.intersys.gds.query.Query


    * @param key key
    * @param pattern pattern argument
    */
  public  void startsWith(String key, String pattern) {
        System.out.println("StartsWith query. Key = " + key + " startsWith " + pattern);
        Query query = new StartsWith(key,pattern);
        executeQuery(query);
    }
View Full Code Here


    * @param from second query from parameter
    * @param to second query to parameter
    */
  public  void and(String key1, String pattern, String key2, int from, int to) {
        System.out.println("key1.startsWith(pattern) AND key2.between(from,to) query.");
        Query query = new And(new StartsWith(key1,pattern),new Between(key2,from,to));
        executeQuery(query);
    }
View Full Code Here

    * @param key2 key to be used in second sub-query
    * @param i2 GT query argument
     */
  public   void or(String key1, int i1, String key2, int i2) {
        System.out.println("(key1 < ?) OR (key2 > ?) query.");
        Query query = new Or(new LT(key1,i1),new GT(key2,i2));
        executeQuery(query);
    }
View Full Code Here

    * @param from from value
    * @param to to value
    */
  public  void between(String key, int from, int to) {
        System.out.println("Between query. Key = " + key +" between: " + from + " and " + to);
        Query query = new Between(key,from,to);
        query.limit(15);
        executeQuery(query);
    }
View Full Code Here

    * @param key key
    * @param value value
    */
  public  void equals(String key, Object value) {
        System.out.println("Equals query. Key = " + key + ", Value = " + value);
        Query query = new Equals(key,value);
        executeQuery(query);
    }
View Full Code Here

    * @param key key
    * @param pattern pattern
    */
  public  void patternMatch(String key, String pattern) {
        System.out.println("Pattern Match query. Matching: " + pattern);
        Query query = new PatternMatch(key,pattern);
        executeQuery(query);
    }
View Full Code Here

TOP

Related Classes of com.intersys.gds.query.Query

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.