Package org.hibernate.jpa.internal

Examples of org.hibernate.jpa.internal.QueryImpl$JpaPositionalParameterRegistrationImpl


      @SuppressWarnings("unchecked")
      public Query buildCompiledQuery(HibernateEntityManagerImplementor entityManager, final InterpretedParameterMetadata parameterMetadata) {

        final Map<String,Class> implicitParameterTypes = extractTypeMap( parameterMetadata.implicitParameterBindings() );

        QueryImpl jpaqlQuery = entityManager.createQuery(
            jpaqlString,
            getResultType(),
            getSelection(),
            new HibernateEntityManagerImplementor.QueryOptions() {
              @Override
View Full Code Here


      @SuppressWarnings("unchecked")
      public Query buildCompiledQuery(
          HibernateEntityManagerImplementor entityManager,
          final InterpretedParameterMetadata interpretedParameterMetadata) {

        QueryImpl jpaqlQuery = entityManager.createQuery(
            jpaqlString,
            null,
            null,
            new HibernateEntityManagerImplementor.Options() {
              @Override
View Full Code Here

    return new CriteriaInterpretation() {
      @Override
      @SuppressWarnings("unchecked")
      public Query buildCompiledQuery(HibernateEntityManagerImplementor entityManager, final InterpretedParameterMetadata parameterMetadata) {

        QueryImpl jpaqlQuery = entityManager.createQuery(
            jpaqlString,
            getResultType(),
            getSelection(),
            new HibernateEntityManagerImplementor.Options() {
              @Override
View Full Code Here

  public Query createNamedQuery(String name) {
    checkOpen();
    try {
      org.hibernate.Query namedQuery = internalGetSession().getNamedQuery( name );
      try {
        return new QueryImpl( namedQuery, this );
      }
      catch ( HibernateException he ) {
        throw convert( he );
      }
    }
View Full Code Here

  @Override
  public Query createNativeQuery(String sqlString) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

  public Query createNativeQuery(String sqlString, Class resultClass) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      q.addEntity( "alias1", resultClass.getName(), LockMode.READ );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

  public Query createNativeQuery(String sqlString, String resultSetMapping) {
    checkOpen();
    try {
      final SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      q.setResultSetMapping( resultSetMapping );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

  public Query createNamedQuery(String name) {
    checkOpen();
    try {
      org.hibernate.Query namedQuery = internalGetSession().getNamedQuery( name );
      try {
        return new QueryImpl( namedQuery, this );
      }
      catch ( HibernateException he ) {
        throw convert( he );
      }
    }
View Full Code Here

  @Override
  public Query createNativeQuery(String sqlString) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

  public Query createNativeQuery(String sqlString, Class resultClass) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      q.addEntity( "alias1", resultClass.getName(), LockMode.READ );
      return new QueryImpl( q, this );
    }
    catch ( HibernateException he ) {
      throw convert( he );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.internal.QueryImpl$JpaPositionalParameterRegistrationImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.