|
|||||||||||||||||||
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 | |||||||||||||||
Tables.java | - | 54.5% | 62.5% | 57.9% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Created on 2004/02/21
|
|
7 |
*/
|
|
8 |
package org.asyrinx.brownie.core.sql;
|
|
9 |
|
|
10 |
/**
|
|
11 |
* @author akima
|
|
12 |
*/
|
|
13 |
public class Tables extends Elements { |
|
14 |
|
|
15 |
/**
|
|
16 |
*
|
|
17 |
*/
|
|
18 | 3 |
public Tables(IBuilder builder) {
|
19 | 3 |
super(builder);
|
20 |
} |
|
21 |
|
|
22 |
private String delimiter = ", "; |
|
23 |
|
|
24 |
/**
|
|
25 |
* テーブル群を追加します。
|
|
26 |
*
|
|
27 |
* @param tables
|
|
28 |
*/
|
|
29 | 0 |
public Tables add() {
|
30 | 0 |
final Tables result = new Tables(this.builder); |
31 | 0 |
super.addImpl(result);
|
32 | 0 |
return result;
|
33 |
} |
|
34 |
|
|
35 |
/**
|
|
36 |
* テーブルを追加します。
|
|
37 |
*
|
|
38 |
* @param table
|
|
39 |
*/
|
|
40 | 3 |
public Tables add(String table) {
|
41 | 3 |
return add(null, table); |
42 |
} |
|
43 |
|
|
44 |
/**
|
|
45 |
* テーブルを追加します。 <br>
|
|
46 |
* テーブルのプレフィックス、テーブル名を別々に指定できます。 <br>
|
|
47 |
*
|
|
48 |
* @param tablePrefix
|
|
49 |
* @param tableName
|
|
50 |
*/
|
|
51 | 3 |
public Tables add(String tablePrefix, String tableName) {
|
52 | 3 |
return add(tablePrefix, tableName, null); |
53 |
} |
|
54 |
|
|
55 |
/**
|
|
56 |
* テーブルを追加します。 <br>
|
|
57 |
* テーブルのプレフィックス、テーブル名、エイリアス名を別々に指定できます。 <br>
|
|
58 |
*
|
|
59 |
* @param tablePrefix
|
|
60 |
* @param tableName
|
|
61 |
* @param tableAlias
|
|
62 |
*/
|
|
63 | 3 |
public Tables add(String tablePrefix, String tableName, String tableAlias) {
|
64 | 3 |
return add(tablePrefix, tableName, tableAlias, null); |
65 |
} |
|
66 |
|
|
67 |
/**
|
|
68 |
* テーブルを追加します。 <br>
|
|
69 |
* テーブルのプレフィックス、テーブル名、エイリアス名、インデックス名を別々に指定できます。 <br>
|
|
70 |
*
|
|
71 |
* @param tablePrefix
|
|
72 |
* @param tableName
|
|
73 |
* @param tableAlias
|
|
74 |
* @param indexName
|
|
75 |
*/
|
|
76 | 3 |
public Tables add(String tablePrefix, String tableName, String tableAlias,
|
77 |
String indexName) { |
|
78 | 3 |
super.addImpl(builder.buildTable(tablePrefix, tableName, tableAlias,
|
79 |
indexName)); |
|
80 | 3 |
return this; |
81 |
} |
|
82 |
|
|
83 |
/**
|
|
84 |
* @return
|
|
85 |
*/
|
|
86 | 0 |
public String getDelimiter() {
|
87 | 0 |
return delimiter;
|
88 |
} |
|
89 |
|
|
90 |
/**
|
|
91 |
* @param string
|
|
92 |
*/
|
|
93 | 0 |
public void setDelimiter(String string) { |
94 | 0 |
delimiter = string; |
95 |
} |
|
96 |
|
|
97 |
} |
|