org.teiid.query.validator
Class UpdateValidator

java.lang.Object
  extended by org.teiid.query.validator.UpdateValidator

public class UpdateValidator
extends Object

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.


Nested Class Summary
static class UpdateValidator.UpdateInfo
           
static class UpdateValidator.UpdateMapping
           
static class UpdateValidator.UpdateType
           
 
Constructor Summary
UpdateValidator(QueryMetadataInterface qmi, UpdateValidator.UpdateType insertType, UpdateValidator.UpdateType updateType, UpdateValidator.UpdateType deleteType)
           
 
Method Summary
 ValidatorReport getDeleteReport()
           
 ValidatorReport getInsertReport()
           
 ValidatorReport getReport()
           
 UpdateValidator.UpdateInfo getUpdateInfo()
           
 ValidatorReport getUpdateReport()
           
 void validate(Command command, List<ElementSymbol> viewSymbols)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateValidator

public UpdateValidator(QueryMetadataInterface qmi,
                       UpdateValidator.UpdateType insertType,
                       UpdateValidator.UpdateType updateType,
                       UpdateValidator.UpdateType deleteType)
Method Detail

getUpdateInfo

public UpdateValidator.UpdateInfo getUpdateInfo()

getReport

public ValidatorReport getReport()

getDeleteReport

public ValidatorReport getDeleteReport()

getInsertReport

public ValidatorReport getInsertReport()

getUpdateReport

public ValidatorReport getUpdateReport()

validate

public void validate(Command command,
                     List<ElementSymbol> viewSymbols)
              throws QueryMetadataException,
                     TeiidComponentException
Throws:
QueryMetadataException
TeiidComponentException


Copyright © 2011. All Rights Reserved.