Interface HibernateAccess


public interface HibernateAccess
Since:
1.2.0
Author:
Christian Beikov
  • Method Summary

    Modifier and Type Method Description
    void afterTransaction​(org.hibernate.engine.spi.SessionImplementor session, boolean success)  
    void checkTransactionSynchStatus​(org.hibernate.engine.spi.SessionImplementor session)  
    RuntimeException convert​(javax.persistence.EntityManager em, org.hibernate.HibernateException e)  
    org.hibernate.hql.spi.ParameterTranslations createParameterTranslations​(List<org.hibernate.param.ParameterSpecification> queryParameterSpecifications)  
    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)  
    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)  
    String expandParameterLists​(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.QueryParameters getQueryParameters​(org.hibernate.Query hibernateQuery, Map<String,​org.hibernate.engine.spi.TypedValue> namedParams)  
    void handlePersistenceException​(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)  
    int performExecuteUpdate​(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)  
    Object performStream​(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)  
    void throwPersistenceException​(javax.persistence.EntityManager em, org.hibernate.HibernateException e)  
    org.hibernate.engine.spi.SessionImplementor wrapSession​(org.hibernate.engine.spi.SessionImplementor session, DbmsDialect dbmsDialect, String[][] columns, int[] returningSqlTypes, HibernateReturningResult<?> returningResult)  
    org.hibernate.engine.spi.SessionFactoryImplementor wrapSessionFactory​(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, DbmsDialect dbmsDialect)  
  • Method Details

    • list

      List<Object[]> list​(org.hibernate.loader.hql.QueryLoader queryLoader, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)
    • performList

      List<Object> performList​(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)
    • performStream

      Object performStream​(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)
    • performExecuteUpdate

      int performExecuteUpdate​(org.hibernate.engine.query.spi.HQLQueryPlan queryPlan, org.hibernate.engine.spi.SessionImplementor sessionImplementor, org.hibernate.engine.spi.QueryParameters queryParameters)
    • doExecute

      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)
    • getQueryParameters

      org.hibernate.engine.spi.QueryParameters getQueryParameters​(org.hibernate.Query hibernateQuery, Map<String,​org.hibernate.engine.spi.TypedValue> namedParams)
    • getNamedParams

      Map<String,​org.hibernate.engine.spi.TypedValue> getNamedParams​(org.hibernate.Query hibernateQuery)
    • expandParameterLists

      String expandParameterLists​(org.hibernate.engine.spi.SessionImplementor session, org.hibernate.Query hibernateQuery, Map<String,​org.hibernate.engine.spi.TypedValue> namedParamsCopy)
    • wrapSession

      org.hibernate.engine.spi.SessionImplementor wrapSession​(org.hibernate.engine.spi.SessionImplementor session, DbmsDialect dbmsDialect, String[][] columns, int[] returningSqlTypes, HibernateReturningResult<?> returningResult)
    • wrapSessionFactory

      org.hibernate.engine.spi.SessionFactoryImplementor wrapSessionFactory​(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, DbmsDialect dbmsDialect)
    • checkTransactionSynchStatus

      void checkTransactionSynchStatus​(org.hibernate.engine.spi.SessionImplementor session)
    • afterTransaction

      void afterTransaction​(org.hibernate.engine.spi.SessionImplementor session, boolean success)
    • convert

      RuntimeException convert​(javax.persistence.EntityManager em, org.hibernate.HibernateException e)
    • handlePersistenceException

      void handlePersistenceException​(javax.persistence.EntityManager em, javax.persistence.PersistenceException e)
    • throwPersistenceException

      void throwPersistenceException​(javax.persistence.EntityManager em, org.hibernate.HibernateException e)
    • createQueryParameters

      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)
    • createParameterTranslations

      org.hibernate.hql.spi.ParameterTranslations createParameterTranslations​(List<org.hibernate.param.ParameterSpecification> queryParameterSpecifications)