org.seasar.extension.jdbc.gen.internal.desc
クラス AttributeDescFactoryImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.internal.desc.AttributeDescFactoryImpl
すべての実装されたインタフェース:
AttributeDescFactory

public class AttributeDescFactoryImpl
extends java.lang.Object
implements AttributeDescFactory

AttributeDescFactoryの実装クラスです。

作成者:
taedium

フィールドの概要
protected  int allocationSize
          エンティティの識別子の割り当てサイズ
protected  GenDialect dialect
          方言
protected  GenerationType generationType
          エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull
protected  int initialValue
          エンティティの識別子の初期値
protected  PersistenceConvention persistenceConvention
          永続化層の命名規約
protected  java.util.regex.Pattern versionColumnNamePattern
          バージョンカラム名のパターン
 
コンストラクタの概要
AttributeDescFactoryImpl(PersistenceConvention persistenceConvention, GenDialect dialect, java.lang.String versionColumnNamePattern, GenerationType generationType, java.lang.Integer initialValue, java.lang.Integer allocationSize)
          インスタンスを構築します。
 
メソッドの概要
protected  void doColumn(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          カラムを処理します。
protected  void doGenerationType(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          GenerationTypeを処理します。
protected  void doId(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          識別子を処理します。
protected  void doName(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          名前を処理します。
protected  void doTransient(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          一時的なプロパティを処理します。
protected  void doVersion(DbTableMeta tableMeta, DbColumnMeta columnMeta, AttributeDesc attributeDesc)
          バージョンを処理します。
 AttributeDesc getAttributeDesc(DbTableMeta tableMeta, DbColumnMeta columnMeta)
          属性記述を返します。
protected  boolean isVersionAnnotatable(java.lang.Class<?> clazz)
          Versionを注釈できるクラスの場合true
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

persistenceConvention

protected PersistenceConvention persistenceConvention
永続化層の命名規約


dialect

protected GenDialect dialect
方言


versionColumnNamePattern

protected java.util.regex.Pattern versionColumnNamePattern
バージョンカラム名のパターン


generationType

protected GenerationType generationType
エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull


initialValue

protected int initialValue
エンティティの識別子の初期値


allocationSize

protected int allocationSize
エンティティの識別子の割り当てサイズ

コンストラクタの詳細

AttributeDescFactoryImpl

public AttributeDescFactoryImpl(PersistenceConvention persistenceConvention,
                                GenDialect dialect,
                                java.lang.String versionColumnNamePattern,
                                GenerationType generationType,
                                java.lang.Integer initialValue,
                                java.lang.Integer allocationSize)
インスタンスを構築します。

パラメータ:
persistenceConvention - 永続化層の命名規約
dialect - 方言
versionColumnNamePattern - バージョンカラム名のパターン
generationType - エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull
initialValue - エンティティの識別子の初期値、指定しない場合はnull
allocationSize - エンティティの識別子の割り当てサイズ、指定しない場合はnull
メソッドの詳細

getAttributeDesc

public AttributeDesc getAttributeDesc(DbTableMeta tableMeta,
                                      DbColumnMeta columnMeta)
インタフェース AttributeDescFactory の記述:
属性記述を返します。

定義:
インタフェース AttributeDescFactory 内の getAttributeDesc
パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
戻り値:
属性記述

doName

protected void doName(DbTableMeta tableMeta,
                      DbColumnMeta columnMeta,
                      AttributeDesc attributeDesc)
名前を処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

doId

protected void doId(DbTableMeta tableMeta,
                    DbColumnMeta columnMeta,
                    AttributeDesc attributeDesc)
識別子を処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

doTransient

protected void doTransient(DbTableMeta tableMeta,
                           DbColumnMeta columnMeta,
                           AttributeDesc attributeDesc)
一時的なプロパティを処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

doVersion

protected void doVersion(DbTableMeta tableMeta,
                         DbColumnMeta columnMeta,
                         AttributeDesc attributeDesc)
バージョンを処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

doColumn

protected void doColumn(DbTableMeta tableMeta,
                        DbColumnMeta columnMeta,
                        AttributeDesc attributeDesc)
カラムを処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

doGenerationType

protected void doGenerationType(DbTableMeta tableMeta,
                                DbColumnMeta columnMeta,
                                AttributeDesc attributeDesc)
GenerationTypeを処理します。

パラメータ:
tableMeta - テーブルメタデータ
columnMeta - カラムメタデータ
attributeDesc - 属性記述

isVersionAnnotatable

protected boolean isVersionAnnotatable(java.lang.Class<?> clazz)
Versionを注釈できるクラスの場合true

パラメータ:
clazz - クラス
戻り値:
Versionを注釈できるクラスの場合true


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.