|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
getSettingsBean()
), retrieve database connections (using
getConnection()
), retrieve SQL statements (using
getSqlMap()
), and create other data access objects (using
getDaoFactory()
).
Method Summary | |
java.sql.Connection |
getConnection()
Retrieves a Connection to the application's
DataSource . |
DAOFactory |
getDaoFactory()
Retrieves the application's DAOFactory . |
javax.sql.DataSource |
getDataSource()
Retrieves the application's DataSource . |
SettingsBean |
getSettingsBean()
Retrieves the SettingsBean 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. |
void |
setConnection(java.sql.Connection connection)
|
void |
setDaoFactory(DAOFactory daoFactory)
|
void |
setDataSource(javax.sql.DataSource dataSource)
|
void |
setSettingsBean(SettingsBean settingsBean)
|
void |
setSqlMap(java.util.Map sqlMap)
|
Method Detail |
public void initialize(java.util.Map transferMap) throws java.lang.Exception
DAOFactory
after object
creation to copy the application's
DAOFactory
and
SettingsBean
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
SettingsBean
.
java.lang.Exception
public SettingsBean getSettingsBean()
SettingsBean
previously set for this data
access object.
SettingsBean
object that represents various
settings for the system.public void setSettingsBean(SettingsBean settingsBean)
public java.sql.Connection getConnection()
Connection
to the application's
DataSource
.
Connection
to the application's
DataSource
.public void setConnection(java.sql.Connection connection)
public javax.sql.DataSource getDataSource()
DataSource
.
DataSource
.public void setDataSource(javax.sql.DataSource dataSource)
public DAOFactory getDaoFactory()
DAOFactory
.
DAOFactory
.public void setDaoFactory(DAOFactory daoFactory)
public java.util.Map getSqlMap()
Map
of the SQL statements used by the
application.
Map
of the SQL statements used by the
application.public void setSqlMap(java.util.Map sqlMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |