Class AbstractCollectionInstantiator<C extends Collection<?>,R extends RecordingCollection<? extends C,?>>
java.lang.Object
com.blazebit.persistence.view.impl.collection.AbstractCollectionInstantiator<C,R>
- All Implemented Interfaces:
CollectionInstantiator<C,,R> CollectionInstantiatorImplementor<C,R>
- Direct Known Subclasses:
ListCollectionInstantiator,OrderedCollectionInstantiator,OrderedSetCollectionInstantiator,SortedSetCollectionInstantiator,UnorderedSetCollectionInstantiator
public abstract class AbstractCollectionInstantiator<C extends Collection<?>,R extends RecordingCollection<? extends C,?>>
extends Object
implements CollectionInstantiatorImplementor<C,R>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollectionInstantiator(PluralObjectFactory<Collection<?>> collectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<?>createJpaCollection(int size) Creates a collection for the JPA model.voidpostConstruct(Collection<?> collection) Invokes the post construct action on the collection.booleanReturns whether the collection requires a post construct call.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blazebit.persistence.view.CollectionInstantiator
createCollection, createRecordingCollectionMethods inherited from interface com.blazebit.persistence.view.impl.collection.CollectionInstantiatorImplementor
allowsDuplicates, isIndexed
-
Constructor Details
-
AbstractCollectionInstantiator
-
-
Method Details
-
requiresPostConstruct
public boolean requiresPostConstruct()Description copied from interface:CollectionInstantiatorImplementorReturns whether the collection requires a post construct call.- Specified by:
requiresPostConstructin interfaceCollectionInstantiatorImplementor<C extends Collection<?>,R extends RecordingCollection<? extends C, ?>> - Returns:
- whether the collection requires a post construct call
-
postConstruct
Description copied from interface:CollectionInstantiatorImplementorInvokes the post construct action on the collection.- Specified by:
postConstructin interfaceCollectionInstantiatorImplementor<C extends Collection<?>,R extends RecordingCollection<? extends C, ?>> - Parameters:
collection- The collection
-
createJpaCollection
Description copied from interface:CollectionInstantiatorImplementorCreates a collection for the JPA model.- Specified by:
createJpaCollectionin interfaceCollectionInstantiatorImplementor<C extends Collection<?>,R extends RecordingCollection<? extends C, ?>> - Parameters:
size- The size estimate- Returns:
- the collection
-