Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/roller/business/persistence/QueryFactory.java


1   /*
2    * Created on Oct 18, 2003
3    */
4   package org.roller.business.persistence;
5   
6   
7   import java.util.List;
8   
9   
10  /**
11   * @author Dave Johnson
12   */
13  public interface QueryFactory
14  {
15      public Query createQuery(String className);
16  
17      public Condition createCondition(String fieldName, Operator operator);
18  
19      public Condition createCondition(
20          String fieldName,
21          Operator operator,
22          Object value);
23  
24      public Condition createCondition(
25          Condition cond1,
26          BooleanOperator operator,
27          Condition cond2);
28  
29      public Condition createCondition(
30          BooleanOperator operator,
31          List conditions);
32  }