Class MockCollectionPersister
java.lang.Object
org.hibernate.processor.validation.MockCollectionPersister
- All Implemented Interfaces:
FilterRestrictable
,Restrictable
,WhereRestrictable
,CollectionPersister
,Joinable
- Direct Known Subclasses:
ProcessorSessionFactory.ElementCollectionPersister
,ProcessorSessionFactory.ToManyAssociationPersister
public abstract class MockCollectionPersister
extends Object
implements CollectionPersister, Joinable
-
Constructor Summary
ConstructorsConstructorDescriptionMockCollectionPersister
(String role, CollectionType collectionType, Type elementType, MockSessionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the "space" that holds the persistent stateGet the associatedType
Get the persister of the element class, if this is a collection of entities (optional operation).Get the "element" typeGet the type of the surrogate keyGet the "index" type for a list or map (optional operation)Get the "key" type (the type of the foreign key)Get the persister of the entity that "owns" this collectiongetRole()
Get the name of this collection role (the fully qualified class name, extended by a "property path")boolean
hasIndex()
Is this an "indexed" collection? (list or map)boolean
Is this a one-to-many association?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.persister.collection.CollectionPersister
applyBaseManyToManyRestrictions, deleteRows, elementExists, getAttributeMapping, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionPropertyColumnAliases, getCollectionSemantics, getElementByIndex, getElementClass, getElementColumnAliases, getGenerator, getIdentifierColumnAlias, getIdentifierColumnName, getIdentifierGenerator, getIndexColumnAliases, getKeyColumnAliases, getManyToManyFilterFragment, getNavigableRole, getSize, getSortingComparator, hasCache, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, indexExists, initialize, insertRows, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEnabledFilters, isAffectedByEnabledFilters, isAffectedByEnabledFilters, isAffectedByEntityGraph, isArray, isBatchLoadable, isCascadeDeleteEnabled, isExtraLazy, isInverse, isLazy, isManyToMany, isMutable, isPrimitiveArray, isSubselectLoadable, isVersioned, needsRemove, postInstantiate, processQueuedOps, recreate, remove, selectFragment, updateRows, useShallowQueryCacheLayout
Methods inherited from interface org.hibernate.metamodel.mapping.FilterRestrictable
applyFilterRestrictions, applyFilterRestrictions
Methods inherited from interface org.hibernate.metamodel.mapping.Restrictable
applyBaseRestrictions, applyBaseRestrictions
Methods inherited from interface org.hibernate.metamodel.mapping.WhereRestrictable
applyWhereRestrictions, hasWhereRestrictions
-
Constructor Details
-
MockCollectionPersister
public MockCollectionPersister(String role, CollectionType collectionType, Type elementType, MockSessionFactory factory)
-
-
Method Details
-
getRole
Description copied from interface:CollectionPersister
Get the name of this collection role (the fully qualified class name, extended by a "property path")- Specified by:
getRole
in interfaceCollectionPersister
-
getCollectionType
Description copied from interface:CollectionPersister
Get the associatedType
- Specified by:
getCollectionType
in interfaceCollectionPersister
-
getOwnerEntityPersister
Description copied from interface:CollectionPersister
Get the persister of the entity that "owns" this collection- Specified by:
getOwnerEntityPersister
in interfaceCollectionPersister
-
getKeyType
Description copied from interface:CollectionPersister
Get the "key" type (the type of the foreign key)- Specified by:
getKeyType
in interfaceCollectionPersister
-
getIndexType
Description copied from interface:CollectionPersister
Get the "index" type for a list or map (optional operation)- Specified by:
getIndexType
in interfaceCollectionPersister
-
getElementType
Description copied from interface:CollectionPersister
Get the "element" type- Specified by:
getElementType
in interfaceCollectionPersister
-
getIdentifierType
Description copied from interface:CollectionPersister
Get the type of the surrogate key- Specified by:
getIdentifierType
in interfaceCollectionPersister
-
hasIndex
public boolean hasIndex()Description copied from interface:CollectionPersister
Is this an "indexed" collection? (list or map)- Specified by:
hasIndex
in interfaceCollectionPersister
-
getElementPersister
Description copied from interface:CollectionPersister
Get the persister of the element class, if this is a collection of entities (optional operation). Note that for a one-to-many association, the returned persister must beOuterJoinLoadable
.- Specified by:
getElementPersister
in interfaceCollectionPersister
-
getFactory
- Specified by:
getFactory
in interfaceCollectionPersister
-
isOneToMany
public boolean isOneToMany()Description copied from interface:CollectionPersister
Is this a one-to-many association?- Specified by:
isOneToMany
in interfaceCollectionPersister
-
getCollectionSpaces
Description copied from interface:CollectionPersister
Get the "space" that holds the persistent state- Specified by:
getCollectionSpaces
in interfaceCollectionPersister
-
getMappedByProperty
- Specified by:
getMappedByProperty
in interfaceCollectionPersister
- Returns:
- the name of the property this collection is mapped by
-
getTableName
- Specified by:
getTableName
in interfaceCollectionPersister
-