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: | 91 |  | Methods: | 10
| NCLOC: | 40 |  | 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
Select.java | - | 90.9% | 90% | 90.5% |

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 |  |
     /**
11 |  |
      * @author akima
12 |  |
      */
13 |  |
     public class Select {
14 |  |
15 | 6 |
         public void accept(Visitor visitor) {
16 | 6 |
             visitor.visit(this);
17 |  |
         }
18 |  |
19 |  |
         /**
20 |  |
          * @see org.asyrinx.brownie.core.sql2.SqlBuilder#toSql(org.asyrinx.brownie.core.sql2.Select)
21 |  |
          */
22 | 6 |
         public String toSql() {
23 | 6 |
             final SqlBuilder builder = new BasicSqlBuilder();
24 | 6 |
             return builder.toSql(this);
25 |  |
         }
26 |  |
27 |  |
         private final Fields selectFields = new Fields();
28 |  |
29 |  |
         private final Tables fromTables = new Tables();
30 |  |
31 |  |
         private final Conditions whereConditions = new Conditions();
32 |  |
33 |  |
         private final Fields groupByFields = new Fields();
34 |  |
35 |  |
         private final Conditions havingConditions = new Conditions();
36 |  |
37 |  |
         private final Fields orderByFields = new Fields();
38 |  |
39 |  |
         private boolean distinct = false;
40 |  |
41 | 5 |
         public boolean isDistinct() {
42 | 5 |
             return distinct;
43 |  |
         }
44 |  |
45 | 0 |
         public void setDistinct(boolean b) {
46 | 0 |
             this.distinct = b;
47 |  |
         }
48 |  |
49 |  |
         /**
50 |  |
          * @return
51 |  |
          */
52 | 12 |
         public Tables getFromTables() {
53 | 12 |
             return fromTables;
54 |  |
         }
55 |  |
56 |  |
         /**
57 |  |
          * @return
58 |  |
          */
59 | 6 |
         public Fields getGroupByFields() {
60 | 6 |
             return groupByFields;
61 |  |
         }
62 |  |
63 |  |
         /**
64 |  |
          * @return
65 |  |
          */
66 | 6 |
         public Conditions getHavingConditions() {
67 | 6 |
             return havingConditions;
68 |  |
         }
69 |  |
70 |  |
         /**
71 |  |
          * @return
72 |  |
          */
73 | 6 |
         public Fields getOrderByFields() {
74 | 6 |
             return orderByFields;
75 |  |
         }
76 |  |
77 |  |
         /**
78 |  |
          * @return
79 |  |
          */
80 | 13 |
         public Fields getSelectFields() {
81 | 13 |
             return selectFields;
82 |  |
         }
83 |  |
84 |  |
         /**
85 |  |
          * @return
86 |  |
          */
87 | 16 |
         public Conditions getWhereConditions() {
88 | 16 |
             return whereConditions;
89 |  |
         }
90 |  |
91 |  |
     }