public class GroovyRowResult extends GroovyObjectSupport implements java.util.Map
Sql
class to return ResultSet
data in map
form; allowing access to the result of a SQL query by the name of the column, or by the column number.Constructor and Description |
---|
GroovyRowResult(java.util.Map result) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key)
Checks if the result contains (ignoring case) the given key.
|
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry> |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object property)
Find the property value for the given name (ignoring case).
|
java.lang.Object |
getAt(int index)
Retrieve the value of the property by its index.
|
java.lang.Object |
getProperty(java.lang.String property)
Retrieve the value of the property by its (case-insensitive) name.
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associates the specified value with the specified property name in this result.
|
void |
putAll(java.util.Map t)
Copies all of the mappings from the specified map to this result.
|
java.lang.Object |
remove(java.lang.Object rawKey) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection |
values() |
getMetaClass, invokeMethod, setMetaClass, setProperty
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- is the name of the property to look atpublic java.lang.Object getAt(int index)
index
- is the number of the column to look atpublic java.lang.String toString()
toString
in class java.lang.Object
public void clear()
clear
in interface java.util.Map
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
key
- the property name to look forpublic boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.util.Set<java.util.Map.Entry> entrySet()
entrySet
in interface java.util.Map
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.lang.Object
public java.lang.Object get(java.lang.Object property)
get
in interface java.util.Map
property
- the name of the property to getpublic int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Map
public java.util.Set keySet()
keySet
in interface java.util.Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
key
- the property name for the resultvalue
- the property value for the resultpublic void putAll(java.util.Map t)
putAll
method has returned.putAll
in interface java.util.Map
t
- the mappings to store in this resultpublic java.lang.Object remove(java.lang.Object rawKey)
remove
in interface java.util.Map
public int size()
size
in interface java.util.Map
public java.util.Collection values()
values
in interface java.util.Map