|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.runtime.SqlGroovyMethods
public class SqlGroovyMethods
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 java.util.Iterator
|
iterator(java.sql.ResultSetMetaData resultSetMetaData)
Return an Iterator given a ResultSetMetaData. |
static GroovyRowResult
|
toRowResult(java.sql.ResultSet rs)
Returns a GroovyRowResult given a ResultSet. |
static java.sql.Timestamp
|
toTimestamp(java.util.Date d)
Return a java.sql.Timestamp given a java.util.Date. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Method Detail |
---|
public static boolean asBoolean(GroovyResultSet grs)
grs
- the GroovyResultSet
public static java.util.Iterator iterator(java.sql.ResultSetMetaData resultSetMetaData)
resultSetMetaData
- the ResultSetMetaData to iterate over
public static GroovyRowResult toRowResult(java.sql.ResultSet rs)
rs
- a ResultSet
public static java.sql.Timestamp toTimestamp(java.util.Date d)
d
- a date
Groovy Documentation