Class MockEntityPersister

java.lang.Object
org.hibernate.processor.validation.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.EntityPersister, org.hibernate.persister.entity.Joinable, org.hibernate.persister.entity.mutation.EntityMutationTarget, 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.Joinable
  • Nested Class Summary

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

    org.hibernate.metamodel.mapping.Bindable.JdbcValuesBiConsumer<X,Y>, 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,Y>, org.hibernate.metamodel.mapping.ModelPart.JdbcValueConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockEntityPersister(String entityName, AccessType defaultAccessType, MockSessionFactory factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hibernate.metamodel.mapping.DiscriminatorType<?>
     
    org.hibernate.type.BasicType<String>
     
    org.hibernate.tuple.entity.EntityMetamodel
     
     
    org.hibernate.persister.entity.EntityPersister
     
    org.hibernate.engine.spi.SessionFactoryImplementor
     
     
    Override on subclasses!
    org.hibernate.type.Type
    Override on subclasses!
     
     
    final org.hibernate.type.Type
    getPropertyType(String propertyPath)
     
     
    abstract String
     
     
     
     
    int
     
    org.hibernate.type.BasicType<?>
    Override on subclasses!
    protected abstract String
     
    protected abstract org.hibernate.type.Type
     
    boolean
     
    boolean
     
    boolean
     
    toColumns(String propertyName)
     
     
    protected abstract org.hibernate.type.BasicType<?>
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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, createRootGraph, createRootTableGroup, createTableReferenceJoin, extractConcreteTypeStateValues, findContainingEntityMapping, findDeclaredAttributeMapping, findSubPart, findSubTypesSubPart, forEachAttributeMapping, forEachTableDetails, getAttributeMappings, getAuditMapping, getAuxiliaryMapping, getContributor, getDeclaredAttributeMappings, getDiscriminatorMapping, getDiscriminatorSQLValue, getDiscriminatorValue, getFetchable, getIdentifierMapping, getIdentifierMappingForJoin, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSoftDeleteMapping, getSoftDeleteTableDetails, getSubclassId, getSubMappingTypes, getSuperMappingType, getTemporalMapping, getVersionMapping, hasSubclasses, hasWhereRestrictions, isAbstract, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isConcreteProxy, isExplicitPolymorphism, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, requireNaturalIdMapping, resolveConcreteProxyTypeForId, visitAttributeMappings, visitConstraintOrderedTables, visitDeclaredAttributeMappings, visitSubTypeAttributeMappings, visitSuperTypeAttributeMappings

    Methods inherited from interface org.hibernate.persister.entity.mutation.EntityMutationTarget

    addAuxiliaryToInsertGroup, addDiscriminatorToInsertGroup, getAttributeMutationTableName, getIdentifierDescriptor, getIdentifierTableMapping, getIdentityInsertDelegate, getInsertDelegate, getMutationDelegate, getTableMappings, getTargetPart, getUpdateDelegate, physicalTableNameForMutation

    Methods inherited from interface org.hibernate.persister.entity.EntityPersister

    addToCacheKey, afterInitialize, afterReassociate, breakDownJdbcValues, buildCacheEntry, canExtractIdOutOfEntity, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, countSubclassProperties, createProxy, delete, excludedFromTemporalVersioning, findDirty, findModified, forceVersionIncrement, forceVersionIncrement, getAttributeMapping, getBatchSize, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getConcreteProxyClass, getConstraintOrderedTableKeyColumnClosure, getCurrentVersion, getDatabaseSnapshot, getDeleteCoordinator, getDiscriminatorAlias, getDiscriminatorColumnName, getEntityEntryFactory, getEntityMappingType, getFilterAliasGenerator, getFilterAliasGenerator, getGeneratedProperties, getGenerator, getGenerators, getIdByUniqueKey, getIdentifier, getIdentifier, getIdentifier, getIdentifierAliases, getIdentifierGenerator, getIdentitySelectString, getImportedName, getInsertCoordinator, getInsertGeneratedProperties, getInstrumentationMetadata, getJpaEntityName, getKeyColumns, getMappedClass, getMergeCoordinator, getMultiNaturalIdLoader, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdLoader, getNonLazyPropertyUpdateability, getPropertyAliases, getPropertyCascadeStyles, getPropertyCheckability, getPropertyColumnNames, getPropertyInsertability, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertyOnDeleteActions, getPropertySpan, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getRepresentationStrategy, getRootTableIdentifierColumnNames, getRootTableKeyColumnNames, getRootTableName, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSqlAliasStem, getSqmMultiTableInsertStrategy, getSqmMultiTableMutationStrategy, getSubclassEntityPersister, getSubclassPropertyColumnAliases, getSubclassPropertyColumnNames, getSubclassTableName, getSubclassTableSpan, getSynchronizationSpaces, getSynchronizedQuerySpaces, getTableName, getTableNameForColumn, getTableNames, getTableSpan, getTypeDiscriminatorMetadata, getUpdateCoordinator, getUpdateGeneratedProperties, getValue, getValues, getVersion, getVersionColumnName, getVersionGenerator, getVersionJavaType, hasCache, hasCascadeDelete, hasCascadePersist, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasDuplicateTables, hasFilterForLoadByKey, hasIdentifierProperty, hasImmutableNaturalId, hasInsertGeneratedProperties, hasLazyProperties, hasMultipleTables, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasOwnedCollections, hasPreInsertGeneratedProperties, hasPreUpdateGeneratedProperties, hasProxy, hasRowId, hasSubselectLoadableCollections, hasToOnes, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isDynamicInsert, isDynamicUpdate, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isInverseTable, isLazy, isLazyPropertiesCacheable, isNaturalIdentifierInsertGenerated, isNullableTable, isPolymorphic, isPropertyAuditedExcluded, isPropertyTemporalExcluded, isSelectBeforeUpdateRequired, isSharedColumn, isTransient, isVersionPropertyGenerated, load, load, load, loadByUniqueKey, loadEntityIdByNaturalId, lock, lock, lock, lock, managesColumns, merge, multiLoad, multiLoad, postInstantiate, prepareLoaders, processInsertGeneratedProperties, processInsertGeneratedProperties, processUpdateGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, resolveDirtyAttributeIndexes, selectFragment, 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.loader.ast.spi.Loadable

    isAffectedByBatchSize, isAffectedByEnabledFilters, isAffectedByInfluencers, isAffectedByInfluencers, isNotAffectedByInfluencers

    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.metamodel.mapping.Restrictable

    applyBaseRestrictions

    Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer

    containsTableReference
  • Constructor Details

  • Method Details

    • 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
    • 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()
    • getRootEntityName

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

      public MockEntityPersister getRootEntityPersister()
    • getSubclassEntityNames

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

      public String[] toColumns(String propertyName)
      Specified by:
      toColumns in interface org.hibernate.persister.entity.EntityPersister
    • 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
    • getIdentifierColumnNames

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

      public org.hibernate.metamodel.mapping.DiscriminatorType<?> getDiscriminatorDomainType()
      Specified by:
      getDiscriminatorDomainType in interface org.hibernate.persister.entity.EntityPersister
    • getTableName

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

      public String toString()
      Overrides:
      toString in class Object
    • getVersionPropertyIndex

      public int getVersionPropertyIndex()
      Specified by:
      getVersionPropertyIndex 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
    • getDiscriminatorType

      public org.hibernate.type.BasicType<String> getDiscriminatorType()
      Specified by:
      getDiscriminatorType in interface org.hibernate.persister.entity.EntityPersister
    • isMutable

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