|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.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 java.lang.String |
CM_JNDI_SUFFIX
|
| Constructor Summary | |
JDOBean()
|
|
| Method Summary | |
void |
bindConnectionFactory(java.lang.String name,
javax.resource.cci.ConnectionFactory cm,
javax.naming.Context context)
|
javax.ejb.EJBException |
ejbException(java.lang.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(java.lang.String msg)
Log a message. |
abstract void |
ejbLog(java.lang.String msg,
java.lang.Throwable t,
java.io.PrintWriter writer)
Allows the implementor to log messages. |
java.lang.Object |
getById(java.lang.Object id)
|
javax.resource.cci.ConnectionFactory |
getConnectionFactory()
Obtain a ConnectionFactory. |
javax.resource.cci.ConnectionFactory |
getConnectionFactory(java.lang.String jndi)
|
javax.naming.Context |
getContext()
Return a lazily cached Context. |
java.lang.String |
getJNDIName()
Returns the name that we should check in JNDI for the bound ConnectionFactory. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Obtain a PersistenceManager. |
java.lang.Object |
lookup(java.lang.String name,
java.lang.Class narrow)
Utility method to lookup and narrow a name in JNDI. |
javax.resource.cci.ConnectionFactory |
lookupConnectionFactory(javax.naming.Context ctx)
|
void |
setConnectionFactory()
|
void |
setLogWriter(java.io.PrintWriter writer)
Set the PrintWriter for debug messages. |
void |
setPropertiesResource(java.lang.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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CM_JNDI_SUFFIX
| Constructor Detail |
public JDOBean()
| Method Detail |
public void setConnectionFactory()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void unsetConnectionFactory()
public javax.resource.cci.ConnectionFactory getConnectionFactory()
throws javax.jdo.JDOException,
javax.ejb.EJBException,
javax.naming.NamingException
javax.naming.NamingException - Whan a JNDI exception occures
javax.ejb.EJBException - For an EJB-related exception
javax.jdo.JDOException - For a JDO-related exceptionpublic java.lang.String getJNDIName()
public void setPropertiesResource(java.lang.String propertiesResource)
public void setLogWriter(java.io.PrintWriter writer)
writer - The PrintWriter to use for logging debugging messages
public javax.naming.Context getContext()
throws javax.naming.NamingException
javax.naming.NamingException
public javax.resource.cci.ConnectionFactory getConnectionFactory(java.lang.String jndi)
throws javax.jdo.JDOException,
javax.ejb.EJBException,
javax.naming.NamingException
javax.jdo.JDOException
javax.ejb.EJBException
javax.naming.NamingException
public javax.resource.cci.ConnectionFactory lookupConnectionFactory(javax.naming.Context ctx)
throws javax.naming.NamingException
javax.naming.NamingException
public void bindConnectionFactory(java.lang.String name,
javax.resource.cci.ConnectionFactory cm,
javax.naming.Context context)
throws javax.naming.NamingException
javax.naming.NamingException
public javax.jdo.PersistenceManager getPersistenceManager()
throws javax.ejb.EJBException
javax.ejb.EJBException
public java.lang.Object getById(java.lang.Object id)
throws javax.ejb.EJBException,
javax.jdo.JDOException
javax.ejb.EJBException
javax.jdo.JDOException
public java.lang.Object lookup(java.lang.String name,
java.lang.Class narrow)
throws javax.ejb.EJBException
name - the name to look upnarrow - the class to narrow the reference to
javax.ejb.EJBException - Wraps a NamingException.public javax.ejb.EJBException ejbException(java.lang.Exception e)
public void ejbLog(java.lang.String msg)
public abstract void ejbLog(java.lang.String msg,
java.lang.Throwable t,
java.io.PrintWriter writer)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||