|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jdbc.support.JdbcAccessor
Base class for JdbcTemplate and other JDBC-accessing DAO helpers, defining common properties like exception translator.
Not intended to be used directly. See JdbcTemplate.
JdbcTemplate
Constructor Summary | |
JdbcAccessor()
|
Method Summary | |
void |
afterPropertiesSet()
Eagerly initialize the exception translator, creating a default one for the specified DataSource if none set. |
javax.sql.DataSource |
getDataSource()
Return the DataSource used by this template. |
SQLExceptionTranslator |
getExceptionTranslator()
Return the exception translator for this instance. |
void |
setDataSource(javax.sql.DataSource dataSource)
Set the JDBC DataSource to obtain connections from. |
void |
setExceptionTranslator(SQLExceptionTranslator exceptionTranslator)
Set the exception translator for this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcAccessor()
Method Detail |
public void setDataSource(javax.sql.DataSource dataSource)
public javax.sql.DataSource getDataSource()
public void setExceptionTranslator(SQLExceptionTranslator exceptionTranslator)
exceptionTranslator
- exception translatorSQLErrorCodeSQLExceptionTranslator
,
SQLStateSQLExceptionTranslator
public SQLExceptionTranslator getExceptionTranslator()
public void afterPropertiesSet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |