|
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
Base JDO-aware EnterpriseBean class. Its behaviour is discussed in chapter 16 of the JDO 1.0 specification.
JDOEntityBean,
JDOSessionBean, Serialized Form| Field Summary | |
static String |
CM_JNDI_SUFFIX
|
| Constructor Summary | |
JDOBean()
|
|
| Method Summary | |
void |
bindConnectionFactory(String name,
javax.resource.cci.ConnectionFactory cm,
Context context)
|
javax.ejb.EJBException |
ejbException(Exception e)
Since JDO Exceptions' throwable list is transient, and since some application servers don't send the entire exception back to the client, it is very useful for debugging if the client can have the entire exception message. |
void |
ejbLog(String msg)
|
abstract void |
ejbLog(String msg,
Throwable t,
PrintWriter writer)
Allows the implementor to log messages. |
Object |
getById(Object id)
|
javax.resource.cci.ConnectionFactory |
getConnectionFactory()
Obtain a ConnectionFactory. |
javax.resource.cci.ConnectionFactory |
getConnectionFactory(String jndi)
|
Context |
getContext()
Return a lazily cached Context. |
String |
getJNDIName()
Returns the name that we should check in JNDI for the bound ConnectionFactory. |
PersistenceManager |
getPersistenceManager()
Obtain a PersistenceManagerFactory from JNDI. |
Object |
lookup(String name,
Class narrow)
Utility method to lookup and narrow a name in JNDI. |
javax.resource.cci.ConnectionFactory |
lookupConnectionFactory(Context ctx)
|
void |
setConnectionFactory()
|
void |
setLogWriter(PrintWriter writer)
Set the PrintWriter for debug messages. |
void |
setPropertiesResource(String propertiesResource)
In a typical EJB application, the ConnectionFactory will be already bound externally (using its resource adaptor, a startup class, or an MBean). |
void |
unsetConnectionFactory()
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final String CM_JNDI_SUFFIX
| Constructor Detail |
public JDOBean()
| Method Detail |
public void setConnectionFactory()
throws NamingException
public void unsetConnectionFactory()
public javax.resource.cci.ConnectionFactory getConnectionFactory()
throws JDOException,
javax.ejb.EJBException,
NamingException
NamingException - Whan a JNDI exception occuresjavax.ejb.EJBException - For an EJB-related exceptionJDOException - For a JDO-related exceptionpublic String getJNDIName()
public void setPropertiesResource(String propertiesResource)
public void setLogWriter(PrintWriter writer)
writer - The PrintWriter to use for logging debugging messages
public Context getContext()
throws NamingException
public javax.resource.cci.ConnectionFactory getConnectionFactory(String jndi)
throws JDOException,
javax.ejb.EJBException,
NamingException
public javax.resource.cci.ConnectionFactory lookupConnectionFactory(Context ctx)
throws NamingException
public void bindConnectionFactory(String name,
javax.resource.cci.ConnectionFactory cm,
Context context)
throws NamingException
public PersistenceManager getPersistenceManager()
throws javax.ejb.EJBException
PersistenceManagerFactory.getPersistenceManager() method.
public Object getById(Object id)
throws javax.ejb.EJBException,
JDOException
public Object lookup(String name,
Class narrow)
throws javax.ejb.EJBException
name - the name to look upnarrow - the class to narrow the reference tojavax.ejb.EJBException - Wraps a NamingException.public javax.ejb.EJBException ejbException(Exception e)
public void ejbLog(String msg)
public abstract void ejbLog(String msg,
Throwable t,
PrintWriter writer)
|
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 | ||||||||