Interface CollectionInstantiatorImplementor<C extends Collection<?>,R extends RecordingCollection<? extends C,?>>
- All Superinterfaces:
CollectionInstantiator<C,R>
- All Known Implementing Classes:
AbstractCollectionInstantiator
,ListCollectionInstantiator
,OrderedCollectionInstantiator
,OrderedSetCollectionInstantiator
,SortedSetCollectionInstantiator
,UnorderedSetCollectionInstantiator
public interface CollectionInstantiatorImplementor<C extends Collection<?>,R extends RecordingCollection<? extends C,?>> extends CollectionInstantiator<C,R>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description boolean
allowsDuplicates()
Returns whether the collection type allows duplicates.Collection<?>
createJpaCollection(int size)
Creates a collection for the JPA model.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 interface com.blazebit.persistence.view.CollectionInstantiator
createCollection, createRecordingCollection
-
Method Details
-
allowsDuplicates
boolean allowsDuplicates()Returns whether the collection type allows duplicates.- Returns:
- whether the collection type allows duplicates
-
isIndexed
boolean isIndexed()Returns whether the collection type is indexed.- Returns:
- whether the collection type is indexed
-
requiresPostConstruct
boolean requiresPostConstruct()Returns whether the collection requires a post construct call.- Returns:
- whether the collection requires a post construct call
-
postConstruct
Invokes the post construct action on the collection.- Parameters:
collection
- The collection
-
createJpaCollection
Creates a collection for the JPA model.- Parameters:
size
- The size estimate- Returns:
- the collection
-