org.apache.cayenne.project.validator
Class SQLTemplateValidator

java.lang.Object
  extended by org.apache.cayenne.project.validator.TreeNodeValidator
      extended by org.apache.cayenne.project.validator.SQLTemplateValidator

public class SQLTemplateValidator
extends TreeNodeValidator

Validator for SQLTemplate queries.

Since:
1.1

Field Summary
 
Fields inherited from class org.apache.cayenne.project.validator.TreeNodeValidator
dbAttrValidator, dbEntityValidator, dbRelValidator, domainValidator, ejbqlQueryValidator, embeddableAttributeValidator, embeddableValidator, mapValidator, nodeValidator, objAttrValidator, objEntityValidator, objRelValidator, procedureParameterValidator, procedureQueryValidator, procedureValidator, selectQueryValidator, sqlTemplateValidator
 
Constructor Summary
SQLTemplateValidator()
           
 
Method Summary
protected  void validateDefaultSQL(SQLTemplate query, ProjectPath path, Validator validator)
           
protected  void validateName(Query query, ProjectPath path, Validator validator)
           
 void validateObject(ProjectPath treeNodePath, Validator validator)
          Validates an object, appending any warnings or errors to the validator.
protected  void validateRoot(SQLTemplate query, ProjectPath path, Validator validator)
           
 
Methods inherited from class org.apache.cayenne.project.validator.TreeNodeValidator
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLTemplateValidator

public SQLTemplateValidator()
Method Detail

validateObject

public void validateObject(ProjectPath treeNodePath,
                           Validator validator)
Description copied from class: TreeNodeValidator
Validates an object, appending any warnings or errors to the validator. Object to be validated is the last object in a treeNodePath array argument. Concrete implementations would expect an object of a specific type. Otherwise, ClassCastException will be thrown.

Specified by:
validateObject in class TreeNodeValidator

validateDefaultSQL

protected void validateDefaultSQL(SQLTemplate query,
                                  ProjectPath path,
                                  Validator validator)

validateRoot

protected void validateRoot(SQLTemplate query,
                            ProjectPath path,
                            Validator validator)

validateName

protected void validateName(Query query,
                            ProjectPath path,
                            Validator validator)


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.