palio.modules
Class Hibernate

java.lang.Object
  extended by palio.modules.core.Module
      extended by palio.modules.Hibernate
All Implemented Interfaces:
palio.modules.core.CurrentModuleDataKeys

public class Hibernate
extends palio.modules.core.Module

Supports operation on HibernateConnector.

Author:
Krzysztof Madyniak

Field Summary
 
Fields inherited from interface palio.modules.core.CurrentModuleDataKeys
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT
 
Constructor Summary
Hibernate(palio.Instance instance, java.util.Properties parameters)
          
 
Method Summary
 Session getCurrentSession(java.lang.String connectorName)
          Returns current hibernate session for given connector
 Session getNewSession(java.lang.String connectorName)
          Returns new hibernate session for given connector
 java.lang.String getVersion()
          Returns the module version
 
Methods inherited from class palio.modules.core.Module
getConfigParam, getDescription, getModuleTranslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hibernate

public Hibernate(palio.Instance instance,
                 java.util.Properties parameters)

Method Detail

getVersion

public java.lang.String getVersion()
Returns the module version

Specified by:
getVersion in class palio.modules.core.Module

getCurrentSession

public Session getCurrentSession(java.lang.String connectorName)
                          throws palio.PalioException
Returns current hibernate session for given connector

Parameters:
connectorName - Connector name
Returns:
Current session
Throws:
palio.PalioException - If connector with given name doesn't exist or the connector is not HibernateConnector type.

getNewSession

public Session getNewSession(java.lang.String connectorName)
                      throws palio.PalioException
Returns new hibernate session for given connector

Parameters:
connectorName - Connector name
Returns:
New session
Throws:
palio.PalioException - If connector with given name doesn't exist or the connector is not HibernateConnector type.