Package org.hibernate

Examples of org.hibernate.QueryParameterException


  public OrdinalParameterDescriptor getOrdinalParameterDescriptor(int position) {
    if ( position < 1 || position > ordinalDescriptors.length ) {
      String error = "Position beyond number of declared ordinal parameters. " +
          "Remember that ordinal parameters are 1-based! Position: " + position;
      throw new QueryParameterException( error );
    }
    return ordinalDescriptors[position - 1];
  }
View Full Code Here


  }

  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    NamedParameterDescriptor meta = ( NamedParameterDescriptor ) namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

   *
   * @throws QueryParameterException If the position is out of range
   */
  public OrdinalParameterDescriptor getOrdinalParameterDescriptor(int position) {
    if ( position < 1 || position > ordinalDescriptors.length ) {
      throw new QueryParameterException(
          "Position beyond number of declared ordinal parameters. " +
              "Remember that ordinal parameters are 1-based! Position: " + position
      );
    }
    return ordinalDescriptors[position - 1];
View Full Code Here

   * @throws QueryParameterException If the name could not be resolved to a named parameter
   */
  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    final NamedParameterDescriptor meta = namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

  }

  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    NamedParameterDescriptor meta = ( NamedParameterDescriptor ) namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

  }

  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    NamedParameterDescriptor meta = ( NamedParameterDescriptor ) namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

  public OrdinalParameterDescriptor getOrdinalParameterDescriptor(int position) {
    if ( position < 1 || position > ordinalDescriptors.length ) {
      String error = "Position beyond number of declared ordinal parameters. " +
          "Remember that ordinal parameters are 1-based! Position: " + position;
      throw new QueryParameterException( error );
    }
    return ordinalDescriptors[position - 1];
  }
View Full Code Here

  }

  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    NamedParameterDescriptor meta = ( NamedParameterDescriptor ) namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

  public OrdinalParameterDescriptor getOrdinalParameterDescriptor(int position) {
    if ( position < 1 || position > ordinalDescriptors.length ) {
      String error = "Position beyond number of declared ordinal parameters. " +
          "Remember that ordinal parameters are 1-based! Position: " + position;
      throw new QueryParameterException( error );
    }
    return ordinalDescriptors[position - 1];
  }
View Full Code Here

  }

  public NamedParameterDescriptor getNamedParameterDescriptor(String name) {
    NamedParameterDescriptor meta = ( NamedParameterDescriptor ) namedDescriptorMap.get( name );
    if ( meta == null ) {
      throw new QueryParameterException( "could not locate named parameter [" + name + "]" );
    }
    return meta;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.QueryParameterException

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.