Class OrderedCollectionInstantiator
java.lang.Object
com.blazebit.persistence.view.impl.collection.AbstractCollectionInstantiator<Collection<?>,RecordingCollection<?,?>>
com.blazebit.persistence.view.impl.collection.OrderedCollectionInstantiator
- All Implemented Interfaces:
CollectionInstantiator<Collection<?>,,RecordingCollection<?, ?>> CollectionInstantiatorImplementor<Collection<?>,RecordingCollection<?, ?>>
public class OrderedCollectionInstantiator
extends AbstractCollectionInstantiator<Collection<?>,RecordingCollection<?,?>>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Constructor Summary
ConstructorsConstructorDescriptionOrderedCollectionInstantiator(PluralObjectFactory<Collection<?>> collectionFactory, Set<Class<?>> allowedSubtypes, Set<Class<?>> parentRequiringUpdateSubtypes, Set<Class<?>> parentRequiringCreateSubtypes, boolean updatable, boolean optimize, boolean forceUnique, boolean strictCascadingCheck, Comparator<?> comparator) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the collection type allows duplicates.Collection<?>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
-
OrderedCollectionInstantiator
public OrderedCollectionInstantiator(PluralObjectFactory<Collection<?>> collectionFactory, Set<Class<?>> allowedSubtypes, Set<Class<?>> parentRequiringUpdateSubtypes, Set<Class<?>> parentRequiringCreateSubtypes, boolean updatable, 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<Collection<?>,RecordingCollection<?, ?>> - Overrides:
requiresPostConstructin classAbstractCollectionInstantiator<Collection<?>,RecordingCollection<?, ?>> - 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<Collection<?>,RecordingCollection<?, ?>> - Overrides:
postConstructin classAbstractCollectionInstantiator<Collection<?>,RecordingCollection<?, ?>> - Parameters:
collection- The collection
-
createCollection
-
createRecordingCollection
-