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.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
-
-
Constructor Summary
Constructors Constructor Description MockEntityPersister(String entityName, AccessType defaultAccessType, MockSessionFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanconsumesEntityAlias()org.hibernate.type.TypegetDiscriminatorType()org.hibernate.tuple.entity.EntityMetamodelgetEntityMetamodel()StringgetEntityName()org.hibernate.persister.entity.EntityPersistergetEntityPersister()org.hibernate.engine.spi.SessionFactoryImplementorgetFactory()String[]getIdentifierColumnNames()StringgetIdentifierPropertyName()Override on subclasses!org.hibernate.type.TypegetIdentifierType()Override on subclasses!String[]getKeyColumnNames()StringgetMappedSuperclass()StringgetName()String[]getPropertySpaces()org.hibernate.type.TypegetPropertyType(String propertyPath)Serializable[]getQuerySpaces()org.hibernate.type.TypegetResolutionType()abstract StringgetRootEntityName()MockEntityPersistergetRootEntityPersister()Set<String>getSubclassEntityNames()org.hibernate.persister.entity.Queryable.DeclarergetSubclassPropertyDeclarer(String s)StringgetTableName()org.hibernate.persister.entity.DiscriminatorMetadatagetTypeDiscriminatorMetadata()intgetVersionProperty()org.hibernate.type.BasicType<?>getVersionType()Override on subclasses!protected abstract StringidentifierPropertyName()protected abstract org.hibernate.type.TypeidentifierType()booleanisMutable()booleanisSubclassEntityName(String name)booleanisVersioned()String[]toColumns(String propertyName)StringtoString()org.hibernate.type.TypetoType(String propertyName)protected abstract org.hibernate.type.BasicType<?>versionType()-
Methods inherited from class java.lang.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, 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
-
-
-
-
Constructor Detail
-
MockEntityPersister
public MockEntityPersister(String entityName, AccessType defaultAccessType, MockSessionFactory factory)
-
-
Method Detail
-
isSubclassEntityName
public boolean isSubclassEntityName(String name)
- Specified by:
isSubclassEntityNamein interfaceorg.hibernate.persister.entity.EntityPersister
-
getFactory
public org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
- Specified by:
getFactoryin interfaceorg.hibernate.persister.entity.EntityPersister
-
getEntityMetamodel
public org.hibernate.tuple.entity.EntityMetamodel getEntityMetamodel()
- Specified by:
getEntityMetamodelin interfaceorg.hibernate.persister.entity.EntityPersister
-
getEntityName
public String getEntityName()
- Specified by:
getEntityNamein interfaceorg.hibernate.metamodel.mapping.EntityMappingType- Specified by:
getEntityNamein interfaceorg.hibernate.persister.entity.EntityPersister
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.hibernate.persister.entity.Joinable
-
getPropertyType
public final org.hibernate.type.Type getPropertyType(String propertyPath)
- Specified by:
getPropertyTypein interfaceorg.hibernate.persister.entity.EntityPersister
-
getIdentifierPropertyName
public String getIdentifierPropertyName()
Override on subclasses!- Specified by:
getIdentifierPropertyNamein interfaceorg.hibernate.persister.entity.EntityPersister
-
identifierPropertyName
protected abstract String identifierPropertyName()
-
getIdentifierType
public org.hibernate.type.Type getIdentifierType()
Override on subclasses!- Specified by:
getIdentifierTypein interfaceorg.hibernate.persister.entity.EntityPersister
-
identifierType
protected abstract org.hibernate.type.Type identifierType()
-
getVersionType
public org.hibernate.type.BasicType<?> getVersionType()
Override on subclasses!- Specified by:
getVersionTypein interfaceorg.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:
toTypein interfaceorg.hibernate.persister.entity.PropertyMapping- Throws:
org.hibernate.QueryException
-
getRootEntityName
public abstract String getRootEntityName()
- Specified by:
getRootEntityNamein interfaceorg.hibernate.persister.entity.EntityPersister
-
getRootEntityPersister
public MockEntityPersister getRootEntityPersister()
-
getSubclassEntityNames
public Set<String> getSubclassEntityNames()
- Specified by:
getSubclassEntityNamesin interfaceorg.hibernate.metamodel.mapping.EntityMappingType
-
getSubclassPropertyDeclarer
public org.hibernate.persister.entity.Queryable.Declarer getSubclassPropertyDeclarer(String s)
- Specified by:
getSubclassPropertyDeclarerin interfaceorg.hibernate.persister.entity.Queryable
-
toColumns
public String[] toColumns(String propertyName)
- Specified by:
toColumnsin interfaceorg.hibernate.persister.entity.PropertyMapping
-
getPropertySpaces
public String[] getPropertySpaces()
- Specified by:
getPropertySpacesin interfaceorg.hibernate.persister.entity.EntityPersister
-
getQuerySpaces
public Serializable[] getQuerySpaces()
- Specified by:
getQuerySpacesin interfaceorg.hibernate.persister.entity.EntityPersister
-
getEntityPersister
public org.hibernate.persister.entity.EntityPersister getEntityPersister()
- Specified by:
getEntityPersisterin interfaceorg.hibernate.metamodel.mapping.EntityMappingType
-
getKeyColumnNames
public String[] getKeyColumnNames()
- Specified by:
getKeyColumnNamesin interfaceorg.hibernate.persister.entity.Joinable
-
getIdentifierColumnNames
public String[] getIdentifierColumnNames()
- Specified by:
getIdentifierColumnNamesin interfaceorg.hibernate.persister.entity.EntityPersister- Specified by:
getIdentifierColumnNamesin interfaceorg.hibernate.persister.entity.Loadable- Specified by:
getIdentifierColumnNamesin interfaceorg.hibernate.persister.entity.Queryable
-
getTypeDiscriminatorMetadata
public org.hibernate.persister.entity.DiscriminatorMetadata getTypeDiscriminatorMetadata()
- Specified by:
getTypeDiscriminatorMetadatain interfaceorg.hibernate.persister.entity.Queryable
-
getResolutionType
public org.hibernate.type.Type getResolutionType()
- Specified by:
getResolutionTypein interfaceorg.hibernate.persister.entity.DiscriminatorMetadata
-
getTableName
public String getTableName()
- Specified by:
getTableNamein interfaceorg.hibernate.persister.entity.Joinable
-
getVersionProperty
public int getVersionProperty()
- Specified by:
getVersionPropertyin interfaceorg.hibernate.persister.entity.EntityPersister
-
isVersioned
public boolean isVersioned()
- Specified by:
isVersionedin interfaceorg.hibernate.persister.entity.EntityPersister
-
getMappedSuperclass
public String getMappedSuperclass()
- Specified by:
getMappedSuperclassin interfaceorg.hibernate.metamodel.mapping.EntityMappingType- Specified by:
getMappedSuperclassin interfaceorg.hibernate.persister.entity.Queryable
-
consumesEntityAlias
public boolean consumesEntityAlias()
- Specified by:
consumesEntityAliasin interfaceorg.hibernate.persister.entity.Joinable
-
getDiscriminatorType
public org.hibernate.type.Type getDiscriminatorType()
- Specified by:
getDiscriminatorTypein interfaceorg.hibernate.persister.entity.Loadable
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.persister.entity.EntityPersister
-
-