|
|||||||||
| 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,
int typeHandle)
Executes the specified query and returns the result. |
Object |
initialize(int typeHandle,
Object primaryKey)
Intializes the entity with the specified primary key and type handle. |
Object |
initialize(int typeHandle,
Object primaryKey,
String propertyName)
Loads the collection property for the entity with the specified primary key and type handle. |
Object |
load(int typeHandle,
Object primaryKey)
Loads the entity with the specified primary key and type handle. |
void |
merge(Object instance)
Merges the specified entity. |
void |
persist(Object instance)
Persists the specified entity. |
Object |
refresh(int typeHandle,
Object primaryKey)
Refreshes the entity with the specified primary key and type handle. |
void |
remove(int typeHandle,
Object primaryKey)
Removes the entity with the specified primary key and type handle. |
| 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 Object executeQuery(DefaultQuery query,
int typeHandle)
EntityManagerProxy
executeQuery in interface EntityManagerProxyquery - the query to executetypeHandle - the type handle of the result objects or 0 if not specified
public Object load(int typeHandle,
Object primaryKey)
EntityManagerProxy
load in interface EntityManagerProxytypeHandle - the type handle of the entityprimaryKey - the primary key of the entity
public Object refresh(int typeHandle,
Object primaryKey)
EntityManagerProxy
refresh in interface EntityManagerProxytypeHandle - the type handle of the entityprimaryKey - the primary key of the entity
public Object initialize(int typeHandle,
Object primaryKey)
EntityManagerProxy
initialize in interface EntityManagerProxytypeHandle - the type handle of the entityprimaryKey - the primary key of the entity
public Object initialize(int typeHandle,
Object primaryKey,
String propertyName)
EntityManagerProxy
initialize in interface EntityManagerProxytypeHandle - the type handle of the owning entityprimaryKey - the primary key of the owning entitypropertyName - the name of the collection property
public void persist(Object instance)
EntityManagerProxy
persist in interface EntityManagerProxyinstance - the entity to persist.public void merge(Object instance)
EntityManagerProxy
merge in interface EntityManagerProxyinstance - the entity to merge
public void remove(int typeHandle,
Object primaryKey)
EntityManagerProxy
remove in interface EntityManagerProxytypeHandle - the type handle 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 | ||||||||