| 
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.model.TableModelFactoryImpl
public class TableModelFactoryImpl
TableModelFactoryの実装クラスです。
| フィールドの概要 | |
|---|---|
protected  javax.sql.DataSource | 
dataSource
データソース  | 
protected  char | 
delimiter
SQLステートメントの区切り文字  | 
protected  GenDialect | 
dialect
方言  | 
protected  GeneratedModelSupport | 
generatedModelSupport
生成モデルのサポート  | 
protected static Logger | 
logger
ロガー  | 
protected  SqlIdentifierCaseType | 
sqlIdentifierCaseType
SQLの識別子の大文字小文字を変換するかどうかを示す列挙型  | 
protected  SqlKeywordCaseType | 
sqlKeywordCaseType
SQLのキーワードの大文字小文字を変換するかどうかを示す列挙型  | 
protected  java.lang.String | 
tableOption
テーブルオプション、存在しない場合は null | 
protected  boolean | 
useComment
コメントを使用する場合 true | 
| コンストラクタの概要 | |
|---|---|
TableModelFactoryImpl(GenDialect dialect,
                      javax.sql.DataSource dataSource,
                      SqlIdentifierCaseType sqlIdentifierCaseType,
                      SqlKeywordCaseType sqlKeywordCaseType,
                      char delimiter,
                      java.lang.String tableOption,
                      boolean useComment)
 | 
|
| メソッドの概要 | |
|---|---|
protected  void | 
doColumnModel(TableModel tableModel,
              TableDesc tableDesc)
カラムモデルを処理します。  | 
protected  void | 
doForeignKeyModel(TableModel tableModel,
                  TableDesc tableDesc)
外部キーモデルを処理します。  | 
protected  void | 
doGeneratedInfo(TableModel tableModel,
                TableDesc tableDesc)
生成情報を処理します。  | 
protected  void | 
doPrimaryKeyModel(TableModel tableModel,
                  TableDesc tableDesc)
主キーモデルを処理します。  | 
protected  void | 
doSequenceModel(TableModel tableModel,
                TableDesc tableDesc)
シーケンスモデルを処理します。  | 
protected  void | 
doUniqueKeyModel(TableModel tableModel,
                 TableDesc tableDesc)
一意キーモデルを処理します。  | 
protected  java.lang.Long | 
getNextValue(java.lang.String sequenceName,
             int allocationSize)
シーケンスの次の値を返します。  | 
 TableModel | 
getTableModel(TableDesc tableDesc)
テーブルモデルを返します。  | 
protected  java.lang.String | 
identifier(java.lang.String identifier)
識別子の大文字小文字を変換します。  | 
protected  java.lang.String | 
keyword(java.lang.String keyword)
キーワードの大文字小文字を変換します。  | 
protected  java.lang.String | 
normalizeComment(java.lang.String comment)
コメントを正規化します。  | 
protected  java.lang.String | 
toActionName(ReferentialActionType actionType)
参照動作の名前に変換します。  | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| フィールドの詳細 | 
|---|
protected static Logger logger
protected GenDialect dialect
protected javax.sql.DataSource dataSource
protected char delimiter
protected java.lang.String tableOption
null
protected SqlIdentifierCaseType sqlIdentifierCaseType
protected SqlKeywordCaseType sqlKeywordCaseType
protected boolean useComment
true
protected GeneratedModelSupport generatedModelSupport
| コンストラクタの詳細 | 
|---|
public TableModelFactoryImpl(GenDialect dialect,
                             javax.sql.DataSource dataSource,
                             SqlIdentifierCaseType sqlIdentifierCaseType,
                             SqlKeywordCaseType sqlKeywordCaseType,
                             char delimiter,
                             java.lang.String tableOption,
                             boolean useComment)
dialect - 方言dataSource - データソースsqlIdentifierCaseType - SQLの識別子の大文字小文字を変換するかどうかを示す列挙型sqlKeywordCaseType - SQLのキーワードの大文字小文字を変換するかどうかを示す列挙型delimiter - 区切り文字tableOption - テーブルオプション、存在しない場合はnulluseComment - コメントを使用する場合true| メソッドの詳細 | 
|---|
public TableModel getTableModel(TableDesc tableDesc)
TableModelFactory の記述: 
TableModelFactory 内の getTableModeltableDesc - テーブル記述
protected void doPrimaryKeyModel(TableModel tableModel,
                                 TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述
protected void doUniqueKeyModel(TableModel tableModel,
                                TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述
protected void doForeignKeyModel(TableModel tableModel,
                                 TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述protected java.lang.String toActionName(ReferentialActionType actionType)
actionType - 
protected void doSequenceModel(TableModel tableModel,
                               TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述
protected void doColumnModel(TableModel tableModel,
                             TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述
protected java.lang.Long getNextValue(java.lang.String sequenceName,
                                      int allocationSize)
sequenceName - シーケンス名allocationSize - 割り当てサイズ
nullprotected java.lang.String keyword(java.lang.String keyword)
keyword - キーワード
protected java.lang.String identifier(java.lang.String identifier)
identifier - 識別子
protected java.lang.String normalizeComment(java.lang.String comment)
comment - コメント
protected void doGeneratedInfo(TableModel tableModel,
                               TableDesc tableDesc)
tableModel - テーブルモデルtableDesc - テーブル記述
  | 
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||