Package groovy.sql
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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
getAt
(int index) Retrieve the value of the property by its index.getProperty
(String property) Retrieve the value of the property by its nameint
hashCode()
boolean
isEmpty()
keySet()
void
int
size()
toString()
values()
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass, setProperty
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.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:
getProperty
in interfaceGroovyObject
- Overrides:
getProperty
in 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
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap
-
containsValue
- Specified by:
containsValue
in interfaceMap
-
entrySet
-
equals
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-