Examples of PositionException


Examples of org.apache.cayenne.project.validation.EJBQLStatementValidator.PositionException

            setEJBQL(e);
        }
    }

    void validateEJBQL() {
        PositionException positionException = ejbqlQueryValidator.validateEJBQL(
                getQuery(),
                new EntityResolver(((DataChannelDescriptor) mediator
                        .getProject()
                        .getRootNode()).getDataMaps()));
        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

Examples of org.apache.cayenne.project.validation.EJBQLStatementValidator.PositionException

class EJBQLQueryValidator extends ConfigurationNodeValidator {

    void validate(EJBQLQuery query, ValidationResult validationResult) {

        PositionException message = new EJBQLStatementValidator().validateEJBQL(
                query,
                new EntityResolver(query
                        .getDataMap()
                        .getDataChannelDescriptor()
                        .getDataMaps()));
View Full Code Here

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

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

       

        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
Copyright © 2018 www.massapi.com. 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.