Package org.apache.cayenne.project.validator.EJBQLQueryValidator

Examples of org.apache.cayenne.project.validator.EJBQLQueryValidator.PositionException


            setEJBQL(e);
        }
    }

    void validateEJBQL() {
        PositionException positionException = ejbqlQueryValidator.validateEJBQL(
                getQuery(),
                mediator.getCurrentDataDomain());
        if (positionException != null) {
            if (positionException.getBeginLine() != null
                    || positionException.getBeginColumn() != null
                    || positionException.getLength() != null) {
                scriptArea.setHighlightText(
                        positionException.getBeginLine(),
                        positionException.getBeginColumn(),
                        positionException.getLength(),
                        positionException.getMessage());
            }
            else {
                scriptArea.removeHighlightText();
            }
        }
View Full Code Here


       

        for (int i=0; i<ejbqlError.length;i++) {           
            EJBQLQuery queryError = new EJBQLQuery(ejbqlError[i]);
            EJBQLQueryValidator ejbqlQueryValidator = new EJBQLQueryValidator();
            PositionException s = ejbqlQueryValidator.validateEJBQL(queryError, getDomain());
            assertEquals(typeError[i].getClass(),s.getE().getClass());
          }
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.project.validator.EJBQLQueryValidator.PositionException

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.