Package org.hibernate.jpa.internal

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


    return wrapAsJpaQuery( namedQueryDefinition, hibQuery );
  }

  protected QueryImpl wrapAsJpaQuery(NamedQueryDefinition namedQueryDefinition, org.hibernate.Query hibQuery) {
    try {
      final QueryImpl jpaQuery = new QueryImpl( hibQuery, this );
      applySavedSettings( namedQueryDefinition, jpaQuery );
      return jpaQuery;
    }
    catch ( RuntimeException e ) {
      throw convert( e );
View Full Code Here


  @Override
  public Query createNativeQuery(String sqlString) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( RuntimeException 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 ( RuntimeException he ) {
      throw convert( he );
    }
  }
View Full Code Here

      @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

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

          HibernateEntityManagerImplementor entityManager,
          final InterpretedParameterMetadata interpretedParameterMetadata) {

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

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

      @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

    return wrapAsJpaQuery( namedQueryDefinition, hibQuery );
  }

  protected QueryImpl wrapAsJpaQuery(NamedQueryDefinition namedQueryDefinition, org.hibernate.Query hibQuery) {
    try {
      final QueryImpl jpaQuery = new QueryImpl( hibQuery, this );
      applySavedSettings( namedQueryDefinition, jpaQuery );
      return jpaQuery;
    }
    catch ( RuntimeException e ) {
      throw convert( e );
View Full Code Here

  @Override
  public Query createNativeQuery(String sqlString) {
    checkOpen();
    try {
      SQLQuery q = internalGetSession().createSQLQuery( sqlString );
      return new QueryImpl( q, this );
    }
    catch ( RuntimeException 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 ( RuntimeException he ) {
      throw convert( he );
    }
  }
View Full Code Here

TOP

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

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.