クラス EntityMetamodel
- java.lang.Object
-
- com.github.mygreen.sqlmapper.apt.model.EntityMetamodel
-
public class EntityMetamodel extends Object
APTによる処理対象のプロパティ情報。- 作成者:
- T.TSUCHIE
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 EntityMetamodel()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 voidadd(EntityMetamodel entity)staticな内部クラスのエンティティ情報を追加する。voidadd(PropertyMetamodel property)プロパティ情報を追加する。protected booleancanEqual(Object other)booleanequals(Object o)StringgetClassName()クラス名(パッケージ名除く)com.github.mygreen.sqlmapper.core.annotation.EmbeddablegetEmbeddableAnno()アノテーションEmbeddableの情報com.github.mygreen.sqlmapper.core.annotation.EntitygetEntityAnno()アノテーションEntityの情報StringgetFullName()エンティティのFQNを取得する。com.github.mygreen.sqlmapper.core.annotation.MappedSuperclassgetMappedSuperclassAnno()アノテーションMappedSuperclassの情報StringgetPackageName()パッケージ名List<PropertyMetamodel>getProperties()プロパティ情報List<EntityMetamodel>getStaticInnerEntities()staticな内部クラスのエンティティの場合AptTypegetSuperClassType()親クラス(パッケージ名含む)AptTypegetType()自身のクラス情報inthashCode()booleanhasSuperClass()MappedSuperclassが付与された親クラスを持つかどうか。booleanisEmbeddable()クラスにアノテーションEmbeddableが付与されているかどうか。booleanisEntity()クラスにアノテーションEntityが付与されているかどうか。booleanisMappedSuperclass()クラスにアノテーションMappedSuperclassが付与されているかどうか。voidsetClassName(String className)クラス名(パッケージ名除く)voidsetEmbeddableAnno(com.github.mygreen.sqlmapper.core.annotation.Embeddable embeddableAnno)アノテーションEmbeddableの情報voidsetEntityAnno(com.github.mygreen.sqlmapper.core.annotation.Entity entityAnno)アノテーションEntityの情報voidsetMappedSuperclassAnno(com.github.mygreen.sqlmapper.core.annotation.MappedSuperclass mappedSuperclassAnno)アノテーションMappedSuperclassの情報voidsetPackageName(String packageName)パッケージ名voidsetProperties(List<PropertyMetamodel> properties)プロパティ情報voidsetStaticInnerEntities(List<EntityMetamodel> staticInnerEntities)staticな内部クラスのエンティティの場合voidsetSuperClassType(AptType superClassType)親クラス(パッケージ名含む)voidsetType(AptType type)自身のクラス情報StringtoString()
-
-
-
メソッドの詳細
-
getFullName
public String getFullName()
エンティティのFQNを取得する。- 戻り値:
- エンティティのFQN
-
add
public void add(PropertyMetamodel property)
プロパティ情報を追加する。- パラメータ:
property- プロパティ情報
-
add
public void add(EntityMetamodel entity)
staticな内部クラスのエンティティ情報を追加する。- パラメータ:
entity- エンティティ情報
-
isEntity
public boolean isEntity()
クラスにアノテーションEntityが付与されているかどうか。- 戻り値:
- trueのときアノテーション
Entityが付与されている。
-
isMappedSuperclass
public boolean isMappedSuperclass()
クラスにアノテーションMappedSuperclassが付与されているかどうか。- 戻り値:
- trueのときアノテーション
MappedSuperclassが付与されている。
-
isEmbeddable
public boolean isEmbeddable()
クラスにアノテーションEmbeddableが付与されているかどうか。- 戻り値:
- trueのときアノテーション
Embeddableが付与されている。
-
hasSuperClass
public boolean hasSuperClass()
MappedSuperclassが付与された親クラスを持つかどうか。- 戻り値:
- trueのときき
MappedSuperclassが付与された親クラス
-
getPackageName
public String getPackageName()
パッケージ名
-
getClassName
public String getClassName()
クラス名(パッケージ名除く)
-
getType
public AptType getType()
自身のクラス情報
-
getSuperClassType
public AptType getSuperClassType()
親クラス(パッケージ名含む)
-
getEntityAnno
public com.github.mygreen.sqlmapper.core.annotation.Entity getEntityAnno()
アノテーションEntityの情報
-
getMappedSuperclassAnno
public com.github.mygreen.sqlmapper.core.annotation.MappedSuperclass getMappedSuperclassAnno()
アノテーションMappedSuperclassの情報
-
getEmbeddableAnno
public com.github.mygreen.sqlmapper.core.annotation.Embeddable getEmbeddableAnno()
アノテーションEmbeddableの情報
-
getProperties
public List<PropertyMetamodel> getProperties()
プロパティ情報
-
getStaticInnerEntities
public List<EntityMetamodel> getStaticInnerEntities()
staticな内部クラスのエンティティの場合
-
setPackageName
public void setPackageName(String packageName)
パッケージ名
-
setClassName
public void setClassName(String className)
クラス名(パッケージ名除く)
-
setType
public void setType(AptType type)
自身のクラス情報
-
setSuperClassType
public void setSuperClassType(AptType superClassType)
親クラス(パッケージ名含む)
-
setEntityAnno
public void setEntityAnno(com.github.mygreen.sqlmapper.core.annotation.Entity entityAnno)
アノテーションEntityの情報
-
setMappedSuperclassAnno
public void setMappedSuperclassAnno(com.github.mygreen.sqlmapper.core.annotation.MappedSuperclass mappedSuperclassAnno)
アノテーションMappedSuperclassの情報
-
setEmbeddableAnno
public void setEmbeddableAnno(com.github.mygreen.sqlmapper.core.annotation.Embeddable embeddableAnno)
アノテーションEmbeddableの情報
-
setProperties
public void setProperties(List<PropertyMetamodel> properties)
プロパティ情報
-
setStaticInnerEntities
public void setStaticInnerEntities(List<EntityMetamodel> staticInnerEntities)
staticな内部クラスのエンティティの場合
-
canEqual
protected boolean canEqual(Object other)
-
-