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
    • 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