| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.LanguageVisitor
com.metamatrix.query.validator.AbstractValidationVisitor
com.metamatrix.query.validator.UpdateValidationVisitor
public class UpdateValidationVisitor
 This visitor is used to validate updates through virtual groups. The command defining
 the virtual group is always a Query. This object visits various parts of
 this Query and verifies if the virtual group definition will allows it to be
 updated.
| Field Summary | 
|---|
| Fields inherited from class com.metamatrix.query.validator.AbstractValidationVisitor | 
|---|
| currentCommand | 
| Constructor Summary | |
|---|---|
| UpdateValidationVisitor(QueryMetadataInterface metadata)This constructor initialises the visitor by setting the metadata needed for validation. | |
| Method Summary | |
|---|---|
| protected  QueryMetadataInterface | getMetadata()This method get the metadata that this visitor uses. | 
|  void | visit(Delete obj)The command being visited should never be a Deleteobject, this method reports a
 validation error if this mehod is visited. | 
|  void | visit(From obj)This method visits the Fromobject to validate that
 it has only one physical group in it. | 
|  void | visit(Insert obj)The command being visited should never be a Insertobject, this method reports a
 validation error if this mehod is visited. | 
|  void | visit(Query obj)This method visits the Queryobject and verifies that
 it has only a Select and From clause. | 
|  void | visit(Select obj)This method visits the Selectand verifies that the
 expressions defined on it are allElementSymbol | 
|  void | visit(SetQuery obj)The command being visited should never be a SetQueryobject, this method reports a
 validation error if this mehod is visited. | 
|  void | visit(StoredProcedure obj)The command being visited should never be a StoredProcedureobject, this method reports a
 validation error if this mehod is visited. | 
|  void | visit(Update obj)The command being visited should never be a Updateobject, this method reports a
 validation error if this mehod is visited. | 
| Methods inherited from class com.metamatrix.query.validator.AbstractValidationVisitor | 
|---|
| getException, getExceptionObject, getReport, handleException, handleException, handleValidationError, handleValidationError, handleValidationError, isXMLCommand, reset, setMetadata, validateElementsSupport | 
| Methods inherited from class com.metamatrix.query.sql.LanguageVisitor | 
|---|
| setAbort, shouldAbort, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UpdateValidationVisitor(QueryMetadataInterface metadata)
This constructor initialises the visitor by setting the metadata needed for validation.
The - metadata object needed for validation| Method Detail | 
|---|
protected QueryMetadataInterface getMetadata()
getMetadata in class AbstractValidationVisitorpublic void visit(SetQuery obj)
 The command being visited should never be a SetQuery object, this method reports a
 validation error if this mehod is visited.
visit in class LanguageVisitorobj - The SetQuery object to be visited for validationpublic void visit(StoredProcedure obj)
 The command being visited should never be a StoredProcedure object, this method reports a
 validation error if this mehod is visited.
visit in class LanguageVisitorobj - The StoredProcedure object to be visited for validationpublic void visit(Insert obj)
 The command being visited should never be a Insert object, this method reports a
 validation error if this mehod is visited.
visit in class LanguageVisitorobj - The Insert object to be visited for validationpublic void visit(Update obj)
 The command being visited should never be a Update object, this method reports a
 validation error if this mehod is visited.
visit in class LanguageVisitorobj - The Update object to be visited for validationpublic void visit(Delete obj)
 The command being visited should never be a Delete object, this method reports a
 validation error if this mehod is visited.
visit in class LanguageVisitorobj - The Delete object to be visited for validationpublic void visit(Query obj)
 This method visits the Query object and verifies that
 it has only a Select and From clause.
visit in class LanguageVisitorobj - The Query object to be visited for validationpublic void visit(Select obj)
 This method visits the Select and verifies that the
 expressions defined on it are all ElementSymbols or aliased
 ElementSymbols
visit in class LanguageVisitorobj - The Select object to be visited for validationpublic void visit(From obj)
 This method visits the From object to validate that
 it has only one physical group in it. It gets the list of elements present
 in the physical group but not specified in the Select clause and validates
 these elements according the guidelines governing virtual group updates.
visit in class LanguageVisitorobj - The From object to be visited for validation| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||