/** * 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"); } }
@Override protected void collectSchemaObjects(ValidationContext vContext) { super.collectSchemaObjects(vContext); _values.collectSchemaObjects(vContext); }