Package groovy.sql
Class GroovyRowResult
- java.lang.Object
-
- groovy.lang.GroovyObjectSupport
-
- groovy.sql.GroovyRowResult
-
- All Implemented Interfaces:
GroovyObject,java.util.Map
public class GroovyRowResult extends GroovyObjectSupport implements java.util.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
-
-
Constructor Summary
Constructors Constructor Description GroovyRowResult(java.util.Map result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.SetentrySet()booleanequals(java.lang.Object o)java.lang.Objectget(java.lang.Object property)java.lang.ObjectgetAt(int index)Retrieve the value of the property by its index.java.lang.ObjectgetProperty(java.lang.String property)Retrieve the value of the property by its nameinthashCode()booleanisEmpty()java.util.SetkeySet()java.lang.Objectput(java.lang.Object key, java.lang.Object value)voidputAll(java.util.Map t)java.lang.Objectremove(java.lang.Object rawKey)intsize()java.lang.StringtoString()java.util.Collectionvalues()-
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass, setProperty
-
-
-
-
Method Detail
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
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
public java.lang.Object getAt(int index)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySetin interfacejava.util.Map
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.util.Map- Overrides:
equalsin classjava.lang.Object
-
get
public java.lang.Object get(java.lang.Object property)
- Specified by:
getin interfacejava.util.Map
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map- Overrides:
hashCodein classjava.lang.Object
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map
-
keySet
public java.util.Set keySet()
- Specified by:
keySetin interfacejava.util.Map
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
putin interfacejava.util.Map
-
putAll
public void putAll(java.util.Map t)
- Specified by:
putAllin interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object rawKey)
- Specified by:
removein interfacejava.util.Map
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map
-
values
public java.util.Collection values()
- Specified by:
valuesin interfacejava.util.Map
-
-