public final class BeanCollectionWrapper extends Object
Helps adding the bean to the underlying set list or map.
Constructor and Description |
---|
BeanCollectionWrapper(BeanPropertyAssocMany<?> manyProp)
Create based on a ManyType and mapKey.
|
BeanCollectionWrapper(OrmQueryRequest<?> request)
Create based on a Find.
|
BeanCollectionWrapper(RelationalQueryRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
add(Object bean)
Add the bean to the collection held in this wrapper.
|
void |
add(Object bean,
Object collection)
Add the bean to the collection passed.
|
void |
addToCollection(Object bean)
Specifically add to a Collection.
|
void |
addToMap(Object bean,
Object key)
Specifically add to this as a Map with a known key.
|
BeanCollection<?> |
getBeanCollection()
Return the underlying BeanCollection.
|
boolean |
isMap()
Return true if this wraps a Map rather than a set or list.
|
int |
size()
Return the number of rows added to this wrapper.
|
public BeanCollectionWrapper(RelationalQueryRequest request)
public BeanCollectionWrapper(OrmQueryRequest<?> request)
public BeanCollectionWrapper(BeanPropertyAssocMany<?> manyProp)
modifyListening is set to true if this is a collection used to hold ManyToMany associated objects.
public BeanCollection<?> getBeanCollection()
public boolean isMap()
public int size()
public void add(Object bean)
public void add(Object bean, Object collection)
bean
- the bean to addcollection
- the collection or map to add the bean topublic void addToCollection(Object bean)
Copyright © 2015. All Rights Reserved.