|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.vvakame.blaz.meta.ModelMeta<M>
M - public abstract class ModelMeta<M>
モデルと Entity のヒモ付や、検索条件、ソート条件の指定を行うためのクラス.
| Field Summary | |
|---|---|
protected List<String> |
classHierarchyList
|
static String |
PROPERTY_CLASS_HIERARCHY
モデルの継承階層を保持するプロパティ名. |
static String |
PROPERTY_KEY
Key を保持するプロパティ名. |
static String |
PROPERTY_SCHEMA
モデルのスキーマリビジョンを保持するプロパティ名. |
| Constructor Summary | |
|---|---|
protected |
ModelMeta()
|
protected |
ModelMeta(ModelMeta<?> meta)
|
| Method Summary | |
|---|---|
abstract M |
entityToModel(Entity entity)
Entity からモデルへの変換を行う.もし、子孫クラスのモデルの場合、適切な ModelMeta に処理を委譲する. |
abstract Key |
getKey(M model)
モデルに対して指定された Key を取得する. |
abstract String |
getKind()
モデルを Entity として保存した時のKindを取得する. |
abstract Class<M> |
getModelClass()
モデルの Class を取得する. |
protected String |
getModelName()
|
abstract List<PropertyAttributeMeta<?>> |
getProperties()
この ModelMeta が持つ全てのプロパティの一覧を返す。 |
abstract Entity |
modelToEntity(M model)
モデルから Entity への変換を行う.もし、子孫クラスのモデルの場合、適切な ModelMeta に処理を委譲する. |
abstract void |
setKey(M model,
Key key)
モデルに対して指定された Key をセットする. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_KEY
Key を保持するプロパティ名.
public static final String PROPERTY_CLASS_HIERARCHY
public static final String PROPERTY_SCHEMA
protected List<String> classHierarchyList
| Constructor Detail |
|---|
protected ModelMeta()
protected ModelMeta(ModelMeta<?> meta)
| Method Detail |
|---|
protected String getModelName()
public abstract Class<M> getModelClass()
Class を取得する.
Classpublic abstract String getKind()
Entity として保存した時のKindを取得する.
public abstract void setKey(M model,
Key key)
Key をセットする.
model - Key をセットされるモデルkey - セットする Keypublic abstract Key getKey(M model)
Key を取得する.
model - Key を取得するモデル
Keypublic abstract List<PropertyAttributeMeta<?>> getProperties()
ModelMeta が持つ全てのプロパティの一覧を返す。
public abstract Entity modelToEntity(M model)
Entity への変換を行う.ModelMeta に処理を委譲する.
model - 変換元モデル
Entitypublic abstract M entityToModel(Entity entity)
Entity からモデルへの変換を行う.ModelMeta に処理を委譲する.
entity - 変換元 Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||