|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAOInterface
A parent interface for all of the other interfaces in the data access layer.
The methods provided allow implementations to communicate with other elements
of the application. In particular, retrieve settings (using
getSettings()
), retrieve database connections (using
getConnection()
), retrieve SQL statements (using
getSqlMap()
), and create other data access objects (using
getDaoFactory()
).
Method Summary | |
---|---|
boolean |
deleteObject(java.lang.Object object,
boolean commit)
|
java.util.Properties |
getAppComponents()
Retrieves this factory's component settings. |
java.util.Properties |
getAppSettings()
Retrieves this factory's application settings. |
java.sql.Connection |
getConnection()
Retrieves a Connection to the application's
DataSource . |
DAOFactory |
getDaoFactory()
Retrieves the application's DAOFactory . |
DAOUtils |
getDAOUtils()
Retrieves a utility object that provides useful methods for daos. |
javax.sql.DataSource |
getDataSource()
Retrieves the application's DataSource . |
Settings |
getSettings()
Retrieves the Settings previously set for this data access
object. |
java.util.Map |
getSqlMap()
Retrieves a Map of the SQL statements used by the
application. |
void |
initialize(java.util.Map transferMap)
Initializes this data access object by copying incoming parameters into its properties. |
java.lang.Object |
insertObject(java.lang.Object object,
boolean commit)
|
java.util.Collection |
loadAll()
|
java.util.Collection |
loadAll(org.hibernate.Filter filter)
|
java.lang.Object |
loadObject(java.lang.Object object)
|
void |
setAppComponents(java.util.Properties appComponents)
|
void |
setAppSettings(java.util.Properties appSettings)
|
void |
setConnection(java.sql.Connection connection)
|
void |
setDaoFactory(DAOFactory daoFactory)
|
void |
setDAOUtils(DAOUtils daoUtils)
|
void |
setDataSource(javax.sql.DataSource dataSource)
|
void |
setSettings(Settings settings)
|
void |
setSqlMap(java.util.Map sqlMap)
|
java.lang.Object |
updateObject(java.lang.Object object,
boolean commit)
|
Method Detail |
---|
void initialize(java.util.Map transferMap) throws java.lang.Exception
DAOFactory
after object
creation to copy the application's
DAOFactory
and
Settings
into the new object. The sqlMap
and
dataSource
properties are also copied from the
DAOFactory
.
transferMap
- A Map
containing objects such as the
application's DAOFactory
and
Settings
.
java.lang.Exception
Settings getSettings()
Settings
previously set for this data access
object.
Settings
object that represents various settings
for the system.void setSettings(Settings settings)
java.util.Properties getAppComponents()
void setAppComponents(java.util.Properties appComponents)
java.util.Properties getAppSettings()
SettingsBean
, which
stores settings drawn from the database.
void setAppSettings(java.util.Properties appSettings)
java.sql.Connection getConnection()
Connection
to the application's
DataSource
.
Connection
to the application's
DataSource
.void setConnection(java.sql.Connection connection)
javax.sql.DataSource getDataSource()
DataSource
.
DataSource
.void setDataSource(javax.sql.DataSource dataSource)
DAOFactory getDaoFactory()
DAOFactory
.
DAOFactory
.void setDaoFactory(DAOFactory daoFactory)
java.util.Map getSqlMap()
Map
of the SQL statements used by the
application.
Map
of the SQL statements used by the
application.void setSqlMap(java.util.Map sqlMap)
DAOUtils getDAOUtils()
void setDAOUtils(DAOUtils daoUtils)
java.lang.Object loadObject(java.lang.Object object) throws java.lang.Exception
java.lang.Exception
java.lang.Object updateObject(java.lang.Object object, boolean commit) throws java.lang.Exception
java.lang.Exception
boolean deleteObject(java.lang.Object object, boolean commit) throws java.lang.Exception
java.lang.Exception
java.lang.Object insertObject(java.lang.Object object, boolean commit) throws java.lang.Exception
java.lang.Exception
java.util.Collection loadAll() throws java.lang.Exception
java.lang.Exception
java.util.Collection loadAll(org.hibernate.Filter filter) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |