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
Constructors Constructor Description OrderedCollectionInstantiator(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 Type Method Description boolean
allowsDuplicates()
Returns whether the collection type allows duplicates.Collection<?>
createCollection(int size)
RecordingCollection<Collection<?>,?>
createRecordingCollection(int size)
boolean
isIndexed()
Returns whether the collection type is indexed.void
postConstruct(Collection<?> collection)
Invokes the post construct action on the collection.boolean
requiresPostConstruct()
Returns 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:CollectionInstantiatorImplementor
Returns whether the collection type allows duplicates.- Returns:
- whether the collection type allows duplicates
-
isIndexed
public boolean isIndexed()Description copied from interface:CollectionInstantiatorImplementor
Returns whether the collection type is indexed.- Returns:
- whether the collection type is indexed
-
requiresPostConstruct
public boolean requiresPostConstruct()Description copied from interface:CollectionInstantiatorImplementor
Returns whether the collection requires a post construct call.- Specified by:
requiresPostConstruct
in interfaceCollectionInstantiatorImplementor<Collection<?>,RecordingCollection<?,?>>
- Overrides:
requiresPostConstruct
in classAbstractCollectionInstantiator<Collection<?>,RecordingCollection<?,?>>
- Returns:
- whether the collection requires a post construct call
-
postConstruct
Description copied from interface:CollectionInstantiatorImplementor
Invokes the post construct action on the collection.- Specified by:
postConstruct
in interfaceCollectionInstantiatorImplementor<Collection<?>,RecordingCollection<?,?>>
- Overrides:
postConstruct
in classAbstractCollectionInstantiator<Collection<?>,RecordingCollection<?,?>>
- Parameters:
collection
- The collection
-
createCollection
-
createRecordingCollection
-