br.gov.mj.frameworkprocessos.pojo.base
Class BaseNumeroProtocoloPendenteDAO

java.lang.Object
  extended by br.gov.mj.frameworkprocessos.pojo.base._BaseRootDAO
      extended by br.gov.mj.frameworkprocessos.pojo.dao._RootDAO
          extended by br.gov.mj.frameworkprocessos.pojo.base.BaseNumeroProtocoloPendenteDAO
Direct Known Subclasses:
NumeroProtocoloPendenteDAO

public abstract class BaseNumeroProtocoloPendenteDAO
extends _RootDAO

This class has been automatically generated by Hibernate Synchronizer. For more information or documentation, visit The Hibernate Synchronizer page at http://www.binamics.com/hibernatesync or contact Joe Hudson at joe@binamics.com. This is an automatically generated DAO class which should not be edited.


Field Summary
static NumeroProtocoloPendenteDAO instance
           
 
Constructor Summary
BaseNumeroProtocoloPendenteDAO()
           
 
Method Summary
 void delete(NumeroProtocoloPendente numeroProtocoloPendente)
          Remove a persistent instance from the datastore.
 void delete(NumeroProtocoloPendente numeroProtocoloPendente, Session s)
          Remove a persistent instance from the datastore.
 void delete(java.lang.String id)
          Remove a persistent instance from the datastore.
 void delete(java.lang.String id, Session s)
          Remove a persistent instance from the datastore.
 java.lang.String getDefaultOrderProperty()
          Return the property of the class you would like to use for default ordering
static NumeroProtocoloPendenteDAO getInstance()
          Return a singleton of the DAO
 java.lang.Class getReferenceClass()
          br.gov.mj.frameworkprocessos.pojo.dao.
 NumeroProtocoloPendente load(java.lang.String key)
           
 NumeroProtocoloPendente load(java.lang.String key, Session s)
           
 NumeroProtocoloPendente loadInitialize(java.lang.String key, Session s)
           
 void refresh(NumeroProtocoloPendente numeroProtocoloPendente, Session s)
          Re-read the state of the given instance from the underlying database.
 java.lang.String save(NumeroProtocoloPendente numeroProtocoloPendente)
          Persist the given transient instance, first assigning a generated identifier.
 java.lang.String save(NumeroProtocoloPendente numeroProtocoloPendente, Session s)
          Persist the given transient instance, first assigning a generated identifier.
 void saveOrUpdate(NumeroProtocoloPendente numeroProtocoloPendente)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void saveOrUpdate(NumeroProtocoloPendente numeroProtocoloPendente, Session s)
          Either save() or update() the given instance, depending upon the value of its identifier property.
 void update(NumeroProtocoloPendente numeroProtocoloPendente)
          Update the persistent state associated with the given identifier.
 void update(NumeroProtocoloPendente numeroProtocoloPendente, Session s)
          Update the persistent state associated with the given identifier.
 
Methods inherited from class br.gov.mj.frameworkprocessos.pojo.base._BaseRootDAO
beginTransaction, closeSession, commitTransaction, createSession, createSession, find, find, find, find, find, find, findAll, findAll, findAll, getConfigurationFileName, getNamedQuery, getNamedQuery, getNamedQuery, getNamedQuery, initialize, initialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static NumeroProtocoloPendenteDAO instance
Constructor Detail

BaseNumeroProtocoloPendenteDAO

public BaseNumeroProtocoloPendenteDAO()
Method Detail

getInstance

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


getReferenceClass

public java.lang.Class getReferenceClass()
br.gov.mj.frameworkprocessos.pojo.dao._RootDAO _RootDAO.getReferenceClass()

Returns:
the reference Class

load

public NumeroProtocoloPendente load(java.lang.String key)
                             throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

load

public NumeroProtocoloPendente load(java.lang.String key,
                                    Session s)
                             throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadInitialize

public NumeroProtocoloPendente loadInitialize(java.lang.String key,
                                              Session s)
                                       throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

save

public java.lang.String save(NumeroProtocoloPendente numeroProtocoloPendente)
                      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:
numeroProtocoloPendente - a transient instance of a persistent class
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

save

public java.lang.String save(NumeroProtocoloPendente numeroProtocoloPendente,
                             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:
numeroProtocoloPendente - a transient instance of a persistent class
s - the Session
Returns:
the class identifier
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

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

saveOrUpdate

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

update

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

update

public void update(NumeroProtocoloPendente numeroProtocoloPendente,
                   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:
numeroProtocoloPendente - a transient instance containing updated state
the - Session
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(java.lang.String 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(java.lang.String id,
                   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(NumeroProtocoloPendente numeroProtocoloPendente)
            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:
numeroProtocoloPendente - the instance to be removed
Throws:
net.sf.hibernate.HibernateException

delete

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

refresh

public void refresh(NumeroProtocoloPendente numeroProtocoloPendente,
                    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

getDefaultOrderProperty

public java.lang.String getDefaultOrderProperty()
Description copied from class: _BaseRootDAO
Return the property of the class you would like to use for default ordering

Overrides:
getDefaultOrderProperty in class _BaseRootDAO
Returns:
the property name