org.codehaus.groovy.runtime
Class SqlGroovyMethods

java.lang.Object
  extended by org.codehaus.groovy.runtime.SqlGroovyMethods

public class SqlGroovyMethods
extends Object

This class defines all the new SQL-related groovy methods which enhance the normal JDK SQL classes when inside the Groovy environment. Static methods are used with the first parameter the destination class.

Author:
Paul King

Constructor Summary
SqlGroovyMethods()
           
 
Method Summary
static GroovyRowResult toRowResult(ResultSet rs)
          Returns a GroovyRowResult given a ResultSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlGroovyMethods

public SqlGroovyMethods()
Method Detail

toRowResult

public static GroovyRowResult toRowResult(ResultSet rs)
                                   throws SQLException
Returns a GroovyRowResult given a ResultSet.

Parameters:
rs - a ResultSet
Returns:
the resulting GroovyRowResult
Throws:
SQLException - if a database error occurs
Since:
1.6.0

Copyright © 2003-2009 The Codehaus. All rights reserved.