net.sf.jportlet.service.hibernate
Interface HibernateService

All Superinterfaces:
PortletService
All Known Implementing Classes:
HibernateServiceImpl

public interface HibernateService
extends PortletService

This service integrates jPortlet with Hibernate. The configuration parameters of this service are the same as defined here

Author:
Herve Tchepannou

Field Summary
static java.lang.String NAME
           
 
Method Summary
 cirrus.hibernate.SessionFactory getSessionFactory()
          Returns the Hibername SessionFactory
 void storeClass(java.lang.Class type)
          Register a persistent class by loading if .hbm.xml file.
 
Methods inherited from interface net.sf.jportlet.service.PortletService
destroy, getServiceConfig, getServiceName, init
 

Field Detail

NAME

public static final java.lang.String NAME
Method Detail

storeClass

public void storeClass(java.lang.Class type)
                throws PortletServiceException
Register a persistent class by loading if .hbm.xml file.

Parameters:
type - Persistent type
Throws:
PortletServiceException

getSessionFactory

public cirrus.hibernate.SessionFactory getSessionFactory()
                                                  throws PortletServiceException
Returns the Hibername SessionFactory

Returns:
SessionFactory
Throws:
PortletServiceException


Copyright © 2002 Herve Tchepannou. All Rights Reserved.