Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Fields inherited from class | Fields |
---|---|
interface ResultSet |
FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY, CONCUR_UPDATABLE, HOLD_CURSORS_OVER_COMMIT, CLOSE_CURSORS_AT_COMMIT |
Type | Name and description |
---|---|
void |
add(Map values) Adds a new row to this result set |
void |
eachRow(Closure closure) Call the closure once for each row in the result set. |
Object |
getAt(int index) Supports integer-based subscript operators for accessing at numbered columns starting at zero. |
Object |
getAt(String columnName) Gets the value of the designated column in the current row as an Object . |
void |
putAt(int index, Object newValue) Supports integer based subscript operators for updating the values of numbered columns starting at zero. |
void |
putAt(String columnName, Object newValue) Updates the designated column with an Object value. |
Adds a new row to this result set
values
- the new values to addCall the closure once for each row in the result set.
closure
- the closure to call for each rowSupports integer-based subscript operators for accessing at numbered columns starting at zero. Negative indices are supported, they will count from the last column backwards.
index
- is the number of the column to look at starting at 1 Gets the value of the designated column in the current row
as an Object
.
columnName
- the SQL name of the columnSupports integer based subscript operators for updating the values of numbered columns starting at zero. Negative indices are supported, they will count from the last column backwards.
index
- is the number of the column to look at starting at 1newValue
- the new value for this index