public class EntityPropertyDescFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Long |
allocationSize
識別子の割り当てサイズ
|
protected GenDialect |
dialect
方言
|
protected GenerationType |
generationType
識別子を生成する方法
|
protected java.lang.Long |
initialValue
識別子の初期値
|
protected EntityPropertyClassNameResolver |
propertyClassNameResolver
ドメインクラス名のリゾルバ
|
protected boolean |
showColumnName
カラム名を表示する場合
true |
protected java.util.regex.Pattern |
versionColumnNamePattern
バージョンカラム名パターン
|
| Constructor and Description |
|---|
EntityPropertyDescFactory(GenDialect dialect,
EntityPropertyClassNameResolver propertyClassNameResolver,
java.lang.String versionColumnNamePattern,
GenerationType generationType,
java.lang.Long initialValue,
java.lang.Long allocationSize,
boolean showColumnName)
インスタンスを構築します。
|
| Modifier and Type | Method and Description |
|---|---|
EntityPropertyDesc |
createEntityPropertyDesc(EntityDesc entityDesc,
ColumnMeta columnMeta)
エンティティプロパティ記述を作成します。
|
protected void |
descriminateType(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
数値かどうかを処理します。
|
protected void |
handleName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
名前を処理します。
|
protected void |
handlePropertyClassName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
プロパティクラス名を処理します。
|
protected void |
handleShowColumnName(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
カラム名を表示するかどうかを処理します。
|
protected void |
handleVersion(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc,
ColumnMeta columnMeta)
バージョンを処理します。
|
protected boolean |
isNameDifferentBetweenPropertyAndColumn(EntityDesc entityDesc,
EntityPropertyDesc propertyDesc)
プロパティ名とカラム名が異なる場合
trueを返します。 |
protected boolean |
isVersionAnnotatable(java.lang.String className)
org.seasar.doma.Version を注釈可能なクラス名の場合 true を返します。 |
protected void |
validateGenerationType(GenerationType generationType)
識別子を生成する方法を検証します。
|
protected final GenDialect dialect
protected final EntityPropertyClassNameResolver propertyClassNameResolver
protected final java.util.regex.Pattern versionColumnNamePattern
protected final GenerationType generationType
protected final java.lang.Long initialValue
protected final java.lang.Long allocationSize
protected final boolean showColumnName
truepublic EntityPropertyDescFactory(GenDialect dialect, EntityPropertyClassNameResolver propertyClassNameResolver, java.lang.String versionColumnNamePattern, GenerationType generationType, java.lang.Long initialValue, java.lang.Long allocationSize, boolean showColumnName)
dialect - 方言propertyClassNameResolver - プロパティクラス名のリゾルバversionColumnNamePattern - バージョンカラム名パターンgenerationType - 識別子を生成する方法initialValue - 識別子の初期値allocationSize - 識別子の割り当てサイズshowColumnName - カラム名を表示する場合 trueprotected void validateGenerationType(GenerationType generationType)
generationType - 識別子を生成する方法public EntityPropertyDesc createEntityPropertyDesc(EntityDesc entityDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述columnMeta - カラムメタデータprotected void handleName(EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected void handlePropertyClassName(EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected void descriminateType(EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected void handleShowColumnName(EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected boolean isNameDifferentBetweenPropertyAndColumn(EntityDesc entityDesc, EntityPropertyDesc propertyDesc)
trueを返します。entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述trueprotected void handleVersion(EntityDesc entityDesc, EntityPropertyDesc propertyDesc, ColumnMeta columnMeta)
entityDesc - エンティティ記述propertyDesc - エンティティプロパティ記述columnMeta - カラムメタデータprotected boolean isVersionAnnotatable(java.lang.String className)
org.seasar.doma.Version を注釈可能なクラス名の場合 true を返します。className - クラス名Version を注釈可能なクラス名の場合 true