Class ListCollectionInstantiator
java.lang.Object
com.blazebit.persistence.view.impl.collection.AbstractCollectionInstantiator<List<?>,RecordingList<?>>
com.blazebit.persistence.view.impl.collection.ListCollectionInstantiator
- All Implemented Interfaces:
CollectionInstantiator<List<?>,,RecordingList<?>> CollectionInstantiatorImplementor<List<?>,RecordingList<?>>
public class ListCollectionInstantiator
extends AbstractCollectionInstantiator<List<?>,RecordingList<?>>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Constructor Summary
ConstructorsConstructorDescriptionListCollectionInstantiator(PluralObjectFactory<Collection<?>> collectionFactory, Set<Class<?>> allowedSubtypes, Set<Class<?>> parentRequiringUpdateSubtypes, Set<Class<?>> parentRequiringCreateSubtypes, boolean updatable, boolean indexed, boolean optimize, boolean forceUnique, boolean strictCascadingCheck, Comparator<?> comparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the collection type allows duplicates.List<?>createCollection(int size) createRecordingCollection(int size) booleanReturns whether the collection type is indexed.voidpostConstruct(Collection<?> collection) Invokes the post construct action on the collection.booleanReturns whether the collection requires a post construct call.Methods inherited from class com.blazebit.persistence.view.impl.collection.AbstractCollectionInstantiator
createJpaCollection
-
Constructor Details
-
ListCollectionInstantiator
public ListCollectionInstantiator(PluralObjectFactory<Collection<?>> collectionFactory, Set<Class<?>> allowedSubtypes, Set<Class<?>> parentRequiringUpdateSubtypes, Set<Class<?>> parentRequiringCreateSubtypes, boolean updatable, boolean indexed, boolean optimize, boolean forceUnique, boolean strictCascadingCheck, Comparator<?> comparator)
-
-
Method Details
-
allowsDuplicates
public boolean allowsDuplicates()Description copied from interface:CollectionInstantiatorImplementorReturns whether the collection type allows duplicates.- Returns:
- whether the collection type allows duplicates
-
isIndexed
public boolean isIndexed()Description copied from interface:CollectionInstantiatorImplementorReturns whether the collection type is indexed.- Returns:
- whether the collection type is indexed
-
requiresPostConstruct
public boolean requiresPostConstruct()Description copied from interface:CollectionInstantiatorImplementorReturns whether the collection requires a post construct call.- Specified by:
requiresPostConstructin interfaceCollectionInstantiatorImplementor<List<?>,RecordingList<?>> - Overrides:
requiresPostConstructin classAbstractCollectionInstantiator<List<?>,RecordingList<?>> - 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<List<?>,RecordingList<?>> - Overrides:
postConstructin classAbstractCollectionInstantiator<List<?>,RecordingList<?>> - Parameters:
collection- The collection
-
createCollection
-
createRecordingCollection
-