java.lang.Object
io.ebeaninternal.server.deploy.BeanSetHelp<T>
- All Implemented Interfaces:
BeanCollectionHelp<T>,CQueryCollectionAdd<T>
- Direct Known Subclasses:
BeanSetHelpElement
Helper specifically for dealing with Sets.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BeanCollection<?> collection, EntityBean bean, boolean withCheck) Add a bean to the List Set or Map.final BeanCollection<T> createEmpty(EntityBean ownerBean) Create an empty collection of the correct type.final BeanCollection<T> Create an empty collection of the correct type without a parent bean.final ObjectCreate and return an empty 'vanilla' collection that does not support lazy loading.final BeanCollection<T> createReference(EntityBean parentBean) Create a lazy loading proxy for a List Set or Map.final BeanCollectionAddgetBeanCollectionAdd(Object bc, String mapKey) Return the mechanism to add beans to the underlying collection.final voidjsonWrite(SpiJsonWriter ctx, String name, Object collection, boolean explicitInclude) Write the collection out as json.final voidrefresh(BeanCollection<?> bc, EntityBean parentBean) Apply the new refreshed BeanCollection to the appropriate property of the parent bean.final voidsetLoader(BeanCollectionLoader loader) Set the EbeanServer that owns the configuration.final Collectionunderlying(Object value) Return the underlying collection of beans.
-
Method Details
-
getBeanCollectionAdd
Description copied from interface:BeanCollectionHelpReturn the mechanism to add beans to the underlying collection.For Map's this needs to take the mapKey.
-
createEmptyReference
Description copied from interface:BeanCollectionHelpCreate and return an empty 'vanilla' collection that does not support lazy loading. -
createEmptyNoParent
Description copied from interface:BeanCollectionHelpCreate an empty collection of the correct type without a parent bean. -
createEmpty
Description copied from interface:BeanCollectionHelpCreate an empty collection of the correct type. -
createReference
Description copied from interface:BeanCollectionHelpCreate a lazy loading proxy for a List Set or Map. -
refresh
Description copied from interface:BeanCollectionHelpApply the new refreshed BeanCollection to the appropriate property of the parent bean. -
jsonWrite
public final void jsonWrite(SpiJsonWriter ctx, String name, Object collection, boolean explicitInclude) throws IOException Description copied from interface:BeanCollectionHelpWrite the collection out as json.- Throws:
IOException
-
setLoader
Description copied from interface:BeanCollectionHelpSet the EbeanServer that owns the configuration.- Specified by:
setLoaderin interfaceBeanCollectionHelp<T>
-
add
Description copied from interface:BeanCollectionHelpAdd a bean to the List Set or Map.- Specified by:
addin interfaceBeanCollectionHelp<T>- Specified by:
addin interfaceCQueryCollectionAdd<T>
-
underlying
Description copied from interface:BeanCollectionHelpReturn the underlying collection of beans.- Specified by:
underlyingin interfaceBeanCollectionHelp<T>
-