org.shept.beans.support
Class ReloadableAssociation

java.lang.Object
  extended by org.shept.beans.support.ReloadableAssociation
All Implemented Interfaces:
Serializable, FilterDefinition

public class ReloadableAssociation
extends Object
implements Serializable, FilterDefinition

Implementation of the FilterDefiition Interface to make Associations, e.g. JPA or HibernateAssociations reloadable, e.g let them support associated collections

Version:
$Rev: 70 $
Author:
Andi
See Also:
Serialized Form

Field Summary
private  Method associationMethod
           
private  ModelCreation newModelTemplate
           
private static long serialVersionUID
           
private  Object sourceModel
           
 
Constructor Summary
ReloadableAssociation()
           
 
Method Summary
 Method getAssociationMethod()
           
 ModelCreation getNewModelTemplate()
           
 Object getSourceModel()
           
 void setAssociationMethod(Method associationMethod)
           
 void setNewModelTemplate(ModelCreation newModelTemplate)
           
 void setSourceModel(Object souceModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sourceModel

private Object sourceModel

associationMethod

private transient Method associationMethod

newModelTemplate

private ModelCreation newModelTemplate
Constructor Detail

ReloadableAssociation

public ReloadableAssociation()
Method Detail

getSourceModel

public Object getSourceModel()
Returns:
the souceModel

setSourceModel

public void setSourceModel(Object souceModel)
Parameters:
souceModel - the souceModel to set

getAssociationMethod

public Method getAssociationMethod()
Returns:
the associationMethod

setAssociationMethod

public void setAssociationMethod(Method associationMethod)
Parameters:
associationMethod - the associationMethod to set

getNewModelTemplate

public ModelCreation getNewModelTemplate()
Specified by:
getNewModelTemplate in interface FilterDefinition
Returns:
an default instance of the model object which may depend on the filtered template or null, if creation of new model objects of your entity is not supported.

setNewModelTemplate

public void setNewModelTemplate(ModelCreation newModelTemplate)
Parameters:
newModelTemplate - the newModelTemplate to set


Copyright © 2011. All Rights Reserved.