palio.connectors
Interface HibernateConnectable

All Known Implementing Classes:
HibernateConnector

public interface HibernateConnectable

Author:
Michał Kłujszo

Method Summary
 org.hibernate.Session getSession()
          Zwraca sesję połączenia z bazą danych.
 org.hibernate.Session getSession(org.hibernate.EntityMode entityMode)
           
 org.hibernate.SessionFactory getSessionFactory()
           
 void putSession(org.hibernate.Session session)
           
 

Method Detail

getSession

org.hibernate.Session getSession()
                                 throws palio.PalioException
Zwraca sesję połączenia z bazą danych.

Returns:
Sesja Hibernate'owa
Throws:
palio.PalioException - Wystąpił problem z połączenie do bazy, lub nie można otworzyć sesji.

getSession

org.hibernate.Session getSession(org.hibernate.EntityMode entityMode)
                                 throws palio.PalioException
Parameters:
entityMode -
Returns:
Hibernate session with special etity mapping mode
Throws:
palio.PalioException

putSession

void putSession(org.hibernate.Session session)
Parameters:
session - Sesja połączenia z DB.

getSessionFactory

org.hibernate.SessionFactory getSessionFactory()
Returns:
Obiekt konfigurujący sesje/pule połączeń z bazą danych.