jrun.ejb.persistence
Class ContainerManagedEntityPersistenceManager
jrunx.kernel.ServiceAdapter
|
+--jrun.ejb.persistence.EntityPersistenceManager
|
+--jrun.ejb.persistence.ContainerManagedEntityPersistenceManager
- All Implemented Interfaces:
- javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean
- public class ContainerManagedEntityPersistenceManager
- extends EntityPersistenceManager
- Author:
- Paul Reilly, Enrique Duvos
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
|
Method Summary |
void |
create(Instance instance,
java.lang.reflect.Method method,
java.lang.Object[] args)
Create an instance in the persistence store. |
void |
findByPrimaryKey(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
Find an entity bean by primary key in the persistence store. |
void |
findEntity(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
Find a single entity bean in the persistence store. |
java.util.Collection |
findEntityCollection(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
Find a collection of entity beans in the persistence store. |
java.util.Enumeration |
findEntityEnumeration(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
Find an enumeration of entity beans in the persistence store. |
void |
load(Instance instance)
Load the instance corresponding to id into the
persistence store. |
void |
remove(Instance instance)
Remove the instance from the persistence store. |
void |
store(Instance instance)
Store an instance into the persistence store. |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus |
ContainerManagedEntityPersistenceManager
public ContainerManagedEntityPersistenceManager(EntityContainer entityContainer)
throws java.lang.Exception
create
public void create(Instance instance,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Exception
- Create an instance in the persistence store.
- Overrides:
create in class EntityPersistenceManager
findByPrimaryKey
public void findByPrimaryKey(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
throws java.lang.Exception
- Find an entity bean by primary key in the persistence store.
- Overrides:
findByPrimaryKey in class EntityPersistenceManager
findEntity
public void findEntity(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
throws java.lang.Exception
- Find a single entity bean in the persistence store.
- Overrides:
findEntity in class EntityPersistenceManager
findEntityCollection
public java.util.Collection findEntityCollection(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
throws java.lang.Exception
- Find a collection of entity beans in the persistence store.
- Overrides:
findEntityCollection in class EntityPersistenceManager
- Returns:
- A collection of primary keys.
findEntityEnumeration
public java.util.Enumeration findEntityEnumeration(Instance instance,
java.lang.reflect.Method finderMethod,
java.lang.Object[] args)
throws java.lang.Exception
- Find an enumeration of entity beans in the persistence store.
- Overrides:
findEntityEnumeration in class EntityPersistenceManager
- Returns:
- An enumeration of primary keys.
load
public void load(Instance instance)
throws javax.ejb.EJBException,
javax.ejb.NoSuchEntityException
- Load the instance corresponding to
id into the
persistence store.
- Overrides:
load in class EntityPersistenceManager
- Parameters:
instance - the instance associated with the entity bean.- Returns:
- the instance.
remove
public void remove(Instance instance)
throws javax.ejb.EJBException,
javax.ejb.RemoveException
- Remove the instance from the persistence store.
- Overrides:
remove in class EntityPersistenceManager
- Parameters:
instance - the instance associated with the bean.
store
public void store(Instance instance)
throws javax.ejb.EJBException
- Store an instance into the persistence store.
- Overrides:
store in class EntityPersistenceManager
- Parameters:
instance - The instance.
Copyright � 2002 Macromedia Corporation. All Rights Reserved.