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

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

public abstract class _BaseRootDAO
extends java.lang.Object

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.


Constructor Summary
_BaseRootDAO()
           
 
Method Summary
 Transaction beginTransaction(Session s)
          Begin the transaction related to the session
 void closeSession()
          Close the session
 void commitTransaction(Transaction t)
          Commit the given transaction
static Session createSession()
          Return a new Session object that must be closed when the work has been completed.
static Session createSession(java.lang.String configFile)
          Return a new Session object that must be closed when the work has been completed.
 java.util.List find(java.lang.String query)
          Execute a query.
 java.util.List find(java.lang.String query, java.lang.Object[] obj, Type[] type)
          Execute a query.
 java.util.List find(java.lang.String query, java.lang.Object[] obj, Type[] type, Session s)
          Perform a find but use the session given instead of creating a new one.
 java.util.List find(java.lang.String query, java.lang.Object obj, Type type)
          Execute a query.
 java.util.List find(java.lang.String query, java.lang.Object obj, Type type, Session s)
          Perform a find but use the session given instead of creating a new one.
 java.util.List find(java.lang.String query, Session s)
          Perform a find but use the session given instead of creating a new one.
 java.util.List findAll()
          Return all objects related to the implementation of this DAO with no filter.
 java.util.List findAll(Session s)
          Return all objects related to the implementation of this DAO with no filter.
 java.util.List findAll(Session s, java.lang.String orderProperty)
          Return all objects related to the implementation of this DAO with no filter.
 java.lang.String getConfigurationFileName()
          Return the name of the configuration file to be used with this DAO or null if default
 java.lang.String getDefaultOrderProperty()
          Return the property of the class you would like to use for default ordering
 java.util.List getNamedQuery(java.lang.String name)
          Obtain an instance of Query for a named query string defined in the mapping file.
 java.util.List getNamedQuery(java.lang.String name, java.util.Map params, Session s)
          Obtain an instance of Query for a named query string defined in the mapping file.
 java.util.List getNamedQuery(java.lang.String name, java.io.Serializable[] params, Session s)
          Obtain an instance of Query for a named query string defined in the mapping file.
 java.util.List getNamedQuery(java.lang.String name, Session s)
          Obtain an instance of Query for a named query string defined in the mapping file.
static void initialize()
          Configure the session factory by reading hibernate config file
static void initialize(java.lang.String configFileName)
          Configure the session factory by reading hibernate config file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

_BaseRootDAO

public _BaseRootDAO()
Method Detail

initialize

public static void initialize()
                       throws HibernateException
Configure the session factory by reading hibernate config file

Throws:
HibernateException

initialize

public static void initialize(java.lang.String configFileName)
                       throws HibernateException
Configure the session factory by reading hibernate config file

Parameters:
configFileName - the name of the configuration file
Throws:
HibernateException

createSession

public static Session createSession()
                             throws HibernateException
Return a new Session object that must be closed when the work has been completed.

Returns:
the active Session
Throws:
HibernateException

createSession

public static Session createSession(java.lang.String configFile)
                             throws HibernateException
Return a new Session object that must be closed when the work has been completed.

Parameters:
configFile - the config file must match the meta attribute "config-file" in the hibernate mapping file
Returns:
the active Session
Throws:
HibernateException

getConfigurationFileName

public java.lang.String getConfigurationFileName()
Return the name of the configuration file to be used with this DAO or null if default


closeSession

public void closeSession()
                  throws HibernateException
Close the session

Throws:
HibernateException

beginTransaction

public Transaction beginTransaction(Session s)
                             throws HibernateException
Begin the transaction related to the session

Throws:
HibernateException

commitTransaction

public void commitTransaction(Transaction t)
                       throws HibernateException
Commit the given transaction

Throws:
HibernateException

find

public java.util.List find(java.lang.String query)
                    throws HibernateException
Execute a query.

Parameters:
query - a query expressed in Hibernate's query language
Returns:
a distinct list of instances (or arrays of instances)
Throws:
HibernateException

find

public java.util.List find(java.lang.String query,
                           Session s)
                    throws HibernateException
Perform a find but use the session given instead of creating a new one.

Parameters:
query - a query expressed in Hibernate's query language
Throws:
HibernateException

findAll

public java.util.List findAll()
                       throws HibernateException
Return all objects related to the implementation of this DAO with no filter.

Throws:
HibernateException

findAll

public java.util.List findAll(Session s)
                       throws HibernateException
Return all objects related to the implementation of this DAO with no filter. Use the session given.

Parameters:
s - the Session
Throws:
HibernateException

findAll

public java.util.List findAll(Session s,
                              java.lang.String orderProperty)
                       throws HibernateException
Return all objects related to the implementation of this DAO with no filter. Use the session given.

Parameters:
s - the Session
Throws:
HibernateException

getNamedQuery

public java.util.List getNamedQuery(java.lang.String name)
                             throws HibernateException
Obtain an instance of Query for a named query string defined in the mapping file.

Parameters:
name - the name of a query defined externally
Returns:
Query
Throws:
HibernateException

getNamedQuery

public java.util.List getNamedQuery(java.lang.String name,
                                    Session s)
                             throws HibernateException
Obtain an instance of Query for a named query string defined in the mapping file. Use the session given.

Parameters:
name - the name of a query defined externally
s - the Session
Returns:
Query
Throws:
HibernateException

getNamedQuery

public java.util.List getNamedQuery(java.lang.String name,
                                    java.io.Serializable[] params,
                                    Session s)
                             throws HibernateException
Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given and the Session given.

Parameters:
name - the name of a query defined externally
params - the parameter array
Returns:
Query
Throws:
HibernateException

getNamedQuery

public java.util.List getNamedQuery(java.lang.String name,
                                    java.util.Map params,
                                    Session s)
                             throws HibernateException
Obtain an instance of Query for a named query string defined in the mapping file. Use the parameters given and the Session given.

Parameters:
name - the name of a query defined externally
params - the parameter Map
Returns:
Query
Throws:
HibernateException

find

public java.util.List find(java.lang.String query,
                           java.lang.Object obj,
                           Type type)
                    throws HibernateException
Execute a query.

Parameters:
query - a query expressed in Hibernate's query language
Returns:
a distinct list of instances (or arrays of instances)
Throws:
HibernateException

find

public java.util.List find(java.lang.String query,
                           java.lang.Object obj,
                           Type type,
                           Session s)
                    throws HibernateException
Perform a find but use the session given instead of creating a new one.

Parameters:
query - a query expressed in Hibernate's query language
Throws:
HibernateException

find

public java.util.List find(java.lang.String query,
                           java.lang.Object[] obj,
                           Type[] type)
                    throws HibernateException
Execute a query.

Parameters:
query - a query expressed in Hibernate's query language
Returns:
a distinct list of instances (or arrays of instances)
Throws:
HibernateException

find

public java.util.List find(java.lang.String query,
                           java.lang.Object[] obj,
                           Type[] type,
                           Session s)
                    throws HibernateException
Perform a find but use the session given instead of creating a new one.

Parameters:
query - a query expressed in Hibernate's query language
Throws:
HibernateException

getDefaultOrderProperty

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

Returns:
the property name