org.shept.beans.support
Class ReloadableAssociation
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
sourceModel
private Object sourceModel
associationMethod
private transient Method associationMethod
newModelTemplate
private ModelCreation newModelTemplate
ReloadableAssociation
public ReloadableAssociation()
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.