Class ProcessorSessionFactory
- java.lang.Object
-
- org.hibernate.jpamodelgen.validation.MockSessionFactory
-
- org.hibernate.jpamodelgen.validation.ProcessorSessionFactory
-
- All Implemented Interfaces:
EntityManagerFactory,Closeable,Serializable,AutoCloseable,Referenceable,org.hibernate.boot.model.FunctionContributions,org.hibernate.boot.spi.BootstrapContext,org.hibernate.boot.spi.MetadataBuildingContext,org.hibernate.boot.spi.MetadataBuildingOptions,org.hibernate.boot.spi.SessionFactoryOptions,org.hibernate.engine.spi.Mapping,org.hibernate.engine.spi.SessionFactoryImplementor,org.hibernate.metamodel.spi.RuntimeModelCreationContext,org.hibernate.persister.spi.PersisterCreationContext,org.hibernate.query.spi.QueryEngine,org.hibernate.query.spi.QueryEngineOptions,org.hibernate.query.spi.QueryParameterBindingTypeResolver,org.hibernate.query.sqm.spi.SqmCreationContext,org.hibernate.SessionFactory,org.hibernate.sql.ast.spi.SqlAstCreationContext,org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
public abstract class ProcessorSessionFactory extends MockSessionFactory
Implementation of theMockobjects based on standard annotation processor APIs. Note that alternative implementations exist in the Query Validator project.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessorSessionFactory.Componentstatic classProcessorSessionFactory.ElementCollectionPersisterstatic classProcessorSessionFactory.EntityPersisterstatic classProcessorSessionFactory.ToManyAssociationPersister
-
Constructor Summary
Constructors Constructor Description ProcessorSessionFactory(ProcessingEnvironment processingEnv)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElementasElement(TypeMirror type)static MockSessionFactorycreate(ProcessingEnvironment environment)static TypeElementfindEntityByUnqualifiedName(String entityName, ModuleElement module)protected StringgetSupertype(String entityName)protected booleanisSubtype(String entityName, String subtypeEntityName)-
Methods inherited from class org.hibernate.jpamodelgen.validation.MockSessionFactory
addObserver, close, findEntityGraphByName, getBatchFetchStyle, getBootModel, getBootstrapContext, getBuildingOptions, getCache, getCriteriaBuilder, getCurrentTenantIdentifierResolver, getCustomEntityDirtinessStrategy, getDefaultTimeZoneStorageStrategy, getDefinedFilterNames, getDialect, getDomainModel, getEntityNameResolvers, getEntityNotFoundDelegate, getFastSessionServices, getFunctionRegistry, getHqlTranslator, getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getImplicitNamingStrategy, getInterpretationCache, getJdbcServices, getJpaCompliance, getJpaMetamodel, getMappingDefaults, getMappingMetamodel, getMaximumFetchDepth, getMetamodel, getName, getNamedObjectRepository, getNativeQueryInterpreter, getPhysicalNamingStrategy, getPreferredSqlTypeCodeForArray, getPreferredSqlTypeCodeForBoolean, getPreferredSqlTypeCodeForDuration, getPreferredSqlTypeCodeForInstant, getPreferredSqlTypeCodeForUuid, getQueryEngine, getReferencedPropertyType, getRuntimeMetamodels, getServiceRegistry, getSessionFactory, getSessionFactoryName, getSessionFactoryObservers, getSessionFactoryOptions, getSettings, getSqlStringGenerationContext, getSqmFunctionRegistry, getSqmTranslatorFactory, getStatistics, getTypeConfiguration, getUuid, isClosed, isDelayBatchFetchLoaderCreationsEnabled, setCheckNullability, validateNamedQueries
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.spi.BootstrapContext
getArchiveDescriptorFactory, getAttributeConverters, getAuxiliaryDatabaseObjectList, getCacheRegionDefinitions, getClassLoaderAccess, getClassmateContext, getCustomTypeProducer, getJandexView, getJpaTempClassLoader, getMetadataBuildingOptions, getReflectionManager, getRepresentationStrategySelector, getScanEnvironment, getScanner, getScanOptions, getSqlFunctions, isJpaBootstrap, markAsJpaBootstrap, registerAdHocBasicType, release, resolveAdHocBasicType
-
Methods inherited from interface jakarta.persistence.EntityManagerFactory
addNamedEntityGraph, addNamedQuery, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getPersistenceUnitUtil, getProperties, isOpen, unwrap
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators
getColumnLength, getColumnPrecision, getColumnScale, getDefaultZonedTimeSqlType, getDefaultZonedTimestampSqlType, getEnumeratedType, getExplicitJdbcTypeCode, getJdbcType, getTemporalPrecision, isLob, isNationalized, resolveJdbcTypeCode
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingContext
getCurrentContributorName, getMetadataCollector, getObjectNameNormalizer, getTypeDefinitionRegistry
-
Methods inherited from interface org.hibernate.boot.spi.MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance, disallowExtensionsInCdi, getBasicTypeRegistrations, getColumnOrderingStrategy, getDefaultTimeZoneStorage, getIdGenerationTypeInterpreter, getImplicitCacheAccessType, getManagedTypeRepresentationResolver, getPersistentCollectionRepresentationResolver, getSchemaCharset, getSharedCacheMode, getSourceProcessOrdering, getTimeZoneSupport, getWrapperArrayHandling, ignoreExplicitDiscriminatorsForJoinedInheritance, isMultiTenancyEnabled, isNoConstraintByDefault, isSpecjProprietarySyntaxEnabled, isXmlMappingEnabled, shouldImplicitlyForceDiscriminatorInSelect, useNationalizedCharacterData
-
Methods inherited from interface org.hibernate.query.spi.QueryEngineOptions
getCustomHqlTranslator, getCustomSqlFunctionMap, getCustomSqmFunctionRegistry, getCustomSqmMultiTableInsertStrategy, getCustomSqmMultiTableMutationStrategy, getCustomSqmTranslatorFactory
-
Methods inherited from interface javax.naming.Referenceable
getReference
-
Methods inherited from interface org.hibernate.metamodel.spi.RuntimeModelCreationContext
getJavaTypeRegistry, getMetadata
-
Methods inherited from interface org.hibernate.SessionFactory
containsFetchProfileDefinition, findEntityGraphsByType, fromSession, fromStatelessSession, fromStatelessTransaction, fromTransaction, getCurrentSession, getDefinedFetchProfileNames, getSchemaManager, inSession, inStatelessSession, inStatelessTransaction, inTransaction, openStatelessSession, openStatelessSession, withStatelessOptions
-
Methods inherited from interface org.hibernate.engine.spi.SessionFactoryImplementor
bestGuessEntityName, getDeserializationResolver, getEventEngine, getFetchProfile, getFilterDefinition, getGenerator, getIdentifierGenerator, getWrapperOptions, openSession, openTemporarySession, resolveParameterBindType, resolveParameterBindType, withOptions
-
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
areJPACallbacksEnabled, doesConnectionProviderDisableAutoCommit, getBaselineSessionEventsListenerBuilder, getBeanManagerReference, getCacheRegionPrefix, getCriteriaValueHandlingMode, getDefaultBatchFetchSize, getDefaultCatalog, getDefaultNullPrecedence, getDefaultSchema, getImmutableEntityUpdateQueryHandlingMode, getInterceptor, getJdbcBatchSize, getJdbcFetchSize, getJdbcTimeZone, getJsonFormatMapper, getPhysicalConnectionHandlingMode, getQueryStatisticsMaxSize, getSchemaAutoTooling, getStatelessInterceptorImplementorSupplier, getStatementInspector, getTempTableDdlTransactionHandling, getTimestampsCacheFactory, getValidatorFactoryReference, getXmlFormatMapper, inClauseParameterPaddingEnabled, isAllowOutOfTransactionUpdateOperations, isAllowRefreshDetachedEntity, isAutoCloseSessionEnabled, isAutoEvictCollectionCache, isCheckNullability, isCollectionsInDefaultFetchGroupEnabled, isCommentsEnabled, isCriteriaCopyTreeEnabled, isDirectReferenceCacheEntriesEnabled, isFailOnPaginationOverCollectionFetchEnabled, isFlushBeforeCompletionEnabled, isGetGeneratedKeysEnabled, isIdentifierRollbackEnabled, isInitializeLazyStateOutsideTransactionsEnabled, isJdbcBatchVersionedData, isJpaBootstrap, isJtaTrackByThread, isJtaTransactionAccessEnabled, isMinimalPutsEnabled, isMultiTenancyEnabled, isNamedQueryStartupCheckingEnabled, isOrderInsertsEnabled, isOrderUpdatesEnabled, isPreferUserTransaction, isQueryCacheEnabled, isReleaseResourcesOnCloseEnabled, isScrollableResultSetsEnabled, isSecondLevelCacheEnabled, isSessionFactoryNameAlsoJndiName, isStatisticsEnabled, isStructuredCacheEntriesEnabled, isSubselectFetchEnabled, isUseOfJdbcNamedParametersEnabled
-
-
-
-
Constructor Detail
-
ProcessorSessionFactory
public ProcessorSessionFactory(ProcessingEnvironment processingEnv)
-
-
Method Detail
-
create
public static MockSessionFactory create(ProcessingEnvironment environment)
-
findEntityByUnqualifiedName
public static TypeElement findEntityByUnqualifiedName(String entityName, ModuleElement module)
-
getSupertype
protected String getSupertype(String entityName)
- Specified by:
getSupertypein classMockSessionFactory
-
isSubtype
protected boolean isSubtype(String entityName, String subtypeEntityName)
- Specified by:
isSubtypein classMockSessionFactory
-
asElement
public static Element asElement(TypeMirror type)
-
-