Class MockEntityPersister

  • All Implemented Interfaces:
    org.hibernate.loader.ast.spi.Loadable, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.Discriminable, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.metamodel.mapping.EntityValuedModelPart, org.hibernate.metamodel.mapping.FilterRestrictable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.ManagedMappingType, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.MappingType, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.metamodel.mapping.Restrictable, org.hibernate.metamodel.mapping.SoftDeletableModelPart, org.hibernate.metamodel.mapping.WhereRestrictable, org.hibernate.persister.entity.DiscriminatorMetadata, org.hibernate.persister.entity.EntityPersister, org.hibernate.persister.entity.Joinable, org.hibernate.persister.entity.Loadable, org.hibernate.persister.entity.mutation.EntityMutationTarget, org.hibernate.persister.entity.PropertyMapping, org.hibernate.persister.entity.Queryable, org.hibernate.persister.walking.spi.AttributeSource, org.hibernate.sql.ast.tree.from.RootTableGroupProducer, org.hibernate.sql.ast.tree.from.TableGroupProducer, org.hibernate.sql.model.MutationTarget<org.hibernate.persister.entity.mutation.EntityTableMapping>, org.hibernate.sql.results.graph.FetchableContainer
    Direct Known Subclasses:
    ProcessorSessionFactory.EntityPersister

    public abstract class MockEntityPersister
    extends Object
    implements org.hibernate.persister.entity.EntityPersister, org.hibernate.persister.entity.Queryable, org.hibernate.persister.entity.DiscriminatorMetadata
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable

        org.hibernate.metamodel.mapping.Bindable.JdbcValuesBiConsumer<X extends Object,​Y extends Object>, org.hibernate.metamodel.mapping.Bindable.JdbcValuesConsumer
      • Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.EntityMappingType

        org.hibernate.metamodel.mapping.EntityMappingType.ConstraintOrderedTableConsumer
      • Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart

        org.hibernate.metamodel.mapping.ModelPart.JdbcValueBiConsumer<X extends Object,​Y extends Object>, org.hibernate.metamodel.mapping.ModelPart.JdbcValueConsumer
      • Nested classes/interfaces inherited from interface org.hibernate.persister.entity.Queryable

        org.hibernate.persister.entity.Queryable.Declarer
    • Field Summary

      • Fields inherited from interface org.hibernate.persister.entity.EntityPersister

        ENTITY_ID
      • Fields inherited from interface org.hibernate.persister.entity.Loadable

        ROWID_ALIAS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean consumesEntityAlias()  
      org.hibernate.type.Type getDiscriminatorType()  
      org.hibernate.tuple.entity.EntityMetamodel getEntityMetamodel()  
      String getEntityName()  
      org.hibernate.persister.entity.EntityPersister getEntityPersister()  
      org.hibernate.engine.spi.SessionFactoryImplementor getFactory()  
      String[] getIdentifierColumnNames()  
      String getIdentifierPropertyName()  
      org.hibernate.type.Type getIdentifierType()  
      String[] getKeyColumnNames()  
      String getMappedSuperclass()  
      String getName()  
      String[] getPropertySpaces()  
      org.hibernate.type.Type getPropertyType​(String propertyPath)  
      Serializable[] getQuerySpaces()  
      org.hibernate.type.Type getResolutionType()  
      String getRootEntityName()  
      Set<String> getSubclassEntityNames()  
      org.hibernate.persister.entity.Queryable.Declarer getSubclassPropertyDeclarer​(String s)  
      String getTableName()  
      org.hibernate.persister.entity.DiscriminatorMetadata getTypeDiscriminatorMetadata()  
      int getVersionProperty()  
      boolean isSubclassEntityName​(String name)  
      String[] toColumns​(String propertyName)  
      String toString()  
      org.hibernate.type.Type toType​(String propertyName)  
      • Methods inherited from interface org.hibernate.persister.walking.spi.AttributeSource

        getPropertyIndex
      • Methods inherited from interface org.hibernate.metamodel.mapping.Bindable

        forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
      • Methods inherited from interface org.hibernate.metamodel.mapping.EntityMappingType

        applyBaseRestrictions, applyDiscriminator, applyFilterRestrictions, applyWhereRestrictions, asEntityMappingType, createPrimaryTableReference, createRootTableGroup, createTableReferenceJoin, extractConcreteTypeStateValues, findContainingEntityMapping, findDeclaredAttributeMapping, findSubPart, findSubTypesSubPart, forEachAttributeMapping, getAttributeMappings, getContributor, getDeclaredAttributeMappings, getDiscriminatorMapping, getFetchable, getIdentifierMapping, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSoftDeleteMapping, getSoftDeleteTableDetails, getSubclassId, getSubMappingTypes, getSuperMappingType, getVersionMapping, hasWhereRestrictions, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, pruneForSubclasses, visitAttributeMappings, visitConstraintOrderedTables, visitDeclaredAttributeMappings, visitSubTypeAttributeMappings, visitSuperTypeAttributeMappings
      • Methods inherited from interface org.hibernate.persister.entity.mutation.EntityMutationTarget

        getIdentifierDescriptor, getIdentifierTableMapping, getIdentityInsertDelegate, getInsertDelegate, getMutationDelegate, getTargetPart, getUpdateDelegate, hasSkippableTables
      • Methods inherited from interface org.hibernate.persister.entity.EntityPersister

        addToCacheKey, afterInitialize, afterReassociate, breakDownJdbcValues, buildCacheEntry, canExtractIdOutOfEntity, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, createProxy, delete, findDirty, findModified, forceVersionIncrement, forceVersionIncrement, getAttributeMapping, getBatchSize, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getDeleteCoordinator, getEntityEntryFactory, getEntityMappingType, getFilterAliasGenerator, getFilterAliasGenerator, getGeneratedProperties, getGenerator, getIdByUniqueKey, getIdentifier, getIdentifierGenerator, getIdentitySelectString, getInsertCoordinator, getInsertGeneratedProperties, getInstrumentationMetadata, getMappedClass, getMergeCoordinator, getMultiNaturalIdLoader, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdLoader, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getRepresentationStrategy, getRootTableKeyColumnNames, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSqlAliasStem, getSqmMultiTableInsertStrategy, getSqmMultiTableMutationStrategy, getSubclassEntityPersister, getSynchronizationSpaces, getSynchronizedQuerySpaces, getUpdateCoordinator, getUpdateGeneratedProperties, getValue, getValues, getVersion, getVersionGenerator, getVersionJavaType, getVersionType, hasCache, hasCascadeDelete, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasOwnedCollections, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isMutable, isPropertySelectable, isSelectBeforeUpdateRequired, isTransient, isVersioned, isVersionPropertyGenerated, load, load, load, load, loadByUniqueKey, loadEntityIdByNaturalId, lock, lock, merge, multiLoad, postInstantiate, prepareLoaders, processInsertGeneratedProperties, processInsertGeneratedProperties, processUpdateGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, resolveDirtyAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, setValue, setValues, storeDiscriminatorInShallowQueryCacheLayout, uniqueKeyEntries, update, useShallowQueryCacheLayout, visitQuerySpaces
      • Methods inherited from interface org.hibernate.metamodel.mapping.EntityValuedModelPart

        applySqlSelections, applySqlSelections, createDomainResult, disassemble, findSubPart, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSubPart, visitSubParts
      • Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer

        getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, getSelectableIndex, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
      • Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer

        getJdbcMapping, getSingleJdbcMapping
      • Methods inherited from interface org.hibernate.persister.entity.Joinable

        consumesCollectionAlias, isCollection
      • Methods inherited from interface org.hibernate.loader.ast.spi.Loadable

        isAffectedByInfluencers, isNotAffectedByInfluencers
      • Methods inherited from interface org.hibernate.persister.entity.Loadable

        getDiscriminatorAlias, getDiscriminatorColumnName, getDiscriminatorValue, getIdentifierAliases, getPropertyAliases, getPropertyColumnNames, getSubclassForDiscriminatorValue, getTableAliasForColumn, hasRowId, hasSubclasses, registerAffectingFetchProfile
      • Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType

        anyRequiresAggregateColumnWriter, findAttributeMapping, forEachAttributeMapping, hasPartitionedSelectionMapping
      • Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart

        areEqual, asAttributeMapping, asBasicValuedModelPart, breakDownJdbcValues, decompose, decompose, forEachSelectable, forEachSelectable, getNavigableRole, isEntityIdentifierMapping, isVirtual
      • Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer

        findByPath, findByPath, forEachSubPart
      • Methods inherited from interface org.hibernate.sql.model.MutationTarget

        forEachMutableTable, forEachMutableTableReverse, getIdentifierTableName, getNavigableRole, getRolePath
      • Methods inherited from interface org.hibernate.persister.entity.Queryable

        generateFilterConditionAlias, getConstraintOrderedTableNameClosure, getContraintOrderedTableKeyColumnClosure, getDiscriminatorSQLValue, getSubclassPropertyFormulaTemplateClosure, getSubclassPropertyTableNumber, getSubclassTableName, isAbstract, isExplicitPolymorphism, isMultiTable, isVersionPropertyInsertable
      • Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer

        containsTableReference
    • Method Detail

      • isSubclassEntityName

        public boolean isSubclassEntityName​(String name)
        Specified by:
        isSubclassEntityName in interface org.hibernate.persister.entity.EntityPersister
      • getFactory

        public org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
        Specified by:
        getFactory in interface org.hibernate.persister.entity.EntityPersister
      • getEntityMetamodel

        public org.hibernate.tuple.entity.EntityMetamodel getEntityMetamodel()
        Specified by:
        getEntityMetamodel in interface org.hibernate.persister.entity.EntityPersister
      • getEntityName

        public String getEntityName()
        Specified by:
        getEntityName in interface org.hibernate.metamodel.mapping.EntityMappingType
        Specified by:
        getEntityName in interface org.hibernate.persister.entity.EntityPersister
      • getName

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

        public final org.hibernate.type.Type getPropertyType​(String propertyPath)
        Specified by:
        getPropertyType in interface org.hibernate.persister.entity.EntityPersister
      • getIdentifierType

        public org.hibernate.type.Type getIdentifierType()
        Specified by:
        getIdentifierType in interface org.hibernate.persister.entity.EntityPersister
      • getIdentifierPropertyName

        public String getIdentifierPropertyName()
        Specified by:
        getIdentifierPropertyName in interface org.hibernate.persister.entity.EntityPersister
      • 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
      • getRootEntityName

        public String getRootEntityName()
        Specified by:
        getRootEntityName in interface org.hibernate.persister.entity.EntityPersister
      • getSubclassEntityNames

        public Set<String> getSubclassEntityNames()
        Specified by:
        getSubclassEntityNames in interface org.hibernate.metamodel.mapping.EntityMappingType
      • getSubclassPropertyDeclarer

        public org.hibernate.persister.entity.Queryable.Declarer getSubclassPropertyDeclarer​(String s)
        Specified by:
        getSubclassPropertyDeclarer in interface org.hibernate.persister.entity.Queryable
      • toColumns

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

        public String[] getPropertySpaces()
        Specified by:
        getPropertySpaces in interface org.hibernate.persister.entity.EntityPersister
      • getQuerySpaces

        public Serializable[] getQuerySpaces()
        Specified by:
        getQuerySpaces in interface org.hibernate.persister.entity.EntityPersister
      • getEntityPersister

        public org.hibernate.persister.entity.EntityPersister getEntityPersister()
        Specified by:
        getEntityPersister in interface org.hibernate.metamodel.mapping.EntityMappingType
      • getKeyColumnNames

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

        public String[] getIdentifierColumnNames()
        Specified by:
        getIdentifierColumnNames in interface org.hibernate.persister.entity.EntityPersister
        Specified by:
        getIdentifierColumnNames in interface org.hibernate.persister.entity.Loadable
        Specified by:
        getIdentifierColumnNames in interface org.hibernate.persister.entity.Queryable
      • getTypeDiscriminatorMetadata

        public org.hibernate.persister.entity.DiscriminatorMetadata getTypeDiscriminatorMetadata()
        Specified by:
        getTypeDiscriminatorMetadata in interface org.hibernate.persister.entity.Queryable
      • getResolutionType

        public org.hibernate.type.Type getResolutionType()
        Specified by:
        getResolutionType in interface org.hibernate.persister.entity.DiscriminatorMetadata
      • getTableName

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

        public int getVersionProperty()
        Specified by:
        getVersionProperty in interface org.hibernate.persister.entity.EntityPersister
      • getMappedSuperclass

        public String getMappedSuperclass()
        Specified by:
        getMappedSuperclass in interface org.hibernate.metamodel.mapping.EntityMappingType
        Specified by:
        getMappedSuperclass in interface org.hibernate.persister.entity.Queryable
      • consumesEntityAlias

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

        public org.hibernate.type.Type getDiscriminatorType()
        Specified by:
        getDiscriminatorType in interface org.hibernate.persister.entity.Loadable