|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DAOFactory
Method Summary | |
---|---|
void |
beginTransaction()
|
void |
closeSession()
|
void |
commitTransaction()
|
java.lang.Object |
createDAO(java.lang.String type)
Creates and initializes a data access object for use by the application. |
java.lang.Object |
createDAOFromClassName(java.lang.String className)
Creates and initializes a data access object for use by the application using the incoming class name. |
java.lang.Object |
createSettingsDAO()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
evictCache()
|
java.util.Properties |
getAppComponents()
Retrieves this factory's component settings. |
java.util.Properties |
getAppSettings()
Retrieves this factory's application settings; the current application settings for the system. |
java.lang.String |
getDatabaseDriver()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getDatabasePassword()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getDatabaseType()
|
java.lang.String |
getDatabaseURL()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getDatabaseUserName()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
javax.sql.DataSource |
getDataSource()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getDataSourceName()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.util.Properties |
getHibernateSettings()
Retrieves this factory's Hibernate settings. |
java.lang.String |
getJndiContext()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
javax.sql.DataSource |
getJndiDataSource()
Used in 1.x with LegacyDAOFactory , which is
replaced in 2.x with the
HibernateDAOFactory . |
java.lang.String |
getMaxActive()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getMaxIdle()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getMaxWait()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.util.StringTokenizer |
getModuleList()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getModuleListString()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getPaymentPrivateKeyFile()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getPaymentPublicKeyFile()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getRemoveAbandoned()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getRemoveAbandonedTimeout()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
org.hibernate.Session |
getSession()
|
org.hibernate.SessionFactory |
getSessionFactory()
Retrieves this factory's Hibernate SessionFactory . |
Settings |
getSettings()
Retrieves this factory's Settings instance. |
java.util.Map |
getSqlMap()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
java.lang.String |
getTwoWayKeyFile()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
initialize()
Initializes this DAOFactory . |
void |
initialize(java.lang.String settingsLocation)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
initializeDataSource()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
initializeSQLProperties()
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
rollbackTransaction()
|
void |
setAppComponents(java.util.Properties appComponents)
|
void |
setAppSettings(java.util.Properties appSettings)
|
void |
setDatabaseDriver(java.lang.String databaseDriver)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setDatabasePassword(java.lang.String databasePassword)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setDatabaseType(java.lang.String databaseType)
|
void |
setDatabaseURL(java.lang.String databaseURL)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setDatabaseUserName(java.lang.String databaseUserName)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setDataSource(javax.sql.DataSource dataSource)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setDataSourceName(java.lang.String dataSourceName)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setHibernateSettings(java.util.Properties hibernateSettings)
|
void |
setJndiContext(java.lang.String jndiContext)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setMaxActive(java.lang.String maxActive)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setMaxIdle(java.lang.String maxIdle)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setMaxWait(java.lang.String maxWait)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setModuleList(java.util.StringTokenizer moduleList)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setModuleListString(java.lang.String moduleList)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setPaymentPrivateKeyFile(java.lang.String paymentPrivateKeyFile)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setPaymentPublicKeyFile(java.lang.String paymentPublicKeyFile)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setRemoveAbandoned(java.lang.String removeAbandoned)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setRemoveAbandonedTimeout(java.lang.String removeAbandonedTimeout)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
void |
setSettings(Settings settings)
|
void |
setTwoWayKeyFile(java.lang.String twoWayKeyFile)
Deprecated. Used in 1.x with LegacyDAOFactory ,
which is replaced in 2.x with the
HibernateDAOFactory |
org.hibernate.Session |
startSession()
|
Method Detail |
---|
java.lang.String getModuleListString()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setModuleListString(java.lang.String moduleList)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.util.StringTokenizer getModuleList()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setModuleList(java.util.StringTokenizer moduleList)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
javax.sql.DataSource getDataSource()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDataSource(javax.sql.DataSource dataSource)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getDataSourceName()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDataSourceName(java.lang.String dataSourceName)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getJndiContext()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setJndiContext(java.lang.String jndiContext)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getDatabaseDriver()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDatabaseDriver(java.lang.String databaseDriver)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getDatabaseURL()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDatabaseURL(java.lang.String databaseURL)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getDatabaseUserName()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDatabaseUserName(java.lang.String databaseUserName)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getDatabasePassword()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setDatabasePassword(java.lang.String databasePassword)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getMaxIdle()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setMaxIdle(java.lang.String maxIdle)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getMaxActive()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setMaxActive(java.lang.String maxActive)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getMaxWait()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setMaxWait(java.lang.String maxWait)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getRemoveAbandoned()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setRemoveAbandoned(java.lang.String removeAbandoned)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getRemoveAbandonedTimeout()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setRemoveAbandonedTimeout(java.lang.String removeAbandonedTimeout)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getPaymentPrivateKeyFile()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setPaymentPrivateKeyFile(java.lang.String paymentPrivateKeyFile)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getPaymentPublicKeyFile()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setPaymentPublicKeyFile(java.lang.String paymentPublicKeyFile)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.String getTwoWayKeyFile()
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
void setTwoWayKeyFile(java.lang.String twoWayKeyFile)
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
javax.sql.DataSource getJndiDataSource() throws java.lang.Exception
LegacyDAOFactory
, which is
replaced in 2.x with the
HibernateDAOFactory
. Also used
in the 1.x to 2.x upgrade process (which is why it is not deprecated).
java.lang.Exception
java.util.Map getSqlMap() throws java.lang.Exception
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.Exception
void initializeDataSource() throws java.lang.Exception
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.Exception
void initializeSQLProperties() throws java.lang.Exception
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
java.lang.Exception
java.lang.Object createSettingsDAO() throws java.lang.Exception
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
null
if initialization failed.
java.lang.Exception
void initialize(java.lang.String settingsLocation) throws java.lang.Exception
LegacyDAOFactory
,
which is replaced in 2.x with the
HibernateDAOFactory
DAOFactory
using the settings defined in
the file located at the imcoming settingLocation
.
settingsLocation
- The location of a file containing database settings.
java.lang.Exception
java.lang.String getDatabaseType()
void setDatabaseType(java.lang.String databaseType)
Settings getSettings()
Settings
instance. The current
Settings
, containing various settings to be used by DAOs
created by this factory. This factory will pass the Settings
to every object it creates.
void setSettings(Settings settings)
java.util.Properties getAppComponents()
void setAppComponents(java.util.Properties appComponents)
java.util.Properties getAppSettings()
Settings
instance, which
stores settings drawn from the database.
void setAppSettings(java.util.Properties appSettings)
java.util.Properties getHibernateSettings()
void setHibernateSettings(java.util.Properties hibernateSettings)
org.hibernate.SessionFactory getSessionFactory()
SessionFactory
.
void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
void initialize() throws java.lang.Exception
DAOFactory
. Called by
BaseRequestProcessor
.
java.lang.Exception
java.lang.Object createDAO(java.lang.String type) throws java.lang.Exception
appSettings
property to look up the
fully-qualified class name of the requested data access object.
Immediately after instantiating the requested DAO, this factory passes its own properties to it so that the newly created object can use them to communicate with the rest of the application.
type
- A String
associated with the class name of the
data access object to be created.
null
if initialization failed.
java.lang.Exception
java.lang.Object createDAOFromClassName(java.lang.String className) throws java.lang.Exception
Immediately after instantiating the requested DAO, this factory passes its own properties to it so that the newly created object can use them to communicate with the rest of the application.
className
- A String
representing the class name of the
data access object to be created.
null
if initialization failed.
java.lang.Exception
org.hibernate.Session startSession()
org.hibernate.Session getSession()
void closeSession()
void beginTransaction()
void commitTransaction()
void rollbackTransaction()
void evictCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |