palio.modules
Class Hibernate
java.lang.Object
palio.modules.core.Module
palio.modules.Hibernate
- All Implemented Interfaces:
- palio.modules.core.CurrentModuleDataKeys
public class Hibernate
- extends Module
Supports operation on HibernateConnector
.
- Author:
- Krzysztof Madyniak
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 |
Method Summary |
org.hibernate.Session |
getCurrentSession(java.lang.String connectorName)
Returns current hibernate session for given connector |
org.hibernate.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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hibernate
public Hibernate(Instance instance,
java.util.Properties parameters)
getVersion
public java.lang.String getVersion()
- Returns the module version
- Specified by:
getVersion
in class Module
getCurrentSession
public org.hibernate.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 org.hibernate.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.