|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.metamodel.impl.MetamodelImpl
public class MetamodelImpl
Default implementation of the Metamodel interface.
| Constructor Summary | |
|---|---|
MetamodelImpl()
|
|
| Method Summary | |
|---|---|
void |
add(Entity entity)
Adds the specified entity to the metamodel. |
Entity |
forClass(Class<?> type)
Returns the entity metamodel for the specified persistent type. |
Entity |
forHandle(int handle)
Returns the entity metamodel for the specified type handle. |
Collection<Entity> |
getEntities()
Return all entity metamodels managed by this instance. |
void |
readExternal(DataInput in)
Restores the content of this object from the DataInput instance. |
void |
writeExternal(DataOutput out)
Saves the content of this object to the DataOutput instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetamodelImpl()
| Method Detail |
|---|
public void add(Entity entity)
entity - the entity to add to the metamodelpublic Entity forClass(Class<?> type)
Metamodel
forClass in interface Metamodeltype - the persistent type to retrieve the metamodel for
public Entity forHandle(int handle)
Metamodel
forHandle in interface Metamodelhandle - the type handle to retrieve the metamodel for
public Collection<Entity> getEntities()
Metamodel
getEntities in interface Metamodelpublic void writeExternal(DataOutput out)
Externalizable
writeExternal in interface Externalizableout - the output to write topublic void readExternal(DataInput in)
Externalizable
readExternal in interface Externalizablein - the AMF3 data to read from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||