org.seasar.extension.jdbc.gen.model
クラス EntityModel

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.model.GeneratedModel
      上位を拡張 org.seasar.extension.jdbc.gen.model.ClassModel
          上位を拡張 org.seasar.extension.jdbc.gen.model.EntityModel

public class EntityModel
extends ClassModel

エンティティクラスのモデルです。

作成者:
taedium

フィールドの概要
protected  java.util.List<AssociationModel> associationModelList
          関連モデルのリスト
protected  java.util.List<AttributeModel> attributeModelList
          属性モデルのリスト
protected  java.lang.String catalogName
          カタログ名
protected  java.lang.String comment
          コメント
protected  boolean compositeId
          複合識別子を持つ場合true
protected  java.util.List<CompositeUniqueConstraintModel> compositeUniqueConstraintModelList
          複合一意制約モデルのリスト
protected  java.lang.String schemaName
          スキーマ名
protected  java.lang.String shortSuperclassName
          スーパークラスの単純名
protected  java.lang.String tableName
          テーブル名
protected  boolean useAccessor
          エンティティクラスでアクセサを使用する場合 true
protected  boolean useComment
          コメントを使用する場合 true
 
クラス org.seasar.extension.jdbc.gen.model.ClassModel から継承されたフィールド
importNameSet, packageName, shortClassName, staticImportNameSet
 
クラス org.seasar.extension.jdbc.gen.model.GeneratedModel から継承されたフィールド
generatedInfoList
 
コンストラクタの概要
EntityModel()
           
 
メソッドの概要
 void addAssociationModel(AssociationModel associationModel)
          関連モデルを追加します。
 void addAttributeModel(AttributeModel attributeModel)
          属性モデルを追加します。
 void addCompositeUniqueConstraintModel(CompositeUniqueConstraintModel compositeUniqueConstraintModel)
          複合一意制約モデルを追加します。
 java.util.List<AssociationModel> getAssociationModelList()
          関連モデルのリストを返します。
 java.util.List<AttributeModel> getAttributeModelList()
          属性モデルを返します。
 java.lang.String getCatalogName()
          カタログ名を返します。
 java.lang.String getComment()
          コメントを返します。
 java.util.List<CompositeUniqueConstraintModel> getCompositeUniqueConstraintModelList()
          複合一意制約モデルのリストを返します。
 java.lang.String getSchemaName()
          スキーマ名を返します。
 java.lang.String getShortSuperclassName()
          スーパークラスの単純名を返します。
 java.lang.String getTableName()
          テーブル名を返します。
 boolean hasCompositeId()
          複合識別子を持つ場合trueを返します。
 boolean isUseAccessor()
          エンティティクラスでアクセサを使用する場合 trueを返します。
 boolean isUseComment()
          コメントを使用する場合 trueを返します。
 void setCatalogName(java.lang.String catalogName)
          カタログ名を設定します。
 void setComment(java.lang.String comment)
          コメントを設定します。
 void setCompositeId(boolean compositeId)
          複合識別子を持つ場合trueを設定します。
 void setSchemaName(java.lang.String schemaName)
          スキーマ名を設定します。
 void setShortSuperclassName(java.lang.String shortSuperclassName)
          スーパークラスの単純名を設定します。
 void setTableName(java.lang.String tableName)
          テーブル名を設定します。
 void setUseAccessor(boolean useAccessor)
          エンティティクラスでアクセサを使用する場合 trueを設定します。
 void setUseComment(boolean useComment)
          コメントを使用する場合 trueを設定します。
 
クラス org.seasar.extension.jdbc.gen.model.ClassModel から継承されたメソッド
addImportName, addStaticImportName, getImportNameSet, getPackageName, getShortClassName, getStaticImportNameSet, setPackageName, setShortClassName
 
クラス org.seasar.extension.jdbc.gen.model.GeneratedModel から継承されたメソッド
addGeneratedInfo, getGeneratedInfoList
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

catalogName

protected java.lang.String catalogName
カタログ名


schemaName

protected java.lang.String schemaName
スキーマ名


tableName

protected java.lang.String tableName
テーブル名


shortSuperclassName

protected java.lang.String shortSuperclassName
スーパークラスの単純名


compositeId

protected boolean compositeId
複合識別子を持つ場合true


useAccessor

protected boolean useAccessor
エンティティクラスでアクセサを使用する場合 true


useComment

protected boolean useComment
コメントを使用する場合 true


comment

protected java.lang.String comment
コメント


attributeModelList

protected java.util.List<AttributeModel> attributeModelList
属性モデルのリスト


associationModelList

protected java.util.List<AssociationModel> associationModelList
関連モデルのリスト


compositeUniqueConstraintModelList

protected java.util.List<CompositeUniqueConstraintModel> compositeUniqueConstraintModelList
複合一意制約モデルのリスト

コンストラクタの詳細

EntityModel

public EntityModel()
メソッドの詳細

getCatalogName

public java.lang.String getCatalogName()
カタログ名を返します。

戻り値:
カタログ名

setCatalogName

public void setCatalogName(java.lang.String catalogName)
カタログ名を設定します。

パラメータ:
catalogName - カタログ名

getSchemaName

public java.lang.String getSchemaName()
スキーマ名を返します。

戻り値:
スキーマ名

setSchemaName

public void setSchemaName(java.lang.String schemaName)
スキーマ名を設定します。

パラメータ:
schemaName - スキーマ名

getTableName

public java.lang.String getTableName()
テーブル名を返します。

戻り値:
テーブル名

setTableName

public void setTableName(java.lang.String tableName)
テーブル名を設定します。

パラメータ:
tableName - テーブル名

getShortSuperclassName

public java.lang.String getShortSuperclassName()
スーパークラスの単純名を返します。

戻り値:
スーパークラスの単純名

setShortSuperclassName

public void setShortSuperclassName(java.lang.String shortSuperclassName)
スーパークラスの単純名を設定します。

パラメータ:
shortSuperclassName - スーパークラスの単純名

getAttributeModelList

public java.util.List<AttributeModel> getAttributeModelList()
属性モデルを返します。

戻り値:
属性モデル

addAttributeModel

public void addAttributeModel(AttributeModel attributeModel)
属性モデルを追加します。

パラメータ:
attributeModel - 属性モデル

getAssociationModelList

public java.util.List<AssociationModel> getAssociationModelList()
関連モデルのリストを返します。

戻り値:
関連モデルのリスト

addAssociationModel

public void addAssociationModel(AssociationModel associationModel)
関連モデルを追加します。

パラメータ:
associationModel - 関連モデル

getCompositeUniqueConstraintModelList

public java.util.List<CompositeUniqueConstraintModel> getCompositeUniqueConstraintModelList()
複合一意制約モデルのリストを返します。

戻り値:
複合一意制約モデルのリスト

addCompositeUniqueConstraintModel

public void addCompositeUniqueConstraintModel(CompositeUniqueConstraintModel compositeUniqueConstraintModel)
複合一意制約モデルを追加します。

パラメータ:
compositeUniqueConstraintModel - 複合一意制約モデル

hasCompositeId

public boolean hasCompositeId()
複合識別子を持つ場合trueを返します。

戻り値:
複合識別子を持つ場合true

setCompositeId

public void setCompositeId(boolean compositeId)
複合識別子を持つ場合trueを設定します。

パラメータ:
compositeId - 複合識別子を持つ場合true

isUseAccessor

public boolean isUseAccessor()
エンティティクラスでアクセサを使用する場合 trueを返します。

戻り値:
エンティティクラスでアクセサを使用する場合 true

setUseAccessor

public void setUseAccessor(boolean useAccessor)
エンティティクラスでアクセサを使用する場合 trueを設定します。

パラメータ:
useAccessor - エンティティクラスでアクセサを使用する場合 true

isUseComment

public boolean isUseComment()
コメントを使用する場合 trueを返します。

戻り値:
コメントを使用する場合 true

setUseComment

public void setUseComment(boolean useComment)
コメントを使用する場合 trueを設定します。

パラメータ:
useComment - コメントを使用する場合 true

getComment

public java.lang.String getComment()
コメントを返します。

戻り値:
コメント

setComment

public void setComment(java.lang.String comment)
コメントを設定します。

パラメータ:
comment - コメント


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