|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional @CinnamonService public interface EntityManagerProxy
Server-side proxy for the EntityManager remote service.
The method signatures of this service interface are different than that
of the corresponding AS3 EntityManager interface since Pimento
modifies some of the parameters and return values under the hood.
This class should be exposed for clients through a Spring ApplicationContext. It is usually not used in server-sider application code directly.
| 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. |
| Method Detail |
|---|
Collection<EntityMetadata> loadEntityMetadata()
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 metadata before they are able to perform other requests.
Object executeQuery(DefaultQuery query)
query - the query to execute
Object load(int metadataId,
Object primaryKey)
metadataId - the metadata id of the entityprimaryKey - the primary key of the entity
Object refresh(int metadataId,
Object primaryKey)
metadataId - the metadata id of the entityprimaryKey - the primary key of the entity
Object initialize(int metadataId,
Object primaryKey)
metadataId - the metadata id of the entityprimaryKey - the primary key of the entity
Object initialize(int metadataId,
Object primaryKey,
PropertyMetadata property)
metadataId - the metadata id of the owning entityprimaryKey - the primary key of the owning entityproperty - the property that holds the collection to load
void persist(Object entity)
entity - the entity to persist.void merge(Object entity)
entity - the entity to merge
void remove(int metadataId,
Object primaryKey)
metadataId - 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 | ||||||||