|
|||||||||||||||||||
| 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 | - | 78.6% | 83.3% | 80% |
|
||||||||||||||
| 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 Tables extends Elements { |
|
| 14 |
|
|
| 15 | 6 |
public void accept(Visitor visitor) { |
| 16 | 6 |
visitor.visit(this);
|
| 17 |
} |
|
| 18 |
|
|
| 19 |
/**
|
|
| 20 |
* テーブル群を追加します。
|
|
| 21 |
*
|
|
| 22 |
* @param tables
|
|
| 23 |
*/
|
|
| 24 | 0 |
public Tables addNewTables() {
|
| 25 | 0 |
final Tables result = new Tables();
|
| 26 | 0 |
super.addImpl(result);
|
| 27 | 0 |
return result;
|
| 28 |
} |
|
| 29 |
|
|
| 30 |
/**
|
|
| 31 |
* テーブルを追加します。
|
|
| 32 |
*
|
|
| 33 |
* @param table
|
|
| 34 |
*/
|
|
| 35 | 6 |
public Tables add(String table) {
|
| 36 | 6 |
return add(null, table); |
| 37 |
} |
|
| 38 |
|
|
| 39 |
/**
|
|
| 40 |
* テーブルを追加します。 <br>
|
|
| 41 |
* テーブルのプレフィックス、テーブル名を別々に指定できます。 <br>
|
|
| 42 |
*
|
|
| 43 |
* @param tablePrefix
|
|
| 44 |
* @param tableName
|
|
| 45 |
*/
|
|
| 46 | 6 |
public Tables add(String tablePrefix, String tableName) {
|
| 47 | 6 |
return add(tablePrefix, tableName, null); |
| 48 |
} |
|
| 49 |
|
|
| 50 |
/**
|
|
| 51 |
* テーブルを追加します。 <br>
|
|
| 52 |
* テーブルのプレフィックス、テーブル名、エイリアス名を別々に指定できます。 <br>
|
|
| 53 |
*
|
|
| 54 |
* @param tablePrefix
|
|
| 55 |
* @param tableName
|
|
| 56 |
* @param tableAlias
|
|
| 57 |
*/
|
|
| 58 | 6 |
public Tables add(String tablePrefix, String tableName, String tableAlias) {
|
| 59 | 6 |
return add(tablePrefix, tableName, tableAlias, null); |
| 60 |
} |
|
| 61 |
|
|
| 62 |
/**
|
|
| 63 |
* テーブルを追加します。 <br>
|
|
| 64 |
* テーブルのプレフィックス、テーブル名、エイリアス名、インデックス名を別々に指定できます。 <br>
|
|
| 65 |
*
|
|
| 66 |
* @param tablePrefix
|
|
| 67 |
* @param tableName
|
|
| 68 |
* @param tableAlias
|
|
| 69 |
* @param indexName
|
|
| 70 |
*/
|
|
| 71 | 6 |
public Tables add(String tablePrefix, String tableName, String tableAlias,
|
| 72 |
String indexName) {
|
|
| 73 | 6 |
final Table result = new Table();
|
| 74 | 6 |
result.setTablePrefix(tablePrefix); |
| 75 | 6 |
result.setTableName(tableName); |
| 76 | 6 |
result.setTableAlias(tableAlias); |
| 77 | 6 |
result.setIndexName(indexName); |
| 78 | 6 |
addImpl(result); |
| 79 | 6 |
return this; |
| 80 |
} |
|
| 81 |
|
|
| 82 |
} |
|
||||||||||