public abstract class Metamodel<E> extends Object
Metamodel represents the metamodel of Acid House entity.| Constructor and Description |
|---|
Metamodel(Class<E> type)
Constructs a new
Metamodel instance with the specified entity
type. |
Metamodel(Metamodel<?> parent,
Class<E> type,
String name)
Constructs a new
Metamodel instance with the specified entity
type, parent metamodel and metamodel name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasChild()
Returns
true if this metamodel instance has a child
metamodel. |
boolean |
isRoot()
Returns this entity metamodel instance represents root entity or not.
|
String |
name()
Returns entity metamodel name.
|
Metamodel<?> |
parent()
Returns parent entity metamodel.
|
Metamodel<?> |
root()
Returns the root metmaodel of this metmaodel instance.
|
Class<E> |
type()
Returns the entity type this metamodel represents.
|
public Metamodel(Class<E> type)
Metamodel instance with the specified entity
type. This constructor is called when the represented entity is the root
entity (not owned child entity property).type - The entity type.public Metamodel(Metamodel<?> parent, Class<E> type, String name)
Metamodel instance with the specified entity
type, parent metamodel and metamodel name. This constructor is called
if the represented entity is declared as owned child entity property.parent - The parent entity metamodel when this instance is declared
as owned child entity property.type - The entity type.name - The metamodel name when this instance is declared as owned
child entity property.public Metamodel<?> parent()
null, when this instance is declared as
owned child entity property.public String name()
public boolean isRoot()
public boolean hasChild()
true if this metamodel instance has a child
metamodel.true if this metamodel instance has a child
metamodel.public Class<E> type()
public Metamodel<?> root()
Copyright © 2009-2014 Eiichiro Uchiumi. All Rights Reserved.