KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > entity > condition > EntityConditionVisitor


1 /*
2  * $Id: EntityConditionVisitor.java 5462 2005-08-05 18:35:48Z jonesde $
3  *
4  * <p>Copyright (c) 2001 The Open For Business Project - www.ofbiz.org
5  *
6  * <p>Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * <p>The above copyright notice and this permission notice shall be included
14  * in all copies or substantial portions of the Software.
15  *
16  * <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
21  * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */

24
25 package org.ofbiz.entity.condition;
26
27 import java.util.List JavaDoc;
28
29 /**
30  * Represents the conditions to be used to constrain a query
31  * <br/>An EntityCondition can represent various type of constraints, including:
32  * <ul>
33  * <li>EntityConditionList: a list of EntityConditions, combined with the operator specified
34  * <li>EntityExpr: for simple expressions or expressions that combine EntityConditions
35  * <li>EntityFieldMap: a map of fields where the field (key) equals the value, combined with the operator specified
36  * </ul>
37  * These can be used in various combinations using the EntityConditionList and EntityExpr objects.
38  *
39  * @author <a HREF="mailto:jonesde@ofbiz.org">David E. Jones</a>
40  * @version $Rev: 5462 $
41  * @since 2.0
42  */

43 public interface EntityConditionVisitor {
44     void visit(Object JavaDoc obj);
45     void accept(Object JavaDoc obj);
46     void acceptObject(Object JavaDoc obj);
47     void acceptEntityCondition(EntityCondition condition);
48     void acceptEntityJoinOperator(EntityJoinOperator op, List JavaDoc conditions);
49     void acceptEntityOperator(EntityOperator op, Object JavaDoc lhs, Object JavaDoc rhs);
50     void acceptEntityComparisonOperator(EntityComparisonOperator op, Object JavaDoc lhs, Object JavaDoc rhs);
51     void acceptEntityConditionValue(EntityConditionValue value);
52     void acceptEntityFieldValue(EntityFieldValue value);
53
54     void acceptEntityExpr(EntityExpr expr);
55     void acceptEntityConditionList(EntityConditionList list);
56     void acceptEntityFieldMap(EntityFieldMap fieldMap);
57     void acceptEntityConditionFunction(EntityConditionFunction func, EntityCondition nested);
58     void acceptEntityFunction(EntityFunction func);
59     void acceptEntityWhereString(EntityWhereString condition);
60
61     void acceptEntityDateFilterCondition(EntityDateFilterCondition condition);
62 }
63
Popular Tags