| 
Groovy 1.8.5 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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.
| Method Summary | |
|---|---|
            static boolean
         | 
        
            asBoolean(GroovyResultSet grs)
            Coerce a GroovyResultSet to a boolean value.  | 
        
            static Iterator
         | 
        
            iterator(ResultSetMetaData resultSetMetaData)
            Return an Iterator given a ResultSetMetaData.  | 
        
            static GroovyRowResult
         | 
        
            toRowResult(ResultSet rs)
            Returns a GroovyRowResult given a ResultSet.  | 
        
            static Timestamp
         | 
        
            toTimestamp(Date d)
            Return a java.sql.Timestamp given a java.util.Date.  | 
        
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll | 
| Method Detail | 
|---|
public static boolean asBoolean(GroovyResultSet grs)
grs -  the GroovyResultSet
public static Iterator iterator(ResultSetMetaData resultSetMetaData)
resultSetMetaData -  the ResultSetMetaData to iterate over
public static GroovyRowResult toRowResult(ResultSet rs)
rs -  a ResultSet
public static Timestamp toTimestamp(Date d)
d -  a date
Copyright © 2003-2011 The Codehaus. All rights reserved.