コード例 #1
0
  /**
   * Does Query.validate() and additionally verifies that there are an equal number of columns and
   * values.
   */
  @Override
  public void validate(ValidationContext vContext) throws ValidationException {
    // check super
    super.validate(vContext);

    if (_columns.size() != _values.size()) {
      throw new ValidationException("mismatched columns and values for insert");
    }
  }
コード例 #2
0
 @Override
 protected void collectSchemaObjects(ValidationContext vContext) {
   super.collectSchemaObjects(vContext);
   _values.collectSchemaObjects(vContext);
 }