public class SqlGroovyMethods
extends java.lang.Object
Constructor and Description |
---|
SqlGroovyMethods() |
Modifier and Type | Method and Description |
---|---|
static boolean |
asBoolean(GroovyResultSet grs)
Coerce a GroovyResultSet to a boolean value.
|
static java.util.Iterator<ResultSetMetaDataWrapper> |
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.
|
public static GroovyRowResult toRowResult(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- a ResultSetjava.sql.SQLException
- if a database error occurspublic static java.sql.Timestamp toTimestamp(java.util.Date d)
d
- a datepublic static boolean asBoolean(GroovyResultSet grs)
grs
- the GroovyResultSetpublic static java.util.Iterator<ResultSetMetaDataWrapper> iterator(java.sql.ResultSetMetaData resultSetMetaData)
resultSetMetaData
- the ResultSetMetaData to iterate over