|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.
| Constructor Summary | |
|---|---|
SqlGroovyMethods()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlGroovyMethods()
| Method Detail |
|---|
public static GroovyRowResult toRowResult(java.sql.ResultSet rs)
throws java.sql.SQLException
rs - a ResultSet
java.sql.SQLException - if a database error occurspublic static java.sql.Timestamp toTimestamp(java.util.Date d)
d - a date
public static boolean asBoolean(GroovyResultSet grs)
grs - the GroovyResultSet
public static java.util.Iterator<ResultSetMetaDataWrapper> iterator(java.sql.ResultSetMetaData resultSetMetaData)
resultSetMetaData - the ResultSetMetaData to iterate over
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||