Package org.hibernate.hql.ast

Examples of org.hibernate.hql.ast.InvalidPathException


    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here


    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    Queryable persister = walker.getSessionFactoryHelper().findQueryableUsingImports( text );
    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
            if (InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim)) throw new InvalidPathException(
                                                                                                                       "subclass test not allowed for null or not null discriminator: '"
                                                                                                                       + text + "'");
            setSQLValue(node, text, discrim); // the class discriminator value
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
            if (value == null) throw new InvalidPathException("Invalid path: '" + text + "'");
            setConstantValue(node, text, value);
    }
  }
View Full Code Here

    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      node.setDataType( persister.getDiscriminatorType() );
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

    Queryable persister = walker.getSessionFactoryHelper().findQueryableUsingImports( text );
    if ( persister != null ) {
      // the name of an entity class
      final String discrim = persister.getDiscriminatorSQLValue();
      if ( InFragment.NULL.equals(discrim) || InFragment.NOT_NULL.equals(discrim) ) {
        throw new InvalidPathException( "subclass test not allowed for null or not null discriminator: '" + text + "'" );
      }
      else {
        setSQLValue( node, text, discrim ); //the class discriminator value
      }
    }
    else {
      Object value = ReflectHelper.getConstantValue( text );
      if ( value == null ) {
        throw new InvalidPathException( "Invalid path: '" + text + "'" );
      }
      else {
        setConstantValue( node, text, value );
      }
    }
View Full Code Here

TOP

Related Classes of org.hibernate.hql.ast.InvalidPathException

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.