Package org.hibernate.engine

Examples of org.hibernate.engine.QueryParameters


  }

  public ScrollableResults scroll(SessionImplementor session, ScrollMode scrollMode)
  throws HibernateException {
    QueryParameters qp = translator.getQueryParameters();
    qp.setScrollMode(scrollMode);
    return scroll(qp, resultTypes, null, session);
  }
View Full Code Here


    List result;
    try {
      result = doQueryAndInitializeNonLazyCollections(
          session,
          new QueryParameters(
              new Type[] { identifierType },
              new Object[] { id },
              optionalObject,
              optionalEntityName,
              optionalIdentifier
View Full Code Here

    List result;
    try {
      result = doQueryAndInitializeNonLazyCollections(
          session,
          new QueryParameters(
              new Type[] { keyType, indexType },
              new Object[] { key, index }
            ),
          false
        );
View Full Code Here

    Arrays.fill( types, idType );
    List result;
    try {
      result = doQueryAndInitializeNonLazyCollections(
          session,
          new QueryParameters( types, ids, optionalObject, optionalEntityName, optionalId ),
          false
        );
    }
    catch ( SQLException sqle ) {
      throw JDBCExceptionHelper.convert(
View Full Code Here

    Serializable[] ids = new Serializable[]{id};
    try {
      doQueryAndInitializeNonLazyCollections(
          session,
          new QueryParameters( new Type[]{type}, ids, ids ),
          true
        );
    }
    catch ( SQLException sqle ) {
      throw JDBCExceptionHelper.convert(
View Full Code Here

    Type[] idTypes = new Type[ids.length];
    Arrays.fill( idTypes, type );
    try {
      doQueryAndInitializeNonLazyCollections(
          session,
          new QueryParameters( idTypes, ids, ids ),
          true
        );
    }
    catch ( SQLException sqle ) {
      throw JDBCExceptionHelper.convert(
View Full Code Here

    Type[] idTypes = new Type[ids.length];
    Arrays.fill( idTypes, type );
    try {
      doQueryAndInitializeNonLazyCollections( session,
          new QueryParameters( parameterTypes, parameterValues, namedParameters, ids ),
          true
        );
    }
    catch ( SQLException sqle ) {
      throw JDBCExceptionHelper.convert(
View Full Code Here

  /**
   * Retrieve a list of persistent objects using a hibernate query
   */
  public List find(String query) throws HibernateException {
    return list( query, new QueryParameters() );
  }
View Full Code Here

  public List find(String query) throws HibernateException {
    return list( query, new QueryParameters() );
  }

  public List find(String query, Object value, Type type) throws HibernateException {
    return list( query, new QueryParameters(type, value) );
  }
View Full Code Here

  public List find(String query, Object value, Type type) throws HibernateException {
    return list( query, new QueryParameters(type, value) );
  }

  public List find(String query, Object[] values, Type[] types) throws HibernateException {
    return list( query, new QueryParameters(types, values) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.QueryParameters

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.