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 Abstract 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()
      Override on subclasses!
      org.hibernate.type.Type getIdentifierType()
      Override on subclasses!
      String[] getKeyColumnNames()  
      String getMappedSuperclass()  
      String getName()  
      String[] getPropertySpaces()  
      org.hibernate.type.Type getPropertyType​(String propertyPath)  
      Serializable[] getQuerySpaces()  
      org.hibernate.type.Type getResolutionType()  
      abstract String getRootEntityName()  
      MockEntityPersister getRootEntityPersister()  
      Set<String> getSubclassEntityNames()  
      org.hibernate.persister.entity.Queryable.Declarer getSubclassPropertyDeclarer​(String s)  
      String getTableName()  
      org.hibernate.persister.entity.DiscriminatorMetadata getTypeDiscriminatorMetadata()  
      int getVersionProperty()  
      org.hibernate.type.BasicType<?> getVersionType()
      Override on subclasses!
      protected abstract String identifierPropertyName()  
      protected abstract org.hibernate.type.Type identifierType()  
      boolean isMutable()  
      boolean isSubclassEntityName​(String name)  
      boolean isVersioned()  
      String[] toColumns​(String propertyName)  
      String toString()  
      org.hibernate.type.Type toType​(String propertyName)  
      protected abstract org.hibernate.type.BasicType<?> versionType()  
      • 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, getIdentifierMappingForJoin, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSoftDeleteMapping, getSoftDeleteTableDetails, getSubclassId, getSubMappingTypes, getSuperMappingType, getVersionMapping, hasWhereRestrictions, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isConcreteProxy, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, pruneForSubclasses, resolveConcreteProxyTypeForId, 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, 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, hasCache, hasCascadeDelete, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasFilterForLoadByKey, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasOwnedCollections, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isPropertySelectable, isSelectBeforeUpdateRequired, isTransient, 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.FilterRestrictable

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

        isAffectedByEnabledFilters, isAffectedByInfluencers, 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, isAffectedByEnabledFilters
      • 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.metamodel.mapping.Restrictable

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

        public String getIdentifierPropertyName()
        Override on subclasses!
        Specified by:
        getIdentifierPropertyName in interface org.hibernate.persister.entity.EntityPersister
      • identifierPropertyName

        protected abstract String identifierPropertyName()
      • getIdentifierType

        public org.hibernate.type.Type getIdentifierType()
        Override on subclasses!
        Specified by:
        getIdentifierType in interface org.hibernate.persister.entity.EntityPersister
      • identifierType

        protected abstract org.hibernate.type.Type identifierType()
      • getVersionType

        public org.hibernate.type.BasicType<?> getVersionType()
        Override on subclasses!
        Specified by:
        getVersionType in interface org.hibernate.persister.entity.EntityPersister
      • versionType

        protected abstract org.hibernate.type.BasicType<?> versionType()
      • 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 abstract 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
      • isVersioned

        public boolean isVersioned()
        Specified by:
        isVersioned 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
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in interface org.hibernate.persister.entity.EntityPersister