Class Hibernate56Access
java.lang.Object
com.blazebit.persistence.integration.hibernate.Hibernate56Access
- All Implemented Interfaces:
HibernateAccess
public class Hibernate56Access extends Object implements HibernateAccess
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Constructor Summary
Constructors Constructor Description Hibernate56Access() -
Method Summary
Modifier and Type Method Description voidafterTransaction(org.hibernate.engine.spi.SessionImplementor session, boolean success)voidcheckTransactionSynchStatus(org.hibernate.engine.spi.SessionImplementor session)RuntimeExceptionconvert(javax.persistence.EntityManager em, org.hibernate.HibernateException e)org.hibernate.hql.spi.ParameterTranslationscreateParameterTranslations(List<org.hibernate.param.ParameterSpecification> queryParameterSpecifications)org.hibernate.engine.spi.QueryParameterscreateQueryParameters(org.hibernate.type.Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,org.hibernate.engine.spi.TypedValue> namedParameters, org.hibernate.LockOptions lockOptions, org.hibernate.engine.spi.RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, List<String> queryHints, Serializable[] collectionKeys)voiddoExecute(org.hibernate.hql.internal.ast.exec.StatementExecutor executor, String delete, org.hibernate.engine.spi.QueryParameters parameters, org.hibernate.engine.spi.SessionImplementor session, List<org.hibernate.param.ParameterSpecification> parameterSpecifications)StringexpandParameterLists(org.hibernate.engine.spi.SessionImplementor session, org.hibernate.Query hibernateQuery, Map<String,org.hibernate.engine.spi.TypedValue> namedParamsCopy)Map<String,org.hibernate.engine.spi.TypedValue>getNamedParams(org.hibernate.Query hibernateQuery)org.hibernate.engine.spi.QueryParametersgetQueryParameters(org.hibernate.Query hibernateQuery, Map<String,org.hibernate.engine.spi.TypedValue> namedParams)voidhandlePersistenceException(javax.persistence.EntityManager em, javax.persistence.PersistenceException e)List<Object[]>list(org.hibernate.loader.hql.QueryLoader queryLoader, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)intperformExecuteUpdate(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)List<Object>performList(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)java.util.stream.Stream<Object>performStream(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)voidthrowPersistenceException(javax.persistence.EntityManager em, org.hibernate.HibernateException e)org.hibernate.engine.spi.SessionImplementorwrapSession(org.hibernate.engine.spi.SessionImplementor session, DbmsDialect dbmsDialect, String[][] columns, int[] returningSqlTypes, HibernateReturningResult<?> returningResult)org.hibernate.engine.spi.SessionFactoryImplementorwrapSessionFactory(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, DbmsDialect dbmsDialect)
-
Constructor Details
-
Hibernate56Access
public Hibernate56Access()
-
-
Method Details
-
wrapSession
public org.hibernate.engine.spi.SessionImplementor wrapSession(org.hibernate.engine.spi.SessionImplementor session, DbmsDialect dbmsDialect, String[][] columns, int[] returningSqlTypes, HibernateReturningResult<?> returningResult)- Specified by:
wrapSessionin interfaceHibernateAccess
-
wrapSessionFactory
public org.hibernate.engine.spi.SessionFactoryImplementor wrapSessionFactory(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, DbmsDialect dbmsDialect)- Specified by:
wrapSessionFactoryin interfaceHibernateAccess
-
checkTransactionSynchStatus
public void checkTransactionSynchStatus(org.hibernate.engine.spi.SessionImplementor session)- Specified by:
checkTransactionSynchStatusin interfaceHibernateAccess
-
afterTransaction
public void afterTransaction(org.hibernate.engine.spi.SessionImplementor session, boolean success)- Specified by:
afterTransactionin interfaceHibernateAccess
-
list
public List<Object[]> list(org.hibernate.loader.hql.QueryLoader queryLoader, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)- Specified by:
listin interfaceHibernateAccess
-
performList
public List<Object> performList(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)- Specified by:
performListin interfaceHibernateAccess
-
performStream
public java.util.stream.Stream<Object> performStream(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)- Specified by:
performStreamin interfaceHibernateAccess
-
performExecuteUpdate
public int performExecuteUpdate(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)- Specified by:
performExecuteUpdatein interfaceHibernateAccess
-
doExecute
public void doExecute(org.hibernate.hql.internal.ast.exec.StatementExecutor executor, String delete, org.hibernate.engine.spi.QueryParameters parameters, org.hibernate.engine.spi.SessionImplementor session, List<org.hibernate.param.ParameterSpecification> parameterSpecifications)- Specified by:
doExecutein interfaceHibernateAccess
-
getQueryParameters
public org.hibernate.engine.spi.QueryParameters getQueryParameters(org.hibernate.Query hibernateQuery, Map<String,org.hibernate.engine.spi.TypedValue> namedParams)- Specified by:
getQueryParametersin interfaceHibernateAccess
-
getNamedParams
public Map<String,org.hibernate.engine.spi.TypedValue> getNamedParams(org.hibernate.Query hibernateQuery)- Specified by:
getNamedParamsin interfaceHibernateAccess
-
expandParameterLists
public String expandParameterLists(org.hibernate.engine.spi.SessionImplementor session, org.hibernate.Query hibernateQuery, Map<String,org.hibernate.engine.spi.TypedValue> namedParamsCopy)- Specified by:
expandParameterListsin interfaceHibernateAccess
-
convert
public RuntimeException convert(javax.persistence.EntityManager em, org.hibernate.HibernateException e)- Specified by:
convertin interfaceHibernateAccess
-
handlePersistenceException
public void handlePersistenceException(javax.persistence.EntityManager em, javax.persistence.PersistenceException e)- Specified by:
handlePersistenceExceptionin interfaceHibernateAccess
-
throwPersistenceException
public void throwPersistenceException(javax.persistence.EntityManager em, org.hibernate.HibernateException e)- Specified by:
throwPersistenceExceptionin interfaceHibernateAccess
-
createQueryParameters
public org.hibernate.engine.spi.QueryParameters createQueryParameters(org.hibernate.type.Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,org.hibernate.engine.spi.TypedValue> namedParameters, org.hibernate.LockOptions lockOptions, org.hibernate.engine.spi.RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, List<String> queryHints, Serializable[] collectionKeys)- Specified by:
createQueryParametersin interfaceHibernateAccess
-
createParameterTranslations
public org.hibernate.hql.spi.ParameterTranslations createParameterTranslations(List<org.hibernate.param.ParameterSpecification> queryParameterSpecifications)- Specified by:
createParameterTranslationsin interfaceHibernateAccess
-