Class GroovyRowResult
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.sql.GroovyRowResult
- All Implemented Interfaces:
GroovyObject, Map
Represents an extent of objects.
It's used in the oneRow method to be able to access the result
of a SQL query by the name of the column, or by the column number.
- Version:
- $Revision$
- Author:
- Jean-Louis Berliet
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleangetAt(int index) Retrieve the value of the property by its index.getProperty(String property) Retrieve the value of the property by its nameinthashCode()booleanisEmpty()keySet()voidintsize()toString()values()Methods inherited from class GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass, setPropertyMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
GroovyRowResult
-
-
Method Details
-
getProperty
Retrieve the value of the property by its name- Specified by:
getPropertyin interfaceGroovyObject- Overrides:
getPropertyin classGroovyObjectSupport- Parameters:
property- is the name of the property to look at- Returns:
- the value of the property
-
getAt
Retrieve the value of the property by its index. A negative index will count backwards from the last column.- Parameters:
index- is the number of the column to look at- Returns:
- the value of the property
-
toString
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
entrySet
-
equals
-
get
-
hashCode
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-