Class MockCollectionPersister
- java.lang.Object
-
- org.hibernate.processor.validation.MockCollectionPersister
-
- All Implemented Interfaces:
org.hibernate.metamodel.mapping.FilterRestrictable,org.hibernate.metamodel.mapping.Restrictable,org.hibernate.metamodel.mapping.WhereRestrictable,org.hibernate.persister.collection.CollectionPersister,org.hibernate.persister.collection.QueryableCollection,org.hibernate.persister.entity.Joinable,org.hibernate.persister.entity.PropertyMapping
- Direct Known Subclasses:
ProcessorSessionFactory.ElementCollectionPersister,ProcessorSessionFactory.ToManyAssociationPersister
public abstract class MockCollectionPersister extends Object implements org.hibernate.persister.collection.QueryableCollection
-
-
Constructor Summary
Constructors Constructor Description MockCollectionPersister(String role, org.hibernate.type.CollectionType collectionType, org.hibernate.type.Type elementType, MockSessionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconsumesCollectionAlias()String[]getCollectionSpaces()org.hibernate.type.CollectionTypegetCollectionType()String[]getElementColumnNames()String[]getElementColumnNames(String alias)org.hibernate.persister.entity.EntityPersistergetElementPersister()org.hibernate.type.TypegetElementType()org.hibernate.engine.spi.SessionFactoryImplementorgetFactory()org.hibernate.FetchModegetFetchMode()org.hibernate.type.TypegetIdentifierType()String[]getIndexColumnNames()String[]getIndexColumnNames(String alias)String[]getIndexFormulas()org.hibernate.type.TypegetIndexType()String[]getKeyColumnNames()org.hibernate.type.TypegetKeyType()StringgetMappedByProperty()StringgetName()org.hibernate.persister.entity.EntityPersistergetOwnerEntityPersister()StringgetRole()StringgetTableName()booleanhasIndex()booleanisCollection()booleanisOneToMany()String[]toColumns(String propertyName)org.hibernate.type.TypetoType(String propertyName)-
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, getCollectionMetadata, getCollectionSemantics, getElementByIndex, getElementClass, getElementColumnAliases, getGenerator, getIdentifierColumnAlias, 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, updateRows, useShallowQueryCacheLayout
-
Methods inherited from interface org.hibernate.metamodel.mapping.FilterRestrictable
applyFilterRestrictions, applyFilterRestrictions
-
Methods inherited from interface org.hibernate.persister.collection.QueryableCollection
getManyToManyOrderByString, getSQLOrderByString, hasWhere, selectFragment
-
-
-
-
Constructor Detail
-
MockCollectionPersister
public MockCollectionPersister(String role, org.hibernate.type.CollectionType collectionType, org.hibernate.type.Type elementType, MockSessionFactory factory)
-
-
Method Detail
-
getRole
public String getRole()
- Specified by:
getRolein interfaceorg.hibernate.persister.collection.CollectionPersister
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.hibernate.persister.entity.Joinable
-
getCollectionType
public org.hibernate.type.CollectionType getCollectionType()
- Specified by:
getCollectionTypein interfaceorg.hibernate.persister.collection.CollectionPersister
-
getOwnerEntityPersister
public org.hibernate.persister.entity.EntityPersister getOwnerEntityPersister()
- Specified by:
getOwnerEntityPersisterin interfaceorg.hibernate.persister.collection.CollectionPersister
-
toType
public org.hibernate.type.Type toType(String propertyName) throws org.hibernate.QueryException
- Specified by:
toTypein interfaceorg.hibernate.persister.entity.PropertyMapping- Throws:
org.hibernate.QueryException
-
getKeyType
public org.hibernate.type.Type getKeyType()
- Specified by:
getKeyTypein interfaceorg.hibernate.persister.collection.CollectionPersister
-
getIndexType
public org.hibernate.type.Type getIndexType()
- Specified by:
getIndexTypein interfaceorg.hibernate.persister.collection.CollectionPersister
-
getElementType
public org.hibernate.type.Type getElementType()
- Specified by:
getElementTypein interfaceorg.hibernate.persister.collection.CollectionPersister
-
getIdentifierType
public org.hibernate.type.Type getIdentifierType()
- Specified by:
getIdentifierTypein interfaceorg.hibernate.persister.collection.CollectionPersister
-
hasIndex
public boolean hasIndex()
- Specified by:
hasIndexin interfaceorg.hibernate.persister.collection.CollectionPersister
-
getElementPersister
public org.hibernate.persister.entity.EntityPersister getElementPersister()
- Specified by:
getElementPersisterin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getFactory
public org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
- Specified by:
getFactoryin interfaceorg.hibernate.persister.collection.CollectionPersister
-
isOneToMany
public boolean isOneToMany()
- Specified by:
isOneToManyin interfaceorg.hibernate.persister.collection.CollectionPersister
-
getCollectionSpaces
public String[] getCollectionSpaces()
- Specified by:
getCollectionSpacesin interfaceorg.hibernate.persister.collection.CollectionPersister
-
getMappedByProperty
public String getMappedByProperty()
- Specified by:
getMappedByPropertyin interfaceorg.hibernate.persister.collection.CollectionPersister
-
getIndexColumnNames
public String[] getIndexColumnNames()
- Specified by:
getIndexColumnNamesin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getIndexColumnNames
public String[] getIndexColumnNames(String alias)
- Specified by:
getIndexColumnNamesin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getIndexFormulas
public String[] getIndexFormulas()
- Specified by:
getIndexFormulasin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getElementColumnNames
public String[] getElementColumnNames(String alias)
- Specified by:
getElementColumnNamesin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getElementColumnNames
public String[] getElementColumnNames()
- Specified by:
getElementColumnNamesin interfaceorg.hibernate.persister.collection.QueryableCollection
-
getFetchMode
public org.hibernate.FetchMode getFetchMode()
- Specified by:
getFetchModein interfaceorg.hibernate.persister.collection.QueryableCollection
-
getTableName
public String getTableName()
- Specified by:
getTableNamein interfaceorg.hibernate.persister.entity.Joinable
-
getKeyColumnNames
public String[] getKeyColumnNames()
- Specified by:
getKeyColumnNamesin interfaceorg.hibernate.persister.entity.Joinable
-
isCollection
public boolean isCollection()
- Specified by:
isCollectionin interfaceorg.hibernate.persister.entity.Joinable
-
consumesCollectionAlias
public boolean consumesCollectionAlias()
- Specified by:
consumesCollectionAliasin interfaceorg.hibernate.persister.entity.Joinable
-
-