Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 97 |  | Methods: | 11
| NCLOC: | 41 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
Condition.java | 50% | 100% | 100% | 95.8% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     /*
6 |  |
      * Created on 2004/03/01
7 |  |
      */
8 |  |
     package org.asyrinx.brownie.core.sql2;
9 |  |
10 |  |
     import org.asyrinx.brownie.core.sql.Operator;
11 |  |
12 |  |
     /**
13 |  |
      * @author akima
14 |  |
      */
15 |  |
     public class Condition {
16 |  |
17 |  |
         /**
18 |  |
          *
19 |  |
          */
20 | 26 |
         public Condition() {
21 | 26 |
             super();
22 |  |
         }
23 |  |
24 | 26 |
         public void accept(Visitor visitor) {
25 | 26 |
             visitor.visit(this);
26 |  |
         }
27 |  |
28 | 11 |
         public Operator getConnection() {
29 | 11 |
             return (getConditions() != null) ? getConditions().getConnection()
30 |  |
                     : Operator.NONE;
31 |  |
         }
32 |  |
33 |  |
         private Conditions conditions;
34 |  |
35 |  |
         private String fieldName;
36 |  |
37 |  |
         private Object value;
38 |  |
39 |  |
         private Operator operator;
40 |  |
41 |  |
         /**
42 |  |
          * @return
43 |  |
          */
44 | 50 |
         public String getFieldName() {
45 | 50 |
             return fieldName;
46 |  |
         }
47 |  |
48 |  |
         /**
49 |  |
          * @return
50 |  |
          */
51 | 75 |
         public Operator getOperator() {
52 | 75 |
             return operator;
53 |  |
         }
54 |  |
55 |  |
         /**
56 |  |
          * @return
57 |  |
          */
58 | 26 |
         public Object getValue() {
59 | 26 |
             return value;
60 |  |
         }
61 |  |
62 |  |
         /**
63 |  |
          * @param string
64 |  |
          */
65 | 26 |
         public void setFieldName(String string) {
66 | 26 |
             fieldName = string;
67 |  |
         }
68 |  |
69 |  |
         /**
70 |  |
          * @param operator
71 |  |
          */
72 | 26 |
         public void setOperator(Operator operator) {
73 | 26 |
             this.operator = operator;
74 |  |
         }
75 |  |
76 |  |
         /**
77 |  |
          * @param object
78 |  |
          */
79 | 26 |
         public void setValue(Object object) {
80 | 26 |
             value = object;
81 |  |
         }
82 |  |
83 |  |
         /**
84 |  |
          * @return
85 |  |
          */
86 | 22 |
         public Conditions getConditions() {
87 | 22 |
             return conditions;
88 |  |
         }
89 |  |
90 |  |
         /**
91 |  |
          * @param conditions
92 |  |
          */
93 | 26 |
         public void setConditions(Conditions conditions) {
94 | 26 |
             this.conditions = conditions;
95 |  |
         }
96 |  |
97 |  |
     }