asit.moa.moazs.notifier
Class BaseLogEntryDAO

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

public abstract class BaseLogEntryDAO
extends _RootDAO

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


Field Summary
static LogEntryDAO instance
           
 
Fields inherited from class asit.moa.moazs.notifier._BaseRootDAO
mappedSessions, sessionFactory, sessionFactoryMap, sessions
 
Constructor Summary
BaseLogEntryDAO()
           
 
Method Summary
 LogEntry cast(Object object)
          Cast the object as a asit.moa.moazs.notifier.LogEntry
 void delete(LogEntry logEntry)
          Remove a persistent instance from the datastore.
 void delete(LogEntry logEntry, 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.
 LogEntry get(long key)
           
 LogEntry get(long key, net.sf.hibernate.Session s)
           
 net.sf.hibernate.expression.Order getDefaultOrder()
           
static LogEntryDAO 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.
 LogEntry load(long key)
           
 LogEntry load(long key, net.sf.hibernate.Session s)
           
 LogEntry loadInitialize(long key, net.sf.hibernate.Session s)
           
 void refresh(LogEntry logEntry, net.sf.hibernate.Session s)
          Re-read the state of the given instance from the underlying database.
 Long save(LogEntry logEntry)
          Persist the given transient instance, first assigning a generated identifier.
 Long save(LogEntry logEntry, net.sf.hibernate.Session s)
          Persist the given transient instance, first assigning a generated identifier.
 void saveOrUpdate(LogEntry logEntry)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void saveOrUpdate(LogEntry logEntry, net.sf.hibernate.Session s)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void update(LogEntry logEntry)
          Update the persistent state associated with the given identifier.
 void update(LogEntry logEntry, 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 LogEntryDAO instance
Constructor Detail

BaseLogEntryDAO

public BaseLogEntryDAO()
Method Detail

getInstance

public static LogEntryDAO 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 LogEntry cast(Object object)
Cast the object as a asit.moa.moazs.notifier.LogEntry


get

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

get

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

load

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

load

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

loadInitialize

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

save

public Long save(LogEntry logEntry)
          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:
logEntry - a transient instance of a persistent class
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

save

public Long save(LogEntry logEntry,
                 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:
logEntry - a transient instance of a persistent class
s - the Session
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

public void saveOrUpdate(LogEntry logEntry)
                  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:
logEntry - a transient instance containing new or updated state
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

public void saveOrUpdate(LogEntry logEntry,
                         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:
logEntry - a transient instance containing new or updated state.
s - the Session.
Throws:
net.sf.hibernate.HibernateException

update

public void update(LogEntry logEntry)
            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:
logEntry - a transient instance containing updated state
Throws:
net.sf.hibernate.HibernateException

update

public void update(LogEntry logEntry,
                   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:
logEntry - 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(LogEntry logEntry)
            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:
logEntry - the instance to be removed
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(LogEntry logEntry,
                   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:
logEntry - the instance to be removed
s - the Session
Throws:
net.sf.hibernate.HibernateException

refresh

public void refresh(LogEntry logEntry,
                    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.