public class EntityCollectionSetterAdapter<CDM extends CdmBase,T extends CdmBase>
extends java.lang.Object
implements java.io.Serializable
The {setCollection(CdmBase, Collection)
method uses the add*() and remove*() methods
in order to update the collection field of the bean.
Usage example:
public void setTeamMembers(Listsee https://dev.e-taxonomy.eu/redmine/issues/7600teamMembers) throws SetterAdapterException { new EntityCollectionSetterAdapter (Team.class, Person.class, "teamMembers").setCollection(this, teamMembers); }
Modifier and Type | Class and Description |
---|---|
static class |
EntityCollectionSetterAdapter.SetterAdapterException |
Constructor and Description |
---|
EntityCollectionSetterAdapter(java.lang.Class<CDM> beanClass,
java.lang.Class<T> propertyItemType,
java.lang.String propertyName) |
EntityCollectionSetterAdapter(java.lang.Class<CDM> beanClass,
java.lang.Class<T> propertyItemType,
java.lang.String propertyName,
java.lang.String addMethodName,
java.lang.String removMethodName) |
Modifier and Type | Method and Description |
---|---|
void |
setAddMethodName(java.lang.String addMethodName) |
void |
setCollection(CDM bean,
java.util.Collection<T> items) |
void |
setRemovMethodName(java.lang.String removMethodName) |
public EntityCollectionSetterAdapter(java.lang.Class<CDM> beanClass, java.lang.Class<T> propertyItemType, java.lang.String propertyName)
public void setCollection(CDM bean, java.util.Collection<T> items) throws EntityCollectionSetterAdapter.SetterAdapterException
public void setAddMethodName(java.lang.String addMethodName)
public void setRemovMethodName(java.lang.String removMethodName)
Copyright © 2007-2020 EDIT. All Rights Reserved.