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, setPropertypublic java.lang.Object getProperty(java.lang.String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportproperty - 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.Objectpublic void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mapkey - the property name to look forpublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.util.Set<java.util.Map.Entry> entrySet()
entrySet in interface java.util.Mappublic boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in class java.lang.Objectpublic java.lang.Object get(java.lang.Object property)
get in interface java.util.Mapproperty - the name of the property to getpublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapkey - 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.Mapt - the mappings to store in this resultpublic java.lang.Object remove(java.lang.Object rawKey)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Map