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

    Modifier and Type
    Method
    Description
    boolean
     
     
    org.hibernate.type.CollectionType
     
     
     
    org.hibernate.persister.entity.EntityPersister
     
    org.hibernate.type.Type
     
    org.hibernate.engine.spi.SessionFactoryImplementor
     
    org.hibernate.FetchMode
     
    org.hibernate.type.Type
     
     
     
     
    org.hibernate.type.Type
     
     
    org.hibernate.type.Type
     
     
     
    org.hibernate.persister.entity.EntityPersister
     
     
     
    boolean
     
    boolean
     
    boolean
     
    toColumns(String propertyName)
     
    org.hibernate.type.Type
    toType(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.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 Details

    • MockCollectionPersister

      public MockCollectionPersister(String role, org.hibernate.type.CollectionType collectionType, org.hibernate.type.Type elementType, MockSessionFactory factory)
  • Method Details

    • 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