groovy.gdo
Class GroovyResultSet

java.lang.Object
  |
  +--groovy.lang.GroovyObjectSupport
        |
        +--groovy.gdo.GroovyResultSet
All Implemented Interfaces:
GroovyObject

public class GroovyResultSet
extends GroovyObjectSupport

Represents an extent of objects

Version:
$Revision: 1.3 $
Author:
Chris Stevenson, James Strachan

Constructor Summary
GroovyResultSet(ResultSet resultSet)
           
 
Method Summary
 void add(Map values)
          Adds a new row to this result set
 Object getProperty(String property)
           
 boolean next()
          Iterates to the next row
 void setProperty(String property, Object newValue)
          Sets the given property to the new value
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyResultSet

public GroovyResultSet(ResultSet resultSet)
Method Detail

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface GroovyObject
Overrides:
getProperty in class GroovyObjectSupport
Returns:
the given property

setProperty

public void setProperty(String property,
                        Object newValue)
Description copied from interface: GroovyObject
Sets the given property to the new value

Specified by:
setProperty in interface GroovyObject
Overrides:
setProperty in class GroovyObjectSupport

next

public boolean next()
             throws SQLException
Iterates to the next row

SQLException

add

public void add(Map values)
         throws SQLException
Adds a new row to this result set

Parameters:
values -
SQLException


Copyright © 2003 The Codehaus. All Rights Reserved.