public interface BeanCollectionHelp<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(BeanCollection<?> collection,
Object bean)
Add a bean to the List Set or Map.
|
Object |
createEmpty(boolean vanilla)
Create an empty collection of the correct type.
|
BeanCollection<T> |
createReference(Object parentBean,
String propertyName)
Create a lazy loading proxy for a List Set or Map.
|
BeanCollectionAdd |
getBeanCollectionAdd(Object bc,
String mapKey)
Return the mechanism to add beans to the underlying collection.
|
Iterator<?> |
getIterator(Object collection)
Create an iterator for reading the entries.
|
void |
jsonWrite(WriteJsonContext ctx,
String name,
Object collection,
boolean explicitInclude)
Write the collection out as json.
|
void |
refresh(BeanCollection<?> bc,
Object parentBean)
Apply the new refreshed BeanCollection to the appropriate property of the parent bean.
|
void |
refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean)
Refresh the List Set or Map.
|
void |
setLoader(BeanCollectionLoader loader)
Set the EbeanServer that owns the configuration.
|
void setLoader(BeanCollectionLoader loader)
BeanCollectionAdd getBeanCollectionAdd(Object bc, String mapKey)
For Map's this needs to take the mapKey.
Object createEmpty(boolean vanilla)
void add(BeanCollection<?> collection, Object bean)
BeanCollection<T> createReference(Object parentBean, String propertyName)
void refresh(EbeanServer server, Query<?> query, Transaction t, Object parentBean)
void refresh(BeanCollection<?> bc, Object parentBean)
void jsonWrite(WriteJsonContext ctx, String name, Object collection, boolean explicitInclude)
Copyright © 2014. All Rights Reserved.