org.spicefactory.pimento.metamodel.impl
Class DefaultMetamodelLoader
java.lang.Object
org.spicefactory.pimento.metamodel.impl.DefaultMetamodelLoader
- All Implemented Interfaces:
- MetamodelLoader
public class DefaultMetamodelLoader
- extends Object
- implements MetamodelLoader
Default implementation of the MetamodelLoader interface.
- Author:
- Jens Halm
|
Method Summary |
Metamodel |
load()
Loads the metamodel for all managed persistent entities. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMetamodelLoader
public DefaultMetamodelLoader(PimentoConfig config)
- Creates a new instance.
- Parameters:
config - the Pimento configuration containing the entity metamodel.
load
public Metamodel load()
- Description copied from interface:
MetamodelLoader
- Loads the metamodel for all managed persistent entities.
This is an internal operation not exposed to the client-side EntityManager
interface. It is always executed as the initial request for any client, since the clients
need access to the metamodel before they are able to perform other requests.
- Specified by:
load in interface MetamodelLoader
- Returns:
- the metamodel for all managed persistent entities