net.sf.hibernate4gwt.gwt
Class HibernateRemoteService

java.lang.Object
  extended by RemoteServiceServlet
      extended by net.sf.hibernate4gwt.gwt.HibernateRemoteService

public abstract class HibernateRemoteService
extends RemoteServiceServlet

Abstract class for GWT remote service using Hibernate POJO

Author:
bruno.marchesson

Field Summary
protected  HibernateBeanManager _beanManager
          The Hibernate lazy manager
 
Constructor Summary
HibernateRemoteService()
          Empty constructor
HibernateRemoteService(HibernateBeanManager lazyManager)
          Base constructor
 
Method Summary
 java.lang.Object clone(java.lang.Object hibernatePojo)
          Clone and store (if needed) the hibernate POJO
 HibernateBeanManager getBeanManager()
           
 void init()
          Servlet initialisation
 java.lang.Object merge(java.lang.Object gwtPojo)
          Retrieve and populate Hibernate pojo with gwt pojo values
 java.lang.String processCall(java.lang.String payload)
          Override of the RemoteServletService main method
 void remove(java.util.List pojoList)
          Remove the Pojo list from the POJO storage
 void remove(java.lang.Object pojo)
          Remove the Pojo from the POJO storage
 void setBeanManager(HibernateBeanManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_beanManager

protected HibernateBeanManager _beanManager
The Hibernate lazy manager

Constructor Detail

HibernateRemoteService

public HibernateRemoteService()
Empty constructor


HibernateRemoteService

public HibernateRemoteService(HibernateBeanManager lazyManager)
Base constructor

Method Detail

getBeanManager

public HibernateBeanManager getBeanManager()
Returns:
the Hibernate Bean Manager

setBeanManager

public void setBeanManager(HibernateBeanManager manager)
Parameters:
manager - the Hibernate Bean Manager to set

clone

public java.lang.Object clone(java.lang.Object hibernatePojo)
Clone and store (if needed) the hibernate POJO


merge

public java.lang.Object merge(java.lang.Object gwtPojo)
Retrieve and populate Hibernate pojo with gwt pojo values


remove

public void remove(java.lang.Object pojo)
Remove the Pojo from the POJO storage


remove

public void remove(java.util.List pojoList)
Remove the Pojo list from the POJO storage


init

public void init()
          throws ServletException
Servlet initialisation

Throws:
ServletException

processCall

public java.lang.String processCall(java.lang.String payload)
                             throws SerializationException
Override of the RemoteServletService main method

Throws:
SerializationException