|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.support.SimpleDaoSupport
public abstract class SimpleDaoSupport
Replacement for Spring's SimpleJdbcDaoSupport that provides some DAO methods. This could be rolled into the
BaseJdbcDao (the only extender) but this mirrors the Spring hierarchy so should be left as is.
NOTE: If you are using the Spring type wiring in Java, initialize() should be called after all of the
set methods. In Spring XML, init-method="initialize" should be used.
| Field Summary | |
|---|---|
protected DatabaseAccess |
databaseAccess
|
protected DatabaseType |
databaseType
|
| Constructor Summary | |
|---|---|
protected |
SimpleDaoSupport()
Constructor for Spring type wiring if you are using the set methods. |
protected |
SimpleDaoSupport(DatabaseType databaseType)
|
protected |
SimpleDaoSupport(DatabaseType databaseType,
DataSource dataSource)
Constructor if you have the dataSource already. |
| Method Summary | |
|---|---|
void |
initialize()
If you are using the Spring type wiring, this should be called after all of the set methods. |
void |
setDatabaseType(DatabaseType databaseType)
Used if you want to wire the Dao with spring. |
void |
setDataSource(DataSource dataSource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DatabaseType databaseType
protected DatabaseAccess databaseAccess
| Constructor Detail |
|---|
protected SimpleDaoSupport()
protected SimpleDaoSupport(DatabaseType databaseType)
protected SimpleDaoSupport(DatabaseType databaseType,
DataSource dataSource)
throws SQLException
SQLException| Method Detail |
|---|
public void initialize()
throws SQLException
SQLExceptionpublic void setDatabaseType(DatabaseType databaseType)
#BaseJdbcDao(DatabaseType, Class) constructor. This must be called before initialize().
public void setDataSource(DataSource dataSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||