|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.ee.JDOBean
|
+--com.solarmetric.kodo.ee.JDOEntityBean
Base class that can be used to implement a BMP Entity Bean with a wrapped JDO persistent instance. The behaviour of this wrapper is outlined in section 16.2.1 of the JDO 1.0 specification.
| Field Summary | |
protected javax.ejb.EntityContext |
ctx
|
| Fields inherited from class com.solarmetric.kodo.ee.JDOBean |
CM_JNDI_SUFFIX |
| Constructor Summary | |
JDOEntityBean()
|
|
| Method Summary | |
PersistenceCapable |
createPersistent()
Create a new instance of the PersistenceCapable. |
void |
ejbActivate()
From section 16.2.1 of the JDO 1.0 specification: The ejbActivate method acquires a PersistenceManager from the ConnectionFactory, and finds the JDO instance with the specific primary key by calling getObjectById on the PersistenceManager instance. |
Object |
ejbCreate()
From section 16.2.1 of the JDO 1.0 specification: The ejbCreate method creates a new instance of the corresponding JDO class corresponding to the primary key value, sets the jdoInstance variable, and calls makePersistent with the instance as a parameter. |
Object |
ejbFindByPrimaryKey(Object pk)
Locate an instanced based on the Primary Key. |
Collection |
ejbFindByQuery(String queryString)
Find a Collection of the persistent instances based on the JDOQL query. |
void |
ejbLoad()
From section 16.2.1 of the JDO 1.0 specification: The ejbLoad and ejbStore methods are used to acquire and close the PersistenceManager. |
void |
ejbLog(String msg,
Throwable t,
PrintWriter logWriter)
Allows the implementor to log messages. |
void |
ejbPassivate()
From section 16.2.1 of the JDO 1.0 specification: The ejbPassivate method sets the jdoInstance to null and closes the PersistenceManager. |
void |
ejbPostCreate()
From section 16.2.1 of the JDO 1.0 specification: An ejbPostCreate method is required for each ejbCreate method. |
void |
ejbRemove()
From section 16.2.1 of the JDO 1.0 specification: The ejbRemove method calls deletePersistent with the JDO instance as a parameter. |
void |
ejbStore()
|
Serializable |
getPersistenceCapableInstance()
Return the wrapped PersistenceCapable object for this bean instance. |
abstract Class |
getPersistentClass()
|
void |
setEntityContext(javax.ejb.EntityContext ctx)
From section 16.2.1 of the JDO 1.0 specification: The setEntityContext method copies the value of the EntityContext parameter to the instance variable entityContext,looksupthe ConnectionFactory using JNDI, and sets it into the persistenceManagerFactory variable. |
void |
unsetEntityContext()
From section 16.2.1 of the JDO 1.0 specification: The unsetEntityContext method clears the entityContext variable and the persistenceManagerFactory variable. |
| Methods inherited from class com.solarmetric.kodo.ee.JDOBean |
bindConnectionFactory, ejbException, ejbLog, getById, getConnectionFactory, getConnectionFactory, getContext, getJNDIName, getPersistenceManager, lookup, lookupConnectionFactory, setConnectionFactory, setLogWriter, setPropertiesResource, unsetConnectionFactory |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected javax.ejb.EntityContext ctx
| Constructor Detail |
public JDOEntityBean()
| Method Detail |
public abstract Class getPersistentClass()
public PersistenceCapable createPersistent()
throws InstantiationException,
IllegalAccessException
public Serializable getPersistenceCapableInstance()
public Object ejbCreate()
throws javax.ejb.EJBException,
RemoteException
public void ejbPostCreate()
throws javax.ejb.EJBException,
RemoteException
public void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.EntityBean
public void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.EntityBean
public void ejbRemove()
throws javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.EntityBean
public void ejbLoad()
throws javax.ejb.EJBException,
RemoteException
ejbLoad in interface javax.ejb.EntityBean
public void ejbStore()
throws javax.ejb.EJBException,
RemoteException
ejbStore in interface javax.ejb.EntityBean
public void setEntityContext(javax.ejb.EntityContext ctx)
throws javax.ejb.EJBException
setEntityContext in interface javax.ejb.EntityBean
public void unsetEntityContext()
throws javax.ejb.EJBException,
RemoteException
unsetEntityContext in interface javax.ejb.EntityBean
public Object ejbFindByPrimaryKey(Object pk)
throws javax.ejb.ObjectNotFoundException,
javax.ejb.FinderException
public Collection ejbFindByQuery(String queryString)
throws javax.ejb.FinderException
public void ejbLog(String msg,
Throwable t,
PrintWriter logWriter)
JDOBeanejbLog in class JDOBean
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||