|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectasit.moa.moazs.notifier._BaseRootDAO
| Field Summary | |
protected static ThreadLocal |
mappedSessions
|
protected static net.sf.hibernate.SessionFactory |
sessionFactory
|
protected static Map |
sessionFactoryMap
|
protected static ThreadLocal |
sessions
|
| Constructor Summary | |
_BaseRootDAO()
|
|
| Method Summary | |
net.sf.hibernate.Transaction |
beginTransaction(net.sf.hibernate.Session s)
Begin the transaction related to the session |
static void |
closeCurrentThreadSessions()
Close all sessions for the current thread |
void |
closeSession(net.sf.hibernate.Session session)
Close the session |
void |
commitTransaction(net.sf.hibernate.Transaction t)
Commit the given transaction |
net.sf.hibernate.Session |
createNewSession()
Return a new Session object that must be closed when the work has been completed. |
protected void |
delete(Object obj)
Used by the base DAO classes but here for your modification Remove a persistent instance from the datastore. |
protected void |
delete(Object obj,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Remove a persistent instance from the datastore. |
protected int |
delete(net.sf.hibernate.Query query)
Delete all objects returned by the query |
protected int |
delete(net.sf.hibernate.Query query,
net.sf.hibernate.Session s)
Delete all objects returned by the query |
List |
findAll()
Return all objects related to the implementation of this DAO with no filter. |
List |
findAll(net.sf.hibernate.expression.Order defaultOrder)
Return all objects related to the implementation of this DAO with no filter. |
List |
findAll(net.sf.hibernate.Session s)
Return all objects related to the implementation of this DAO with no filter. |
List |
findAll(net.sf.hibernate.Session s,
net.sf.hibernate.expression.Order defaultOrder)
Return all objects related to the implementation of this DAO with no filter. |
protected List |
findFiltered(net.sf.hibernate.Session s,
String propName,
Object filter,
net.sf.hibernate.expression.Order order)
Return all objects related to the implementation of this DAO with a filter. |
protected List |
findFiltered(String propName,
Object filter)
Return all objects related to the implementation of this DAO with a filter. |
protected List |
findFiltered(String propName,
Object filter,
net.sf.hibernate.expression.Order order)
Return all objects related to the implementation of this DAO with a filter. |
protected Object |
get(Class refClass,
Serializable key)
Used by the base DAO classes but here for your modification Get object matching the given key and return it. |
protected Object |
get(Class refClass,
Serializable key,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Get object matching the given key and return it. |
String |
getConfigurationFileName()
Return the name of the configuration file to be used with this DAO or null if default |
protected net.sf.hibernate.expression.Order |
getDefaultOrder()
|
protected net.sf.hibernate.Query |
getNamedQuery(String name)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Map params)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Map params,
net.sf.hibernate.Session s)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Serializable param)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Serializable[] params)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Serializable[] params,
net.sf.hibernate.Session s)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
Serializable param,
net.sf.hibernate.Session s)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getNamedQuery(String name,
net.sf.hibernate.Session s)
Obtain an instance of Query for a named query string defined in the mapping file. |
static net.sf.hibernate.cfg.Configuration |
getNewConfiguration(String configFileName)
Return a new Configuration to use |
net.sf.hibernate.Query |
getQuery(String queryStr)
Execute a query. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Map params)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Map params,
net.sf.hibernate.Session s)
Obtain an instance of Query for a named query string defined in the mapping file. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Serializable param)
Execute a query. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Serializable[] params)
Execute a query. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Serializable[] params,
net.sf.hibernate.Session s)
Execute a query but use the session given instead of creating a new one. |
protected net.sf.hibernate.Query |
getQuery(String queryStr,
Serializable param,
net.sf.hibernate.Session s)
Execute a query but use the session given instead of creating a new one. |
net.sf.hibernate.Query |
getQuery(String queryStr,
net.sf.hibernate.Session s)
Execute a query but use the session given instead of creating a new one. |
protected abstract Class |
getReferenceClass()
Return the specific Object class that will be used for class-specific implementation of this DAO. |
net.sf.hibernate.Session |
getSession()
Return a new Session object that must be closed when the work has been completed. |
protected net.sf.hibernate.SessionFactory |
getSessionFactory()
Return the SessionFactory that is to be used by these DAOs. |
protected net.sf.hibernate.SessionFactory |
getSessionFactory(String configFile)
|
static void |
initialize()
Configure the session factory by reading hibernate config file |
static void |
initialize(String configFileName)
Configure the session factory by reading hibernate config file |
static void |
initialize(String configFileName,
net.sf.hibernate.cfg.Configuration configuration)
|
protected Object |
load(Class refClass,
Serializable key)
Used by the base DAO classes but here for your modification Load object matching the given key and return it. |
protected Object |
load(Class refClass,
Serializable key,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Load object matching the given key and return it. |
protected void |
refresh(Object obj,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Re-read the state of the given instance from the underlying database. |
protected Serializable |
save(Object obj)
Used by the base DAO classes but here for your modification Persist the given transient instance, first assigning a generated identifier. |
protected Serializable |
save(Object obj,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Persist the given transient instance, first assigning a generated identifier. |
protected void |
saveOrUpdate(Object obj)
Used by the base DAO classes but here for your modification Either save() or update() the given instance, depending upon the value of its identifier property. |
protected void |
saveOrUpdate(Object obj,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Either save() or update() the given instance, depending upon the value of its identifier property. |
protected static void |
setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
Set the session factory |
protected static void |
setSessionFactory(String configFileName,
net.sf.hibernate.SessionFactory sf)
Set the session factory |
protected void |
update(Object obj)
Used by the base DAO classes but here for your modification Update the persistent state associated with the given identifier. |
protected void |
update(Object obj,
net.sf.hibernate.Session s)
Used by the base DAO classes but here for your modification Update the persistent state associated with the given identifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Map sessionFactoryMap
protected static net.sf.hibernate.SessionFactory sessionFactory
protected static ThreadLocal mappedSessions
protected static ThreadLocal sessions
| Constructor Detail |
public _BaseRootDAO()
| Method Detail |
public static void initialize()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public static void initialize(String configFileName)
throws net.sf.hibernate.HibernateException
configFileName - the name of the configuration file
net.sf.hibernate.HibernateException
public static void initialize(String configFileName,
net.sf.hibernate.cfg.Configuration configuration)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateExceptionprotected static void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
protected static void setSessionFactory(String configFileName,
net.sf.hibernate.SessionFactory sf)
protected net.sf.hibernate.SessionFactory getSessionFactory()
protected net.sf.hibernate.SessionFactory getSessionFactory(String configFile)
public net.sf.hibernate.Session getSession()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public net.sf.hibernate.Session createNewSession()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public static void closeCurrentThreadSessions()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public void closeSession(net.sf.hibernate.Session session)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public net.sf.hibernate.Transaction beginTransaction(net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public void commitTransaction(net.sf.hibernate.Transaction t)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateExceptionpublic static net.sf.hibernate.cfg.Configuration getNewConfiguration(String configFileName)
public String getConfigurationFileName()
protected abstract Class getReferenceClass()
protected Object get(Class refClass,
Serializable key)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected Object get(Class refClass,
Serializable key,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected Object load(Class refClass,
Serializable key)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected Object load(Class refClass,
Serializable key,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public List findAll()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public List findAll(net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
s - the Session
net.sf.hibernate.HibernateException
public List findAll(net.sf.hibernate.expression.Order defaultOrder)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public List findAll(net.sf.hibernate.Session s,
net.sf.hibernate.expression.Order defaultOrder)
throws net.sf.hibernate.HibernateException
s - the Session
net.sf.hibernate.HibernateException
protected List findFiltered(String propName,
Object filter)
throws net.sf.hibernate.HibernateException
propName - the name of the property to use for filteringfilter - the value of the filter
net.sf.hibernate.HibernateException
protected List findFiltered(String propName,
Object filter,
net.sf.hibernate.expression.Order order)
throws net.sf.hibernate.HibernateException
propName - the name of the property to use for filteringfilter - the value of the filter
net.sf.hibernate.HibernateException
protected List findFiltered(net.sf.hibernate.Session s,
String propName,
Object filter,
net.sf.hibernate.expression.Order order)
throws net.sf.hibernate.HibernateException
s - the SessionpropName - the name of the property to use for filteringfilter - the value of the filter
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externally
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallys - the Session
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Serializable param)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparam - the first parameter to set
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Serializable param,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparam - the first parameter to sets - the Session
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Serializable[] params)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparams - the parameter array
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Serializable[] params,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparams - the parameter array
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Map params)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparams - the parameter Map
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getNamedQuery(String name,
Map params,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
name - the name of a query defined externallyparams - the parameter Map
net.sf.hibernate.HibernateException
public net.sf.hibernate.Query getQuery(String queryStr)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query language
net.sf.hibernate.HibernateException
public net.sf.hibernate.Query getQuery(String queryStr,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query language
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Serializable param)
throws net.sf.hibernate.HibernateException
queryStr - the name of a query defined externallyparam - the first parameter to set
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Serializable param,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query languageparam - the first parameter to set
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Serializable[] params)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query languageparams - the parameter array
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Serializable[] params,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query languageparams - the parameter array
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Map params)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query languageparams - the parameter Map
net.sf.hibernate.HibernateException
protected net.sf.hibernate.Query getQuery(String queryStr,
Map params,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
queryStr - a query expressed in Hibernate's query languageparams - the parameter Map
net.sf.hibernate.HibernateExceptionprotected net.sf.hibernate.expression.Order getDefaultOrder()
protected Serializable save(Object obj)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected Serializable save(Object obj,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void saveOrUpdate(Object obj)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void saveOrUpdate(Object obj,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void update(Object obj)
throws net.sf.hibernate.HibernateException
obj - a transient instance containing updated state
net.sf.hibernate.HibernateException
protected void update(Object obj,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
obj - a transient instance containing updated states - the Session
net.sf.hibernate.HibernateException
protected int delete(net.sf.hibernate.Query query)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected int delete(net.sf.hibernate.Query query,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void delete(Object obj)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void delete(Object obj,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
protected void refresh(Object obj,
net.sf.hibernate.Session s)
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||