|
|||||||||
| 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 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. |
| 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(ResultSet rs)
throws SQLException
rs - a ResultSet
SQLException - if a database error occurspublic static Timestamp toTimestamp(Date d)
d - a date
public static Iterator<ResultSetMetaDataWrapper> iterator(ResultSetMetaData resultSetMetaData)
resultSetMetaData - the ResultSetMetaData to iterate over
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||