|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.sql.GroovyRowResult
public class GroovyRowResult extends GroovyObjectSupport
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.
Constructor Summary | |
GroovyRowResult(java.util.Map result)
|
Method Summary | |
---|---|
void
|
clear()
|
boolean
|
containsKey(java.lang.Object key)
|
boolean
|
containsValue(java.lang.Object value)
|
java.util.Set
|
entrySet()
|
boolean
|
equals(java.lang.Object o)
|
java.lang.Object
|
get(java.lang.Object property)
|
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 name |
int
|
hashCode()
|
boolean
|
isEmpty()
|
java.util.Set
|
keySet()
|
java.lang.Object
|
put(java.lang.Object key, java.lang.Object value)
|
void
|
putAll(java.util.Map t)
|
java.lang.Object
|
remove(java.lang.Object rawKey)
|
int
|
size()
|
java.lang.String
|
toString()
|
java.util.Collection
|
values()
|
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public GroovyRowResult(java.util.Map result)
Method Detail |
---|
public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set entrySet()
public boolean equals(java.lang.Object o)
public java.lang.Object get(java.lang.Object property)
public java.lang.Object getAt(int index)
index
- is the number of the column to look at
public java.lang.Object getProperty(java.lang.String property)
property
- is the name of the property to look at
public int hashCode()
public boolean isEmpty()
public java.util.Set keySet()
return result.put(key, value); public java.lang.Object put(java.lang.Object key, java.lang.Object value)
result.putAll(t); public void putAll(java.util.Map t)
public java.lang.Object remove(java.lang.Object rawKey)
public int size()
public java.lang.String toString()
public java.util.Collection values()
Groovy Documentation