net.sf.jportlet.service.hibernate
Class HibernateServiceImpl

java.lang.Object
  |
  +--net.sf.jportlet.service.PortletServiceAdapter
        |
        +--net.sf.jportlet.service.hibernate.HibernateServiceImpl
All Implemented Interfaces:
HibernateService, PortletService

public class HibernateServiceImpl
extends PortletServiceAdapter
implements HibernateService

Implementation of HibernateService

Author:
Herve Tchepannou

Field Summary
 
Fields inherited from class net.sf.jportlet.service.PortletServiceAdapter
_log, _serviceConfig, _serviceContext
 
Fields inherited from interface net.sf.jportlet.service.hibernate.HibernateService
NAME
 
Constructor Summary
HibernateServiceImpl()
           
 
Method Summary
 java.lang.String getServiceName()
          Returns the name of the service
 cirrus.hibernate.SessionFactory getSessionFactory()
          Returns the Hibername SessionFactory
 void init(net.sf.jportlet.service.PortletServiceConfig config)
          Initialize the service
 void storeClass(java.lang.Class type)
          Register a persistent class by loading if .hbm.xml file.
 
Methods inherited from class net.sf.jportlet.service.PortletServiceAdapter
destroy, getInitParameter, getInitParameter, getServiceConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jportlet.service.PortletService
destroy, getServiceConfig
 

Constructor Detail

HibernateServiceImpl

public HibernateServiceImpl()
Method Detail

init

public void init(net.sf.jportlet.service.PortletServiceConfig config)
          throws PortletServiceException
Description copied from interface: PortletService
Initialize the service

Specified by:
init in interface PortletService
Overrides:
init in class PortletServiceAdapter
Parameters:
config - configuration of the service
PortletServiceException
See Also:
PortletService.init(net.sf.jportlet.service.PortletServiceConfig)

getServiceName

public java.lang.String getServiceName()
Description copied from interface: PortletService
Returns the name of the service

Specified by:
getServiceName in interface PortletService
Returns:
String
See Also:
PortletService.getServiceName()

getSessionFactory

public cirrus.hibernate.SessionFactory getSessionFactory()
                                                  throws PortletServiceException
Description copied from interface: HibernateService
Returns the Hibername SessionFactory

Specified by:
getSessionFactory in interface HibernateService
Returns:
SessionFactory
Throws:
PortletServiceException
See Also:
HibernateService.getSessionFactory()

storeClass

public void storeClass(java.lang.Class type)
                throws PortletServiceException
Description copied from interface: HibernateService
Register a persistent class by loading if .hbm.xml file.

Specified by:
storeClass in interface HibernateService
Parameters:
type - Persistent type
Throws:
PortletServiceException
See Also:
HibernateService.storeClass(java.lang.Class)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.