|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.service.impl.DefaultEntityManagerProxy
public class DefaultEntityManagerProxy
Default EntityManagerProxy implementation.
| Constructor Summary | |
|---|---|
DefaultEntityManagerProxy(PimentoConfig config)
Creates a new instance using the specified configuration. |
|
| Method Summary | |
|---|---|
Object |
executeQuery(DefaultQuery query)
Executes the specified query and returns the result. |
Object |
initialize(int metadataId,
Object primaryKey)
Loads the entity with the specified primary key and the specified metadata id. |
Object |
initialize(int metadataId,
Object primaryKey,
PropertyMetadata property)
Loads the collection property for the entity with the specified primary key and the specified metadata id. |
Object |
load(int metadataId,
Object primaryKey)
Loads the entity with the specified primary key and the specified metadata id. |
Collection<EntityMetadata> |
loadEntityMetadata()
Loads the metadata for all managed persistent entities. |
void |
merge(Object entity)
Merges the specified entity. |
void |
persist(Object entity)
Persists the specified entity. |
Object |
refresh(int metadataId,
Object primaryKey)
Loads the entity with the specified primary key and the specified metadata id. |
void |
remove(int metadataId,
Object primaryKey)
Removes the entity with the specified primary key and the specified metadata id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEntityManagerProxy(PimentoConfig config)
config - the Pimento configuration| Method Detail |
|---|
public Collection<EntityMetadata> loadEntityMetadata()
EntityManagerProxyThis 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 metadata before they are able to perform other requests.
loadEntityMetadata in interface EntityManagerProxypublic Object executeQuery(DefaultQuery query)
EntityManagerProxy
executeQuery in interface EntityManagerProxyquery - the query to execute
public Object load(int metadataId,
Object primaryKey)
EntityManagerProxy
load in interface EntityManagerProxymetadataId - the metadata id of the entityprimaryKey - the primary key of the entity
public Object refresh(int metadataId,
Object primaryKey)
EntityManagerProxy
refresh in interface EntityManagerProxymetadataId - the metadata id of the entityprimaryKey - the primary key of the entity
public Object initialize(int metadataId,
Object primaryKey)
EntityManagerProxy
initialize in interface EntityManagerProxymetadataId - the metadata id of the entityprimaryKey - the primary key of the entity
public Object initialize(int metadataId,
Object primaryKey,
PropertyMetadata property)
EntityManagerProxy
initialize in interface EntityManagerProxymetadataId - the metadata id of the owning entityprimaryKey - the primary key of the owning entityproperty - the property that holds the collection to load
public void persist(Object entity)
EntityManagerProxy
persist in interface EntityManagerProxyentity - the entity to persist.public void merge(Object entity)
EntityManagerProxy
merge in interface EntityManagerProxyentity - the entity to merge
public void remove(int metadataId,
Object primaryKey)
EntityManagerProxy
remove in interface EntityManagerProxymetadataId - the metadata id of the entity to removeprimaryKey - the primary key of the entity to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||