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