it.openutils.spring.rmibernate.shared.managers
Interface HibernateLazyService

All Known Implementing Classes:
HibernateLazyServiceImpl

public interface HibernateLazyService

Interface for server-side remote lazy loading calls

Version:
$Id: HibernateLazyService.java 716 2008-03-03 14:35:57Z fcarone $
Author:
mmolaschi

Method Summary
 long count(java.lang.String className, java.lang.String propertyName, java.io.Serializable id)
          Get collection size
 java.lang.Object invoke(java.lang.String className, java.lang.String propertyName, java.io.Serializable id)
          Invoke remote lazy loading
 java.lang.Object invoke(java.lang.String className, java.lang.String propertyName, java.io.Serializable id, int from, int size)
          Invoke remote lazy loading
 

Method Detail

invoke

java.lang.Object invoke(java.lang.String className,
                        java.lang.String propertyName,
                        java.io.Serializable id)
                        throws java.rmi.RemoteException
Invoke remote lazy loading

Parameters:
className - name of parent class
propertyName - name of property to load
id - current entity id
Returns:
loaded object / collection
Throws:
java.rmi.RemoteException - error

invoke

java.lang.Object invoke(java.lang.String className,
                        java.lang.String propertyName,
                        java.io.Serializable id,
                        int from,
                        int size)
                        throws java.rmi.RemoteException
Invoke remote lazy loading

Parameters:
className - name of parent class
propertyName - name of property to load
id - current entity id
from - starting row number
size - max rows to return
Returns:
loaded object / collection
Throws:
java.rmi.RemoteException - error

count

long count(java.lang.String className,
           java.lang.String propertyName,
           java.io.Serializable id)
           throws java.rmi.RemoteException
Get collection size

Parameters:
className - name of parent class
propertyName - name of property to load
id - current entity id
Returns:
loaded object / collection
Throws:
java.rmi.RemoteException - error


Copyright © 2008 Openmind. All Rights Reserved.