Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean consumesCollectionAlias()  
      String[] getCollectionSpaces()  
      org.hibernate.type.CollectionType getCollectionType()  
      String[] getElementColumnNames()  
      String[] getElementColumnNames​(String alias)  
      org.hibernate.persister.entity.EntityPersister getElementPersister()  
      org.hibernate.type.Type getElementType()  
      org.hibernate.engine.spi.SessionFactoryImplementor getFactory()  
      org.hibernate.FetchMode getFetchMode()  
      org.hibernate.type.Type getIdentifierType()  
      String[] getIndexColumnNames()  
      String[] getIndexColumnNames​(String alias)  
      String[] getIndexFormulas()  
      org.hibernate.type.Type getIndexType()  
      String[] getKeyColumnNames()  
      org.hibernate.type.Type getKeyType()  
      String getMappedByProperty()  
      String getName()  
      org.hibernate.persister.entity.EntityPersister getOwnerEntityPersister()  
      String getRole()  
      String getTableName()  
      boolean hasIndex()  
      boolean isCollection()  
      boolean isOneToMany()  
      String[] toColumns​(String propertyName)  
      org.hibernate.type.Type toType​(String propertyName)  
      • 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.entity.Joinable

        consumesEntityAlias
      • Methods inherited from interface org.hibernate.persister.collection.QueryableCollection

        getManyToManyOrderByString, getSQLOrderByString, hasWhere, selectFragment
      • Methods inherited from interface org.hibernate.metamodel.mapping.Restrictable

        applyBaseRestrictions, applyBaseRestrictions
      • Methods inherited from interface org.hibernate.metamodel.mapping.WhereRestrictable

        applyWhereRestrictions, hasWhereRestrictions
    • 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:
        getRole in interface org.hibernate.persister.collection.CollectionPersister
      • getName

        public String getName()
        Specified by:
        getName in interface org.hibernate.persister.entity.Joinable
      • getCollectionType

        public org.hibernate.type.CollectionType getCollectionType()
        Specified by:
        getCollectionType in interface org.hibernate.persister.collection.CollectionPersister
      • getOwnerEntityPersister

        public org.hibernate.persister.entity.EntityPersister getOwnerEntityPersister()
        Specified by:
        getOwnerEntityPersister in interface org.hibernate.persister.collection.CollectionPersister
      • toType

        public org.hibernate.type.Type toType​(String propertyName)
                                       throws org.hibernate.QueryException
        Specified by:
        toType in interface org.hibernate.persister.entity.PropertyMapping
        Throws:
        org.hibernate.QueryException
      • getKeyType

        public org.hibernate.type.Type getKeyType()
        Specified by:
        getKeyType in interface org.hibernate.persister.collection.CollectionPersister
      • getIndexType

        public org.hibernate.type.Type getIndexType()
        Specified by:
        getIndexType in interface org.hibernate.persister.collection.CollectionPersister
      • getElementType

        public org.hibernate.type.Type getElementType()
        Specified by:
        getElementType in interface org.hibernate.persister.collection.CollectionPersister
      • getIdentifierType

        public org.hibernate.type.Type getIdentifierType()
        Specified by:
        getIdentifierType in interface org.hibernate.persister.collection.CollectionPersister
      • hasIndex

        public boolean hasIndex()
        Specified by:
        hasIndex in interface org.hibernate.persister.collection.CollectionPersister
      • getElementPersister

        public org.hibernate.persister.entity.EntityPersister getElementPersister()
        Specified by:
        getElementPersister in interface org.hibernate.persister.collection.QueryableCollection
      • getFactory

        public org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
        Specified by:
        getFactory in interface org.hibernate.persister.collection.CollectionPersister
      • isOneToMany

        public boolean isOneToMany()
        Specified by:
        isOneToMany in interface org.hibernate.persister.collection.CollectionPersister
      • getCollectionSpaces

        public String[] getCollectionSpaces()
        Specified by:
        getCollectionSpaces in interface org.hibernate.persister.collection.CollectionPersister
      • getMappedByProperty

        public String getMappedByProperty()
        Specified by:
        getMappedByProperty in interface org.hibernate.persister.collection.CollectionPersister
      • getIndexColumnNames

        public String[] getIndexColumnNames()
        Specified by:
        getIndexColumnNames in interface org.hibernate.persister.collection.QueryableCollection
      • getIndexColumnNames

        public String[] getIndexColumnNames​(String alias)
        Specified by:
        getIndexColumnNames in interface org.hibernate.persister.collection.QueryableCollection
      • getIndexFormulas

        public String[] getIndexFormulas()
        Specified by:
        getIndexFormulas in interface org.hibernate.persister.collection.QueryableCollection
      • getElementColumnNames

        public String[] getElementColumnNames​(String alias)
        Specified by:
        getElementColumnNames in interface org.hibernate.persister.collection.QueryableCollection
      • getElementColumnNames

        public String[] getElementColumnNames()
        Specified by:
        getElementColumnNames in interface org.hibernate.persister.collection.QueryableCollection
      • getFetchMode

        public org.hibernate.FetchMode getFetchMode()
        Specified by:
        getFetchMode in interface org.hibernate.persister.collection.QueryableCollection
      • getTableName

        public String getTableName()
        Specified by:
        getTableName in interface org.hibernate.persister.entity.Joinable
      • getKeyColumnNames

        public String[] getKeyColumnNames()
        Specified by:
        getKeyColumnNames in interface org.hibernate.persister.entity.Joinable
      • isCollection

        public boolean isCollection()
        Specified by:
        isCollection in interface org.hibernate.persister.entity.Joinable
      • consumesCollectionAlias

        public boolean consumesCollectionAlias()
        Specified by:
        consumesCollectionAlias in interface org.hibernate.persister.entity.Joinable
      • toColumns

        public String[] toColumns​(String propertyName)
        Specified by:
        toColumns in interface org.hibernate.persister.entity.PropertyMapping