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
Constructors Constructor Description 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 Summary
Modifier and Type Method Description boolean
allowsDuplicates()
Returns whether the collection type allows duplicates.List<?>
createCollection(int size)
RecordingList<?>
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
-
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: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<List<?>,RecordingList<?>>
- Overrides:
requiresPostConstruct
in classAbstractCollectionInstantiator<List<?>,RecordingList<?>>
- 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<List<?>,RecordingList<?>>
- Overrides:
postConstruct
in classAbstractCollectionInstantiator<List<?>,RecordingList<?>>
- Parameters:
collection
- The collection
-
createCollection
-
createRecordingCollection
-