|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.support.JdbcAccessor org.springframework.orm.ojb.OjbAccessor
public class 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
Field Summary |
---|
Fields inherited from class org.springframework.jdbc.support.JdbcAccessor |
---|
logger |
Constructor Summary | |
---|---|
OjbAccessor()
|
Method Summary | |
---|---|
protected DataAccessException |
convertJdbcAccessException(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. |
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(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, isLazyInit, setDatabaseProductName, setDataSource, setExceptionTranslator, setLazyInit |
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(String jcdAlias)
public 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(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 |