asit.moa.moazs.notifier
Class BaseConfigDAO

java.lang.Object
  extended byasit.moa.moazs.notifier._BaseRootDAO
      extended byasit.moa.moazs.notifier.dao._RootDAO
          extended byasit.moa.moazs.notifier.BaseConfigDAO
Direct Known Subclasses:
ConfigDAO

public abstract class BaseConfigDAO
extends _RootDAO

This is an automatically generated DAO class which should not be edited.


Field Summary
static ConfigDAO instance
           
 
Fields inherited from class asit.moa.moazs.notifier._BaseRootDAO
mappedSessions, sessionFactory, sessionFactoryMap, sessions
 
Constructor Summary
BaseConfigDAO()
           
 
Method Summary
 Config cast(Object object)
          Cast the object as a asit.moa.moazs.notifier.Config
 void delete(Config config)
          Remove a persistent instance from the datastore.
 void delete(Config config, net.sf.hibernate.Session s)
          Remove a persistent instance from the datastore.
 void delete(long id)
          Remove a persistent instance from the datastore.
 void delete(long id, net.sf.hibernate.Session s)
          Remove a persistent instance from the datastore.
 Config get(long key)
           
 Config get(long key, net.sf.hibernate.Session s)
           
 net.sf.hibernate.expression.Order getDefaultOrder()
           
static ConfigDAO getInstance()
          Return a singleton of the DAO
 Class getReferenceClass()
          Return the specific Object class that will be used for class-specific implementation of this DAO.
 Config load(long key)
           
 Config load(long key, net.sf.hibernate.Session s)
           
 Config loadInitialize(long key, net.sf.hibernate.Session s)
           
 void refresh(Config config, net.sf.hibernate.Session s)
          Re-read the state of the given instance from the underlying database.
 Long save(Config config)
          Persist the given transient instance, first assigning a generated identifier.
 Long save(Config config, net.sf.hibernate.Session s)
          Persist the given transient instance, first assigning a generated identifier.
 void saveOrUpdate(Config config)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void saveOrUpdate(Config config, net.sf.hibernate.Session s)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void update(Config config)
          Update the persistent state associated with the given identifier.
 void update(Config config, net.sf.hibernate.Session s)
          Update the persistent state associated with the given identifier.
 
Methods inherited from class asit.moa.moazs.notifier._BaseRootDAO
beginTransaction, closeCurrentThreadSessions, closeSession, commitTransaction, createNewSession, delete, delete, delete, delete, findAll, findAll, findAll, findAll, findFiltered, findFiltered, findFiltered, get, get, getConfigurationFileName, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, getNewConfiguration, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getQuery, getSession, getSessionFactory, getSessionFactory, initialize, initialize, initialize, load, load, refresh, save, save, saveOrUpdate, saveOrUpdate, setSessionFactory, setSessionFactory, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static ConfigDAO instance
Constructor Detail

BaseConfigDAO

public BaseConfigDAO()
Method Detail

getInstance

public static ConfigDAO getInstance()
Return a singleton of the DAO


getReferenceClass

public Class getReferenceClass()
Description copied from class: _BaseRootDAO
Return the specific Object class that will be used for class-specific implementation of this DAO.

Specified by:
getReferenceClass in class _BaseRootDAO
Returns:
the reference Class

getDefaultOrder

public net.sf.hibernate.expression.Order getDefaultOrder()
Overrides:
getDefaultOrder in class _BaseRootDAO

cast

public Config cast(Object object)
Cast the object as a asit.moa.moazs.notifier.Config


get

public Config get(long key)
           throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

get

public Config get(long key,
                  net.sf.hibernate.Session s)
           throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

load

public Config load(long key)
            throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

load

public Config load(long key,
                   net.sf.hibernate.Session s)
            throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadInitialize

public Config loadInitialize(long key,
                             net.sf.hibernate.Session s)
                      throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

save

public Long save(Config config)
          throws net.sf.hibernate.HibernateException
Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.)

Parameters:
config - a transient instance of a persistent class
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

save

public Long save(Config config,
                 net.sf.hibernate.Session s)
          throws net.sf.hibernate.HibernateException
Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.) Use the Session given.

Parameters:
config - a transient instance of a persistent class
s - the Session
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

public void saveOrUpdate(Config config)
                  throws net.sf.hibernate.HibernateException
Either save() or update() the given instance, depending upon the value of its identifier property. By default the instance is always saved. This behaviour may be adjusted by specifying an unsaved-value attribute of the identifier property mapping.

Parameters:
config - a transient instance containing new or updated state
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

public void saveOrUpdate(Config config,
                         net.sf.hibernate.Session s)
                  throws net.sf.hibernate.HibernateException
Either save() or update() the given instance, depending upon the value of its identifier property. By default the instance is always saved. This behaviour may be adjusted by specifying an unsaved-value attribute of the identifier property mapping. Use the Session given.

Parameters:
config - a transient instance containing new or updated state.
s - the Session.
Throws:
net.sf.hibernate.HibernateException

update

public void update(Config config)
            throws net.sf.hibernate.HibernateException
Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent instance with the same identifier in the current session.

Parameters:
config - a transient instance containing updated state
Throws:
net.sf.hibernate.HibernateException

update

public void update(Config config,
                   net.sf.hibernate.Session s)
            throws net.sf.hibernate.HibernateException
Update the persistent state associated with the given identifier. An exception is thrown if there is a persistent instance with the same identifier in the current session. Use the Session given.

Parameters:
config - a transient instance containing updated state
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(long id)
            throws net.sf.hibernate.HibernateException
Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving Session or a transient instance with an identifier associated with existing persistent state.

Parameters:
id - the instance ID to be removed
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(long id,
                   net.sf.hibernate.Session s)
            throws net.sf.hibernate.HibernateException
Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving Session or a transient instance with an identifier associated with existing persistent state. Use the Session given.

Parameters:
id - the instance ID to be removed
s - the Session
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(Config config)
            throws net.sf.hibernate.HibernateException
Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving Session or a transient instance with an identifier associated with existing persistent state.

Parameters:
config - the instance to be removed
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(Config config,
                   net.sf.hibernate.Session s)
            throws net.sf.hibernate.HibernateException
Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving Session or a transient instance with an identifier associated with existing persistent state. Use the Session given.

Parameters:
config - the instance to be removed
s - the Session
Throws:
net.sf.hibernate.HibernateException

refresh

public void refresh(Config config,
                    net.sf.hibernate.Session s)
             throws net.sf.hibernate.HibernateException
Re-read the state of the given instance from the underlying database. It is inadvisable to use this to implement long-running sessions that span many business tasks. This method is, however, useful in certain special circumstances. For example

Throws:
net.sf.hibernate.HibernateException


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.