net.sf.hibernate4gwt.pojo.java5
Class LazyPojo

java.lang.Object
  extended by net.sf.hibernate4gwt.pojo.java5.LazyPojo
All Implemented Interfaces:
java.io.Serializable, ILazyPojo

public abstract class LazyPojo
extends java.lang.Object
implements ILazyPojo, java.io.Serializable

Abstract POJO with lazy property handling

Author:
bruno.marchesson
See Also:
Serialized Form

Field Summary
protected  java.util.List<java.lang.String> _lazyProperties
          List of lazy but not loaded properties
 
Constructor Summary
LazyPojo()
          Constructor
 
Method Summary
 void addLazyProperty(java.lang.String property)
          Add a lazy property
 java.util.List<java.lang.String> getLazyProperties()
           
 java.lang.String getLazyString()
          Debug method : write the declared lazy properties
 boolean isLazyProperty(java.lang.String property)
          Indicates if the property is lazy or not
 void removeLazyProperty(java.lang.String property)
          Remove a lazy property
 void setLazyProperties(java.util.List properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_lazyProperties

protected java.util.List<java.lang.String> _lazyProperties
List of lazy but not loaded properties

Constructor Detail

LazyPojo

public LazyPojo()
Constructor

Method Detail

setLazyProperties

public void setLazyProperties(java.util.List properties)
Specified by:
setLazyProperties in interface ILazyPojo
Parameters:
properties - the lazy properties to set

getLazyProperties

public java.util.List<java.lang.String> getLazyProperties()
Specified by:
getLazyProperties in interface ILazyPojo
Returns:
the lazy properties

addLazyProperty

public void addLazyProperty(java.lang.String property)
Description copied from interface: ILazyPojo
Add a lazy property

Specified by:
addLazyProperty in interface ILazyPojo

removeLazyProperty

public void removeLazyProperty(java.lang.String property)
Description copied from interface: ILazyPojo
Remove a lazy property

Specified by:
removeLazyProperty in interface ILazyPojo

isLazyProperty

public boolean isLazyProperty(java.lang.String property)
Description copied from interface: ILazyPojo
Indicates if the property is lazy or not

Specified by:
isLazyProperty in interface ILazyPojo
Returns:

getLazyString

public java.lang.String getLazyString()
Description copied from interface: ILazyPojo
Debug method : write the declared lazy properties

Specified by:
getLazyString in interface ILazyPojo
Returns: