|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.jdbc.support.JdbcAccessor
org.springframework.orm.ojb.OjbAccessor
Base class for OJB-accessing classes, defining common properties like PBKey. Extends JdbcAccessor to inherit SQLException translation capabilities.
Not intended to be used directly. See PersistenceBrokerTemplate.
PersistenceBrokerTemplate| Constructor Summary | |
OjbAccessor()
|
|
| Method Summary | |
protected DataAccessException |
convertJdbcAccessException(java.sql.SQLException ex)
Convert the given SQLException to an appropriate exception from the org.springframework.dao hierarchy. |
DataAccessException |
convertOjbAccessException(org.apache.ojb.broker.PersistenceBrokerException ex)
Convert the given PersistenceBrokerException to an appropriate exception from the org.springframework.dao hierarchy. |
java.lang.String |
getJcdAlias()
Return the JDBC Connection Descriptor alias of the PersistenceBroker configuration to use. |
org.apache.ojb.broker.PBKey |
getPbKey()
Return the PBKey of the PersistenceBroker configuration used. |
void |
setJcdAlias(java.lang.String jcdAlias)
Set the JDBC Connection Descriptor alias of the PersistenceBroker configuration to use. |
void |
setPbKey(org.apache.ojb.broker.PBKey pbKey)
Set the PBKey of the PersistenceBroker configuration to use. |
| Methods inherited from class org.springframework.jdbc.support.JdbcAccessor |
afterPropertiesSet, getDataSource, getExceptionTranslator, setDataSource, setExceptionTranslator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OjbAccessor()
| Method Detail |
public void setJcdAlias(java.lang.String jcdAlias)
public java.lang.String getJcdAlias()
public void setPbKey(org.apache.ojb.broker.PBKey pbKey)
public org.apache.ojb.broker.PBKey getPbKey()
public DataAccessException convertOjbAccessException(org.apache.ojb.broker.PersistenceBrokerException ex)
ex - PersistenceBrokerException that occured
JdbcAccessor.setExceptionTranslator(org.springframework.jdbc.support.SQLExceptionTranslator)protected DataAccessException convertJdbcAccessException(java.sql.SQLException ex)
Note that SQLException can just occur here when callback code performs direct JDBC access via ConnectionManagerIF.getConnection().
ex - SQLException that occured
JdbcAccessor.setExceptionTranslator(org.springframework.jdbc.support.SQLExceptionTranslator),
ConnectionManagerIF.getConnection()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||