Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.4) on Thu Jul 09 21:03:24 CEST 2015 -->
    <title>Sql (groovy-sql 2.4.4 API)</title>
    <meta name="date" content="2015-07-09">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="Sql (groovy-sql 2.4.4 API)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../index-all.html">Index</a></li>
        <li><a href="../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../index.html?groovy/sql/Sql" target="_top">Frames</a></li>
            <li><a href="Sql.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            <li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            <li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>groovy.sql</strong></div>

    <h2 title="[Java] Class Sql" class="title">[Java] Class Sql</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><ul class="inheritance"></ul></li><li>groovy.sql.Sql
</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">



    <p>  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
 </p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        
            <ul class="blockList">
                <li class="blockList"><a name="nested_summary"><!--   --></a>
                    <h3>Nested Class Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
                        <caption><span>Nested classes</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Modifiers</th>
                            <th class="colLast" scope="col">Name</th>
                            <th class="colLast" scope="col">Description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;class</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href='../../groovy/sql/Sql.AbstractQueryCommand.html'>Sql.AbstractQueryCommand</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                    </table>
                   </ul>
                </li>
            </ul>
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        
            <ul class="blockList">
                <li class="blockList"><a name="field_summary"><!--   --></a>
                    <h3>Field Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum constants summary table">
                        <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Modifiers</th>
                            <th class="colLast" scope="col">Name</th>
                            <th class="colLast" scope="col">Description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;int</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#ALL_RESULT_SETS">ALL_RESULT_SETS</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#ARRAY">ARRAY</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#BIGINT">BIGINT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#BINARY">BINARY</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#BIT">BIT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#BLOB">BLOB</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#BOOLEAN">BOOLEAN</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#CHAR">CHAR</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#CLOB">CLOB</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#DATALINK">DATALINK</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#DATE">DATE</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#DECIMAL">DECIMAL</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#DISTINCT">DISTINCT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#DOUBLE">DOUBLE</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;int</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#FIRST_RESULT_SET">FIRST_RESULT_SET</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#FLOAT">FLOAT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#INTEGER">INTEGER</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#JAVA_OBJECT">JAVA_OBJECT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;static&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html' title='Logger'>Logger</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#LOG">LOG</a></code></td>
                            <td class="colLast">Hook to allow derived classes to access the log</code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#LONGVARBINARY">LONGVARBINARY</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#LONGVARCHAR">LONGVARCHAR</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;int</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#NO_RESULT_SETS">NO_RESULT_SETS</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#NULL">NULL</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#NUMERIC">NUMERIC</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#OTHER">OTHER</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#REAL">REAL</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#REF">REF</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#SMALLINT">SMALLINT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#STRUCT">STRUCT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#TIME">TIME</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#TIMESTAMP">TIMESTAMP</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#TINYINT">TINYINT</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#VARBINARY">VARBINARY</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#VARCHAR">VARCHAR</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                    </table>
                   </ul>
                </li>
                
            </ul>
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        
        <!-- ======== CONSTRUCTOR SUMMARY ======== -->
        <ul class="blockList">
                <li class="blockList"><a name="constructor_summary"><!--   --></a>
                    <h3>Constructor Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table">
                        <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Constructor and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst">
                                <code><a href="#Sql(javax.sql.DataSource)">Sql</a></strong>
                                (<a href='http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html' title='DataSource'>DataSource</a> dataSource)</code><br>Constructs an SQL instance using the given DataSource. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst">
                                <code><a href="#Sql(java.sql.Connection)">Sql</a></strong>
                                (<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection)</code><br>Constructs an SQL instance using the given Connection. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst">
                                <code><a href="#Sql(groovy.sql.Sql)">Sql</a></strong>
                                (<a href='../../groovy/sql/Sql.html'>Sql</a> parent)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
        </ul>
        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#ARRAY(java.lang.Object)">ARRAY</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#BIGINT(java.lang.Object)">BIGINT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#BINARY(java.lang.Object)">BINARY</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#BIT(java.lang.Object)">BIT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#BLOB(java.lang.Object)">BLOB</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#BOOLEAN(java.lang.Object)">BOOLEAN</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#CHAR(java.lang.Object)">CHAR</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#CLOB(java.lang.Object)">CLOB</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#DATALINK(java.lang.Object)">DATALINK</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#DATE(java.lang.Object)">DATE</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#DECIMAL(java.lang.Object)">DECIMAL</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#DISTINCT(java.lang.Object)">DISTINCT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#DOUBLE(java.lang.Object)">DOUBLE</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#FLOAT(java.lang.Object)">FLOAT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#INTEGER(java.lang.Object)">INTEGER</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#JAVA_OBJECT(java.lang.Object)">JAVA_OBJECT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#LONGVARBINARY(java.lang.Object)">LONGVARBINARY</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#LONGVARCHAR(java.lang.Object)">LONGVARCHAR</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#NULL(java.lang.Object)">NULL</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#NUMERIC(java.lang.Object)">NUMERIC</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#OTHER(java.lang.Object)">OTHER</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#REAL(java.lang.Object)">REAL</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#REF(java.lang.Object)">REF</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#SMALLINT(java.lang.Object)">SMALLINT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#STRUCT(java.lang.Object)">STRUCT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#TIME(java.lang.Object)">TIME</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#TIMESTAMP(java.lang.Object)">TIMESTAMP</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#TINYINT(java.lang.Object)">TINYINT</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#VARBINARY(java.lang.Object)">VARBINARY</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#VARCHAR(java.lang.Object)">VARCHAR</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#asList(java.lang.String, java.sql.ResultSet)">asList</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs)</code><br>Hook to allow derived classes to override list of result collection behavior.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#asList(java.lang.String, java.sql.ResultSet, groovy.lang.Closure)">asList</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs, groovy.lang.Closure metaClosure)</code><br>Hook to allow derived classes to override list of result collection behavior.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#asList(java.lang.String, java.sql.ResultSet, int, int, groovy.lang.Closure)">asList</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#asSql(groovy.lang.GString, List<Object>)">asSql</a></strong>(groovy.lang.GString gstring, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; values)</code><br>Hook to allow derived classes to override sql generation from GStrings.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#buildSqlWithIndexedProps(java.lang.String)">buildSqlWithIndexedProps</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Hook to allow derived classes to override behavior associated with the
 parsing and indexing of parameters from a given sql statement.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#cacheConnection(groovy.lang.Closure)">cacheConnection</a></strong>(groovy.lang.Closure closure)</code><br>Caches the connection used while the closure is active.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#cacheStatements(groovy.lang.Closure)">cacheStatements</a></strong>(groovy.lang.Closure closure)</code><br>Caches every created preparedStatement in Closure <i>closure</i>
 Every cached preparedStatement is closed after closure has been called.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(java.lang.String)">call</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Performs a stored procedure call.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(groovy.lang.GString)">call</a></strong>(groovy.lang.GString gstring)</code><br>Performs a stored procedure call with the given embedded parameters.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(java.lang.String, List<Object>)">call</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Performs a stored procedure call with the given parameters.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(java.lang.String, java.lang.Object)">call</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Performs a stored procedure call with the given parameters.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(java.lang.String, List<Object>, groovy.lang.Closure)">call</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters.  </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#call(groovy.lang.GString, groovy.lang.Closure)">call</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callWithAllRows(groovy.lang.GString, groovy.lang.Closure)">callWithAllRows</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning a list of lists with the rows of the ResultSet(s).</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callWithAllRows(java.lang.String, List<Object>, groovy.lang.Closure)">callWithAllRows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning a list of lists with the rows of the ResultSet(s).</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callWithRows(groovy.lang.GString, groovy.lang.Closure)">callWithRows</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning the rows of the ResultSet.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callWithRows(java.lang.String, List<Object>, groovy.lang.Closure)">callWithRows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</code><br>Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning the rows of the ResultSet.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callWithRows(java.lang.String, List<Object>, int, groovy.lang.Closure)">callWithRows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int processResultsSets, groovy.lang.Closure closure)</code><br>Base internal method for call(), callWithRows(), and callWithAllRows() style of methods.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#checkForNamedParams(java.lang.String, List<Object>)">checkForNamedParams</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#close()">close</a></strong>()</code><br>If this SQL object was created with a Connection then this method closes
 the connection. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#closeResources(java.sql.Connection, java.sql.Statement, java.sql.ResultSet)">closeResources</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> results)</code><br>An extension point allowing derived classes to change the behavior
 of resource closing.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#closeResources(java.sql.Connection, java.sql.Statement)">closeResources</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement)</code><br>An extension point allowing the behavior of resource closing to be
 overridden in derived classes.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#closeResources(java.sql.Connection)">closeResources</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection)</code><br>An extension point allowing the behavior of resource closing to be
 overridden in derived classes.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#commit()">commit</a></strong>()</code><br>If this SQL object was created with a Connection then this method commits
 the connection. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#configure(java.sql.Statement)">configure</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement)</code><br>Provides a hook for derived classes to be able to configure JDBC statements.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#createConnection()">createConnection</a></strong>()</code><br>An extension point allowing derived classes to change the behavior of
 connection creation. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='../../groovy/sql/Sql.AbstractQueryCommand.html'>Sql.AbstractQueryCommand</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#createPreparedQueryCommand(java.lang.String, List<Object>)">createPreparedQueryCommand</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; queryParams)</code><br>Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations
 of the command class.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='../../groovy/sql/Sql.AbstractQueryCommand.html'>Sql.AbstractQueryCommand</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#createQueryCommand(java.lang.String)">createQueryCommand</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Factory for the QueryCommand command pattern object allows subclasses to
 supply implementations of the command class. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/DataSet.html'>DataSet</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#dataSet(java.lang.String)">dataSet</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> table)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/DataSet.html'>DataSet</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#dataSet(Class<?>)">dataSet</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html' title='Class'>Class</a>&lt;?&gt; type)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given Closure with each row of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, groovy.lang.Closure, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given <code>rowClosure</code> with each row of the
 result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, groovy.lang.Closure, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given <code>rowClosure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, List<Object>, groovy.lang.Closure, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given <code>rowClosure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, java.util.Map, groovy.lang.Closure, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)</a>
 allowing the named parameters to be supplied in a map.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.util.Map, java.lang.String, groovy.lang.Closure, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)</a>
 allowing the named parameters to be supplied as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, List<Object>, groovy.lang.Closure, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given Closure with each row of the result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, java.util.Map, groovy.lang.Closure, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.util.Map, java.lang.String, groovy.lang.Closure, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, List<Object>, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given Closure with each row of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, java.util.Map, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure closure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.util.Map, java.lang.String, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, List<Object>, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.lang.String, java.util.Map, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows, groovy.lang.Closure closure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(java.util.Map, java.lang.String, int, int, groovy.lang.Closure)">eachRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure closure)</code><br>A variant of <a href='#eachRow(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(groovy.lang.GString, groovy.lang.Closure, groovy.lang.Closure)">eachRow</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given Closure with each row of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(groovy.lang.GString, groovy.lang.Closure, int, int, groovy.lang.Closure)">eachRow</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</code><br>Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(groovy.lang.GString, int, int, groovy.lang.Closure)">eachRow</a></strong>(groovy.lang.GString gstring, int offset, int maxRows, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#eachRow(groovy.lang.GString, groovy.lang.Closure)">eachRow</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</code><br>Performs the given SQL query calling the given Closure with each row of the result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Executes the given piece of SQL.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String, groovy.lang.Closure)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure processResults)</code><br>Executes the given piece of SQL.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String, List<Object>)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Executes the given piece of SQL with parameters.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String, List<Object>, groovy.lang.Closure)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure processResults)</code><br>Executes the given piece of SQL with parameters.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.util.Map, java.lang.String)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>A variant of <a href='#execute(java.lang.String, java.util.List)'>execute(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.util.Map, java.lang.String, groovy.lang.Closure)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure processResults)</code><br>A variant of <a href='#execute(java.lang.String, java.util.List, groovy.lang.Closure)'>execute(String, java.util.List, Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String, java.lang.Object)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Executes the given piece of SQL with parameters.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(java.lang.String, java.lang.Object, groovy.lang.Closure)">execute</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params, groovy.lang.Closure processResults)</code><br>Executes the given piece of SQL with parameters.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(groovy.lang.GString)">execute</a></strong>(groovy.lang.GString gstring)</code><br>Executes the given SQL with embedded expressions inside.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#execute(groovy.lang.GString, groovy.lang.Closure)">execute</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure processResults)</code><br>Executes the given SQL with embedded expressions inside.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String, List<Object>)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String, List<Object>, List<String>)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.util.Map, java.lang.String)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>A variant of <a href='#executeInsert(java.lang.String, java.util.List)'>executeInsert(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.util.Map, java.lang.String, List<String>)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</code><br>A variant of <a href='#executeInsert(java.lang.String, java.util.List, java.util.List)'>executeInsert(String, List, List)</a>
 useful when providing the named parameters as named arguments.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String, java.lang.Object)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Executes the given SQL statement (typically an INSERT statement).</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String, java.lang.String)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>[] keyColumnNames)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(java.lang.String, java.lang.String, java.lang.Object)">executeInsert</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>[] keyColumnNames, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(groovy.lang.GString)">executeInsert</a></strong>(groovy.lang.GString gstring)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeInsert(groovy.lang.GString, List<String>)">executeInsert</a></strong>(groovy.lang.GString gstring, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</code><br>Executes the given SQL statement (typically an INSERT statement).
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#executePreparedQuery(java.lang.String, List<Object>)">executePreparedQuery</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Useful helper method which handles resource management when executing a
 prepared query which returns a result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeQuery(java.lang.String)">executeQuery</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Useful helper method which handles resource management when executing a
 query which returns a result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeUpdate(java.lang.String)">executeUpdate</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Executes the given SQL update.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeUpdate(java.lang.String, List<Object>)">executeUpdate</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Executes the given SQL update with parameters.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeUpdate(java.util.Map, java.lang.String)">executeUpdate</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>A variant of <a href='#executeUpdate(java.lang.String, java.util.List)'>executeUpdate(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeUpdate(java.lang.String, java.lang.Object)">executeUpdate</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Executes the given SQL update with parameters.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#executeUpdate(groovy.lang.GString)">executeUpdate</a></strong>(groovy.lang.GString gstring)</code><br>Executes the given SQL update with embedded expressions inside.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/ExpandedVariable.html'>ExpandedVariable</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#expand(java.lang.Object)">expand</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> object)</code><br>When using GString SQL queries, allows a variable to be expanded
 in the Sql string rather than representing an sql parameter.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#findWhereKeyword(java.lang.String)">findWhereKeyword</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Hook to allow derived classes to override where clause sniffing.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#firstRow(java.lang.String)">firstRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Performs the given SQL query and return the first row of the result set.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#firstRow(groovy.lang.GString)">firstRow</a></strong>(groovy.lang.GString gstring)</code><br>Performs the given SQL query and return
 the first row of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#firstRow(java.lang.String, List<Object>)">firstRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Performs the given SQL query and return the first row of the result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#firstRow(java.util.Map, java.lang.String)">firstRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>A variant of <a href='#firstRow(java.lang.String, java.util.List)'>firstRow(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#firstRow(java.lang.String, java.lang.Object)">firstRow</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Performs the given SQL query and return the first row of the result set.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getConnection()">getConnection</a></strong>()</code><br>If this instance was created with a single Connection then the connection
 is returned. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html' title='DataSource'>DataSource</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getDataSource()">getDataSource</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getParameters(groovy.lang.GString)">getParameters</a></strong>(groovy.lang.GString gstring)</code><br>Hook to allow derived classes to override behavior associated with
 extracting params from a GString.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getResultSetConcurrency()">getResultSetConcurrency</a></strong>()</code><br>Gets the resultSetConcurrency for statements created using the connection.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getResultSetHoldability()">getResultSetHoldability</a></strong>()</code><br>Gets the resultSetHoldability for statements created using the connection.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getResultSetType()">getResultSetType</a></strong>()</code><br>Gets the resultSetType for statements created using the connection.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUpdateCount()">getUpdateCount</a></strong>()</code><br>@return Returns the updateCount.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUpdatedParams(List<Object>, List<Tuple>)">getUpdatedParams</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;groovy.lang.Tuple&gt; indexPropList)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#in(int, java.lang.Object)">in</a></strong>(int type, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br>Create a new InParameter</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/InOutParameter.html'>InOutParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#inout(groovy.sql.InParameter)">inout</a></strong>(<a href='../../groovy/sql/InParameter.html'>InParameter</a> in)</code><br>Create an inout parameter using this in parameter.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isCacheNamedQueries()">isCacheNamedQueries</a></strong>()</code><br>@return boolean    true if caching is enabled (the default is true)</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isCacheStatements()">isCacheStatements</a></strong>()</code><br>@return boolean true if cache is enabled (default is false)</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isEnableNamedQueries()">isEnableNamedQueries</a></strong>()</code><br>@return boolean    true if named query processing is enabled (the default is true)</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isWithinBatch()">isWithinBatch</a></strong>()</code><br>Returns true if the current Sql object is currently executing a withBatch
 method call.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#loadDriver(java.lang.String)">loadDriver</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</code><br>Attempts to load the JDBC driver on the thread, current or system class
 loaders</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url)</code><br>Creates a new Sql instance given a JDBC connection URL.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String, java.util.Properties)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties)</code><br>Creates a new Sql instance given a JDBC connection URL
 and some properties.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String, java.util.Properties, java.lang.String)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</code><br>Creates a new Sql instance given a JDBC connection URL,
 some properties and a driver class name.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String, java.lang.String, java.lang.String)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password)</code><br>Creates a new Sql instance given a JDBC connection URL,
 a username and a password.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</code><br>Creates a new Sql instance given a JDBC connection URL,
 a username, a password and a driver class name.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(java.lang.String, java.lang.String)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</code><br>Creates a new Sql instance given a JDBC connection URL
 and a driver class name.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#newInstance(Map<String, Object>)">newInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; args)</code><br>Creates a new Sql instance given parameters in a Map.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#nullify(java.lang.String)">nullify</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Hook to allow derived classes to override null handling.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#out(int)">out</a></strong>(int type)</code><br>Create a new OutParameter</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#preCheckForNamedParams(java.lang.String)">preCheckForNamedParams</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>@deprecated Use <a href='#buildSqlWithIndexedProps(java.lang.String)'>buildSqlWithIndexedProps(String)</a> instead</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#query(java.lang.String, groovy.lang.Closure)">query</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#query(java.lang.String, List<Object>, groovy.lang.Closure)">query</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</code><br>Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#query(java.lang.String, java.util.Map, groovy.lang.Closure)">query</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, groovy.lang.Closure closure)</code><br>A variant of <a href='#query(java.lang.String, java.util.List, groovy.lang.Closure)'>query(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#query(java.util.Map, java.lang.String, groovy.lang.Closure)">query</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>A variant of <a href='#query(java.lang.String, java.util.List, groovy.lang.Closure)'>query(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#query(groovy.lang.GString, groovy.lang.Closure)">query</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</code><br>Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;<a href='../../groovy/sql/ResultSetOutParameter.html'>ResultSetOutParameter</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#resultSet(int)">resultSet</a></strong>(int type)</code><br>Create a new ResultSetOutParameter</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rollback()">rollback</a></strong>()</code><br>If this SQL object was created with a Connection then this method rolls back
 the connection. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>Performs the given SQL query and return the rows of the result set.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, int, int)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return the rows of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, int, int, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, List<Object>)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</code><br>Performs the given SQL query and return the rows of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.util.Map, java.lang.String)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List)'>rows(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, List<Object>, int, int)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, java.util.Map, int, int)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, int, int)'>rows(String, java.util.List, int, int)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.util.Map, java.lang.String, int, int)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, int, int)'>rows(String, java.util.List, int, int)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, java.lang.Object)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</code><br>Performs the given SQL query and return the rows of the result set.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, java.lang.Object, int, int)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params, int offset, int maxRows)</code><br>Performs the given SQL query and return the rows of the result set.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, List<Object>, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return the rows of the result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, java.util.Map, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure metaClosure)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, groovy.lang.Closure)'>rows(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.util.Map, java.lang.String, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, groovy.lang.Closure)'>rows(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, List<Object>, int, int, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.lang.String, java.util.Map, int, int, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>rows(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(java.util.Map, java.lang.String, int, int, groovy.lang.Closure)">rows</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br>A variant of <a href='#rows(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>rows(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(groovy.lang.GString, int, int)">rows</a></strong>(groovy.lang.GString sql, int offset, int maxRows)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(groovy.lang.GString)">rows</a></strong>(groovy.lang.GString gstring)</code><br>Performs the given SQL query and return the rows of the result set.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(groovy.lang.GString, groovy.lang.Closure)">rows</a></strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return the rows of the result set.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rows(groovy.lang.GString, int, int, groovy.lang.Closure)">rows</a></strong>(groovy.lang.GString gstring, int offset, int maxRows, groovy.lang.Closure metaClosure)</code><br>Performs the given SQL query and return a "page" of rows from the result set.  </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setCacheNamedQueries(boolean)">setCacheNamedQueries</a></strong>(boolean cacheNamedQueries)</code><br>Enables named query caching.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setCacheStatements(boolean)">setCacheStatements</a></strong>(boolean cacheStatements)</code><br>Enables statement caching.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setEnableNamedQueries(boolean)">setEnableNamedQueries</a></strong>(boolean enableNamedQueries)</code><br>Enables named query support:
 <ul>
     <li>if <i>enableNamedQueries</i> is true, queries with ':propname' and '?</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setInternalConnection(java.sql.Connection)">setInternalConnection</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> conn)</code><br>Stub needed for testing.  </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setObject(java.sql.PreparedStatement, int, java.lang.Object)">setObject</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a> statement, int i, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</code><br>Strategy method allowing derived classes to handle types differently
 such as for CLOBs etc.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setParameters(List<Object>, java.sql.PreparedStatement)">setParameters</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a> statement)</code><br>Hook to allow derived classes to override behavior associated with
 setting params for a prepared statement. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setResultSetConcurrency(int)">setResultSetConcurrency</a></strong>(int resultSetConcurrency)</code><br>Sets the resultSetConcurrency for statements created using the connection.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setResultSetHoldability(int)">setResultSetHoldability</a></strong>(int resultSetHoldability)</code><br>Sets the resultSetHoldability for statements created using the connection.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setResultSetType(int)">setResultSetType</a></strong>(int resultSetType)</code><br>Sets the resultSetType for statements created using the connection.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int[]</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withBatch(groovy.lang.Closure)">withBatch</a></strong>(groovy.lang.Closure closure)</code><br>Performs the closure (containing batch operations) within a batch.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int[]</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withBatch(int, groovy.lang.Closure)">withBatch</a></strong>(int batchSize, groovy.lang.Closure closure)</code><br>Performs the closure (containing batch operations) within a batch using a given batch size.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>int[]</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withBatch(java.lang.String, groovy.lang.Closure)">withBatch</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>Performs the closure (containing batch operations specific to an associated prepared statement)
 within a batch. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int[]</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withBatch(int, java.lang.String, groovy.lang.Closure)">withBatch</a></strong>(int batchSize, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</code><br>Performs the closure (containing batch operations specific to an associated prepared statement)
 within a batch using a given batch size.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, java.util.Properties, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL and properties.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, java.util.Properties, java.lang.String, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL,
 properties and driver classname. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, java.lang.String, java.lang.String, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL, user and password.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(java.lang.String, java.lang.String, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>static&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withInstance(Map<String, Object>, groovy.lang.Closure)">withInstance</a></strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; args, groovy.lang.Closure c)</code><br>Invokes a closure passing it a new Sql instance created from the given map of arguments.
 </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withStatement(groovy.lang.Closure)">withStatement</a></strong>(groovy.lang.Closure configureStatement)</code><br>Allows a closure to be passed in to configure the JDBC statements before they are executed.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#withTransaction(groovy.lang.Closure)">withTransaction</a></strong>(groovy.lang.Closure closure)</code><br>Performs the closure within a transaction using a cached connection.
 </td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Inherited Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table">
                        <caption><span>Inherited Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Methods inherited from class</th>
                            <th class="colLast" scope="col">Name</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>class <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a></strong></code></td>
                            <td class="colLast"><code><a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long, int)' title='wait'>wait</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait(long)' title='wait'>wait</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait()' title='wait'>wait</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals(java.lang.Object)' title='equals'>equals</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString()' title='toString'>toString</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode()' title='hashCode'>hashCode</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass()' title='getClass'>getClass</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify()' title='notify'>notify</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll()' title='notifyAll'>notifyAll</a></code></td>
                        </tr>
                    </table>
                   </ul>
              </li>
                
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            
            <!-- =========== FIELD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="field_detail">
                    <!--   -->
                </a>
                    <h3>Field Detail</h3>
                    
                        <a name="ALL_RESULT_SETS"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;int <strong>ALL_RESULT_SETS</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="ARRAY"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>ARRAY</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BIGINT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>BIGINT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BINARY"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>BINARY</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BIT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>BIT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BLOB"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>BLOB</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BOOLEAN"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>BOOLEAN</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="CHAR"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>CHAR</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="CLOB"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>CLOB</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DATALINK"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>DATALINK</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DATE"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>DATE</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DECIMAL"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>DECIMAL</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DISTINCT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>DISTINCT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DOUBLE"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>DOUBLE</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="FIRST_RESULT_SET"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;int <strong>FIRST_RESULT_SET</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="FLOAT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>FLOAT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="INTEGER"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>INTEGER</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="JAVA_OBJECT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>JAVA_OBJECT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="LOG"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;static&nbsp;final&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html' title='Logger'>Logger</a> <strong>LOG</strong></h4>
                                <p> Hook to allow derived classes to access the log
     </p>
                            </li>
                        </ul>
                    
                        <a name="LONGVARBINARY"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>LONGVARBINARY</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="LONGVARCHAR"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>LONGVARCHAR</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="NO_RESULT_SETS"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;int <strong>NO_RESULT_SETS</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="NULL"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>NULL</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="NUMERIC"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>NUMERIC</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="OTHER"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>OTHER</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="REAL"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>REAL</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="REF"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>REF</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="SMALLINT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>SMALLINT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="STRUCT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>STRUCT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TIME"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>TIME</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TIMESTAMP"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>TIMESTAMP</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TINYINT"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>TINYINT</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="VARBINARY"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>VARBINARY</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="VARCHAR"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;final&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>VARCHAR</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            

            

            

            
            <!-- =========== CONSTRUCTOR DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="constructor_detail">
                    <!--   -->
                </a>
                    <h3>Constructor Detail</h3>
                    
                        <a name="Sql(javax.sql.DataSource)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<strong>Sql</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html' title='DataSource'>DataSource</a> dataSource)</h4>
                                <p> Constructs an SQL instance using the given DataSource. Each operation
 will use a Connection from the DataSource pool and close it when the
 operation is completed putting it back into the pool.
     <DL><DT><B>Parameters:</B></DT><DD><code>dataSource</code> -  the DataSource to use</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="Sql(java.sql.Connection)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<strong>Sql</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection)</h4>
                                <p> Constructs an SQL instance using the given Connection. It is the caller's
 responsibility to close the Connection after the Sql instance has been
 used. Depending on which features you are using, you may be able to do
 this on the connection object directly but the preferred approach is to
 call the <a href='#close()'>close()</a> method which will close the connection but also
 free any caches resources.
     <DL><DT><B>Parameters:</B></DT><DD><code>connection</code> -  the Connection to use</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="Sql(groovy.sql.Sql)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<strong>Sql</strong>(<a href='../../groovy/sql/Sql.html'>Sql</a> parent)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="ARRAY(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>ARRAY</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BIGINT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>BIGINT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BINARY(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>BINARY</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BIT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>BIT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BLOB(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>BLOB</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="BOOLEAN(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>BOOLEAN</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="CHAR(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>CHAR</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="CLOB(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>CLOB</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DATALINK(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>DATALINK</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DATE(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>DATE</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DECIMAL(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>DECIMAL</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DISTINCT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>DISTINCT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="DOUBLE(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>DOUBLE</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="FLOAT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>FLOAT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="INTEGER(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>INTEGER</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="JAVA_OBJECT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>JAVA_OBJECT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="LONGVARBINARY(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>LONGVARBINARY</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="LONGVARCHAR(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>LONGVARCHAR</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="NULL(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>NULL</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="NUMERIC(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>NUMERIC</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="OTHER(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>OTHER</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="REAL(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>REAL</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="REF(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>REF</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="SMALLINT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>SMALLINT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="STRUCT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>STRUCT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TIME(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>TIME</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TIMESTAMP(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>TIMESTAMP</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="TINYINT(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>TINYINT</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="VARBINARY(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>VARBINARY</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="VARCHAR(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>VARCHAR</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="asList(java.lang.String, java.sql.ResultSet)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>asList</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs)</h4>
                                <p> Hook to allow derived classes to override list of result collection behavior.
 The default behavior is to return a list of GroovyRowResult objects corresponding
 to each row in the ResultSet.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  query to execute</DD><DD><code>rs</code> -   the ResultSet to process</DD></DL><DL><DT><B>Returns:</B></DT><DD>the resulting list of rows</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="asList(java.lang.String, java.sql.ResultSet, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>asList</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs, groovy.lang.Closure metaClosure)</h4>
                                <p> Hook to allow derived classes to override list of result collection behavior.
 The default behavior is to return a list of GroovyRowResult objects corresponding
 to each row in the ResultSet.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          query to execute</DD><DD><code>rs</code> -           the ResultSet to process</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>the resulting list of rows</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="asList(java.lang.String, java.sql.ResultSet, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>asList</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> rs, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="asSql(groovy.lang.GString, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> <strong>asSql</strong>(groovy.lang.GString gstring, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; values)</h4>
                                <p> Hook to allow derived classes to override sql generation from GStrings.
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>values</code> -   the values to embed</DD></DL><DL><DT><B>Returns:</B></DT><DD>the SQL version of the given query using ? instead of any parameter</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="buildSqlWithIndexedProps(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a> <strong>buildSqlWithIndexedProps</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Hook to allow derived classes to override behavior associated with the
 parsing and indexing of parameters from a given sql statement.
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the sql statement to process</DD></DL><DL><DT><B>Returns:</B></DT><DD>a <a href='../../groovy/sql/SqlWithParams.html' title='SqlWithParams'>SqlWithParams</a> instance containing the parsed sql
         and parameters containing the indexed location and property
         name of parameters or <CODE>null</CODE> if no parsing of
         the sql was performed.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="cacheConnection(groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>cacheConnection</strong>(groovy.lang.Closure closure)</h4>
                                <p> Caches the connection used while the closure is active.
 If the closure takes a single argument, it will be called
 with the connection, otherwise it will be called with no arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>closure</code> -  the given closure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="cacheStatements(groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>cacheStatements</strong>(groovy.lang.Closure closure)</h4>
                                <p> Caches every created preparedStatement in Closure <i>closure</i>
 Every cached preparedStatement is closed after closure has been called.
 If the closure takes a single argument, it will be called
 with the connection, otherwise it will be called with no arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>closure</code> -  the given closure</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#setCacheStatements(boolean)'>setCacheStatements(boolean)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>call</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Performs a stored procedure call.
 <p>
 Example usage (tested with MySQL) - suppose we have the following stored procedure:
 <pre>
 sql.execute """
     CREATE PROCEDURE HouseSwap(_first1 VARCHAR(50), _first2 VARCHAR(50))
     BEGIN
         DECLARE _loc1 INT;
         DECLARE _loc2 INT;
         SELECT location_id into _loc1 FROM PERSON where firstname = _first1;
         SELECT location_id into _loc2 FROM PERSON where firstname = _first2;
         UPDATE PERSON
         set location_id = case firstname
             when _first1 then _loc2
             when _first2 then _loc1
         end
         where (firstname = _first1 OR firstname = _first2);
     END
 """
 </pre>
 then you can invoke the procedure as follows:
 <pre>
 def rowsChanged = sql.call("{call HouseSwap('Guillaume', 'Paul')}")
 assert rowsChanged == 2
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>call</strong>(groovy.lang.GString gstring)</h4>
                                <p> Performs a stored procedure call with the given embedded parameters.
 <p>
 Example usage - see <a href='#call(java.lang.String)'>call(String)</a> for more details about
 creating a <code>HouseSwap(IN name1, IN name2)</code> stored procedure.
 Once created, it can be called like this:
 <pre>
 def p1 = 'Paul'
 def p2 = 'Guillaume'
 def rowsChanged = sql.call("{call HouseSwap($p1, $p2)}")
 assert rowsChanged == 2
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD><DD><a href='#call(java.lang.String)'>call(String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>call</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Performs a stored procedure call with the given parameters.
 <p>
 Example usage - see <a href='#call(java.lang.String)'>call(String)</a> for more details about
 creating a <code>HouseSwap(IN name1, IN name2)</code> stored procedure.
 Once created, it can be called like this:
 <pre>
 def rowsChanged = sql.call("{call HouseSwap(?, ?)}", ['Guillaume', 'Paul'])
 assert rowsChanged == 2
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#call(java.lang.String)'>call(String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>call</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Performs a stored procedure call with the given parameters.
 <p>
 An Object array variant of <a href='#call(java.lang.String, java.util.List)'>call(String, List)</a>.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#call(java.lang.String)'>call(String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>call</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters.  The closure
 is called once with all the out parameters.
 <p>
 Example usage - suppose we create a stored procedure (ignore its simplistic implementation):
 <pre>
 // Tested with MySql 5.0.75
 sql.execute """
     CREATE PROCEDURE Hemisphere(
         IN p_firstname VARCHAR(50),
         IN p_lastname VARCHAR(50),
         OUT ans VARCHAR(50))
     BEGIN
     DECLARE loc INT;
     SELECT location_id into loc FROM PERSON where firstname = p_firstname and lastname = p_lastname;
     CASE loc
         WHEN 40 THEN
             SET ans = 'Southern Hemisphere';
         ELSE
             SET ans = 'Northern Hemisphere';
     END CASE;
     END;
 """
 </pre>
 we can now call the stored procedure as follows:
 <pre>
 sql.call '{call Hemisphere(?, ?, ?)}', ['Guillaume', 'Laforge', Sql.VARCHAR], { dwells ->
     println dwells
 }
 </pre>
 which will output '<code>Northern Hemisphere</code>'.
 <p>
 We can also access stored functions with scalar return values where the return value
 will be treated as an OUT parameter. Here are examples for various databases for
 creating such a procedure:
 <pre>
 // Tested with MySql 5.0.75
 sql.execute """
     create function FullName(p_firstname VARCHAR(40)) returns VARCHAR(80)
     begin
         declare ans VARCHAR(80);
         SELECT CONCAT(firstname, ' ', lastname) INTO ans FROM PERSON WHERE firstname = p_firstname;
         return ans;
     end
 """

 // Tested with MS SQLServer Express 2008
 sql.execute """
     <CODE>create function FullName(@firstname VARCHAR(40)) returns VARCHAR(80)</CODE>
     begin
         declare <CODE>@ans</CODE> VARCHAR(80)
         <CODE>SET @ans = (SELECT firstname + ' ' + lastname FROM PERSON WHERE firstname = @firstname)</CODE>
         return <CODE>@ans</CODE>
     end
 """

 // Tested with Oracle XE 10g
 sql.execute """
     create function FullName(p_firstname VARCHAR) return VARCHAR is
     ans VARCHAR(80);
     begin
         SELECT CONCAT(CONCAT(firstname, ' '), lastname) INTO ans FROM PERSON WHERE firstname = p_firstname;
         return ans;
     end;
 """
 </pre>
 and here is how you access the stored function for all databases:
 <pre>
 sql.call("{? = call FullName(?)}", [Sql.VARCHAR, 'Sam']) { name ->
     assert name == 'Sam Pullara'
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="call(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>call</strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects.
 <p>
 See <a href='#call(java.lang.String, java.util.List, groovy.lang.Closure)'>call(String, List, Closure)</a> for more details about
 creating a <code>Hemisphere(IN first, IN last, OUT dwells)</code> stored procedure.
 Once created, it can be called like this:
 <pre>
 def first = 'Scott'
 def last = 'Davis'
 sql.call "{call Hemisphere($first, $last, ${Sql.VARCHAR})}", { dwells ->
     println dwells
 }
 </pre>
 <p>
 As another example, see <a href='#call(java.lang.String, java.util.List, groovy.lang.Closure)'>call(String, List, Closure)</a> for more details about
 creating a <code>FullName(IN first)</code> stored function.
 Once created, it can be called like this:
 <pre>
 def first = 'Sam'
 sql.call("{$Sql.VARCHAR = call FullName($first)}") { name ->
     assert name == 'Sam Pullara'
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#call(java.lang.String, java.util.List, groovy.lang.Closure)'>call(String, List, Closure)</a></DD><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="callWithAllRows(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt; <strong>callWithAllRows</strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning a list of lists with the rows of the ResultSet(s).
 <p>
 Use this when calling a stored procedure that utilizes both
 output parameters and returns multiple ResultSets.
 <p>
 Once created, the stored procedure can be called like this:
 <pre>
 def first = 'Jeff'
 def last = 'Sheets'
 def rowsList = sql.callWithAllRows "{call Hemisphere2($first, $last, ${Sql.VARCHAR})}", { dwells ->
     println dwells
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>closure</code> -  called once with all out parameter results</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list containing lists of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#callWithAllRows(java.lang.String, java.util.List, groovy.lang.Closure)'>callWithAllRows(String, List, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="callWithAllRows(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt; <strong>callWithAllRows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning a list of lists with the rows of the ResultSet(s).
 <p>
 Use this when calling a stored procedure that utilizes both
 output parameters and returns multiple ResultSets.
 <p>
 Once created, the stored procedure can be called like this:
 <pre>
 def rowsList = sql.callWithAllRows '{call Hemisphere2(?, ?, ?)}', ['Guillaume', 'Laforge', Sql.VARCHAR], { dwells ->
     println dwells
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>closure</code> -  called once with all out parameter results</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list containing lists of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#callWithRows(groovy.lang.GString, groovy.lang.Closure)'>callWithRows(GString, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="callWithRows(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>callWithRows</strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning the rows of the ResultSet.
 <p>
 Use this when calling a stored procedure that utilizes both
 output parameters and returns a single ResultSet.
 <p>
 Once created, the stored procedure can be called like this:
 <pre>
 def first = 'Jeff'
 def last = 'Sheets'
 def rows = sql.callWithRows "{call Hemisphere2($first, $last, ${Sql.VARCHAR})}", { dwells ->
     println dwells
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>closure</code> -  called once with all out parameter results</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#callWithRows(java.lang.String, java.util.List, groovy.lang.Closure)'>callWithRows(String, List, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="callWithRows(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>callWithRows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</h4>
                                <p> Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning the rows of the ResultSet.
 <p>
 Use this when calling a stored procedure that utilizes both
 output parameters and returns a single ResultSet.
 <p>
 Once created, the stored procedure can be called like this:
 <pre>
 def rows = sql.callWithRows '{call Hemisphere2(?, ?, ?)}', ['Guillaume', 'Laforge', Sql.VARCHAR], { dwells ->
     println dwells
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>closure</code> -  called once with all out parameter results</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#callWithRows(groovy.lang.GString, groovy.lang.Closure)'>callWithRows(GString, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="callWithRows(java.lang.String, List<Object>, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt;&gt; <strong>callWithRows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int processResultsSets, groovy.lang.Closure closure)</h4>
                                <p> Base internal method for call(), callWithRows(), and callWithAllRows() style of methods.
 <p>
 Performs a stored procedure call with the given parameters,
 calling the closure once with all result objects,
 and also returning the rows of the ResultSet(s) (if processResultSets is set to
 Sql.FIRST_RESULT_SET, Sql.ALL_RESULT_SETS)
 <p>
 Main purpose of processResultSets param is to retain original call() method
 performance when this is set to Sql.NO_RESULT_SETS
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>processResultsSets</code> -  the result sets to process, either Sql.NO_RESULT_SETS, Sql.FIRST_RESULT_SET, or Sql.ALL_RESULT_SETS</DD><DD><code>closure</code> -  called once with all out parameter results</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#callWithRows(java.lang.String, java.util.List, groovy.lang.Closure)'>callWithRows(String, List, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="checkForNamedParams(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a> <strong>checkForNamedParams</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="close()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>close</strong>()</h4>
                                <p> If this SQL object was created with a Connection then this method closes
 the connection. If this SQL object was created from a DataSource then
 this method only frees any cached objects (statements in particular).
     </p>
                            </li>
                        </ul>
                    
                        <a name="closeResources(java.sql.Connection, java.sql.Statement, java.sql.ResultSet)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>closeResources</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> results)</h4>
                                <p> An extension point allowing derived classes to change the behavior
 of resource closing.
     <DL><DT><B>Parameters:</B></DT><DD><code>connection</code> -  the connection to close</DD><DD><code>statement</code> -   the statement to close</DD><DD><code>results</code> -     the results to close</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="closeResources(java.sql.Connection, java.sql.Statement)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>closeResources</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement)</h4>
                                <p> An extension point allowing the behavior of resource closing to be
 overridden in derived classes.
     <DL><DT><B>Parameters:</B></DT><DD><code>connection</code> -  the connection to close</DD><DD><code>statement</code> -   the statement to close</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="closeResources(java.sql.Connection)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>closeResources</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> connection)</h4>
                                <p> An extension point allowing the behavior of resource closing to be
 overridden in derived classes.
     <DL><DT><B>Parameters:</B></DT><DD><code>connection</code> -  the connection to close</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="commit()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>commit</strong>()</h4>
                                <p> If this SQL object was created with a Connection then this method commits
 the connection. If this SQL object was created from a DataSource then
 this method does nothing.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     </p>
                            </li>
                        </ul>
                    
                        <a name="configure(java.sql.Statement)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>configure</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a> statement)</h4>
                                <p> Provides a hook for derived classes to be able to configure JDBC statements.
 Default behavior is to call a previously saved closure, if any, using the
 statement as a parameter.
     <DL><DT><B>Parameters:</B></DT><DD><code>statement</code> -  the statement to configure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="createConnection()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> <strong>createConnection</strong>()</h4>
                                <p> An extension point allowing derived classes to change the behavior of
 connection creation. The default behavior is to either use the
 supplied connection or obtain it from the supplied datasource.<DL><DT><B>throws:</B></DT><DD>java.sql.SQLException if a SQL error occurs</DD></DL>
     <DL><DT><B>Returns:</B></DT><DD>the connection associated with this Sql</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="createPreparedQueryCommand(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='../../groovy/sql/Sql.AbstractQueryCommand.html'>Sql.AbstractQueryCommand</a> <strong>createPreparedQueryCommand</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; queryParams)</h4>
                                <p> Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations
 of the command class.
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          statement to be executed, including optional parameter placeholders (?)</DD><DD><code>queryParams</code> -  List of parameter values corresponding to parameter placeholders</DD></DL><DL><DT><B>Returns:</B></DT><DD>a command - invoke its execute() and closeResource() methods</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#createQueryCommand(java.lang.String)'>createQueryCommand(String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="createQueryCommand(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='../../groovy/sql/Sql.AbstractQueryCommand.html'>Sql.AbstractQueryCommand</a> <strong>createQueryCommand</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Factory for the QueryCommand command pattern object allows subclasses to
 supply implementations of the command class. The factory will be used in a pattern
 similar to:
 <pre>
 AbstractQueryCommand q = createQueryCommand("update TABLE set count = 0) where count is null");
 try {
     ResultSet rs = q.execute();
     return asList(rs);
 } finally {
     q.closeResources();
 }
 </pre>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  statement to be executed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a command - invoke its execute() and closeResource() methods</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="dataSet(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/DataSet.html'>DataSet</a> <strong>dataSet</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> table)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="dataSet(Class<?>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/DataSet.html'>DataSet</a> <strong>dataSet</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html' title='Class'>Class</a>&lt;?&gt; type)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given Closure with each row of the result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 <p>
 Example usages:
 <pre>
 sql.eachRow("select * from PERSON where firstname like 'S%'") { row ->
    println "$row.firstname ${row[2]}}"
 }

 sql.eachRow "call my_stored_proc_returning_resultset()", {
     println it.firstname
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, groovy.lang.Closure, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given <code>rowClosure</code> with each row of the
 result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 <p>
 Example usage:
 <pre>
 def printColNames = { meta ->
     (1..meta.columnCount).each {
         print meta.getColumnLabel(it).padRight(20)
     }
     println()
 }
 def printRow = { row ->
     row.toRowResult().values().each{ print it.toString().padRight(20) }
     println()
 }
 sql.eachRow("select * from PERSON", printColNames, printRow)
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, groovy.lang.Closure, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given <code>rowClosure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 <p>
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, List<Object>, groovy.lang.Closure, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given <code>rowClosure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 <p>
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>params</code> -       a list of parameters</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, java.util.Map, groovy.lang.Closure, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)</a>
 allowing the named parameters to be supplied in a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>map</code> -          a map containing the named parameters</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.util.Map, java.lang.String, groovy.lang.Closure, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)</a>
 allowing the named parameters to be supplied as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>map</code> -          a map containing the named parameters</DD><DD><code>sql</code> -          the sql statement</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, List<Object>, groovy.lang.Closure, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given Closure with each row of the result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usage:
 <pre>
 def printColNames = { meta ->
     (1..meta.columnCount).each {
         print meta.getColumnLabel(it).padRight(20)
     }
     println()
 }
 def printRow = { row ->
     row.toRowResult().values().each{ print it.toString().padRight(20) }
     println()
 }
 sql.eachRow("select * from PERSON where lastname like ?", ['%a%'], printColNames, printRow)
 </pre>
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>params</code> -       a list of parameters</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, java.util.Map, groovy.lang.Closure, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the sql statement</DD><DD><code>params</code> -       a map of named parameters</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.util.Map, java.lang.String, groovy.lang.Closure, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -       a map of named parameters</DD><DD><code>sql</code> -          the sql statement</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given Closure with each row of the result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usage:
 <pre>
 sql.eachRow("select * from PERSON where lastname like ?", ['%a%']) { row ->
     println "${row[1]} $row.lastname"
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, java.util.Map, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a map of named parameters</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.util.Map, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, groovy.lang.Closure)'>eachRow(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -   a map of named parameters</DD><DD><code>sql</code> -      the sql statement</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, List<Object>, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.lang.String, java.util.Map, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a map of named parameters</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(java.util.Map, java.lang.String, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#eachRow(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>eachRow(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -   a map of named parameters</DD><DD><code>sql</code> -      the sql statement</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(groovy.lang.GString, groovy.lang.Closure, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given Closure with each row of the result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 <p>
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 def printColNames = { meta ->
     (1..meta.columnCount).each {
         print meta.getColumnLabel(it).padRight(20)
     }
     println()
 }
 def printRow = { row ->
     row.toRowResult().values().each{ print it.toString().padRight(20) }
     println()
 }
 sql.eachRow("select * from PERSON where location_id < $location", printColNames, printRow)
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -      a GString containing the SQL query with embedded params</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(groovy.lang.GString, groovy.lang.Closure, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure, int offset, int maxRows, groovy.lang.Closure rowClosure)</h4>
                                <p> Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain GString expressions.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -      a GString containing the SQL query with embedded params</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>rowClosure</code> -   called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(groovy.lang.GString, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(groovy.lang.GString gstring, int offset, int maxRows, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at
 the provided <code>offset</code>, and including up to <code>maxRows</code> number of rows.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 The query may contain GString expressions.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="eachRow(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>eachRow</strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query calling the given Closure with each row of the result set.
 The row will be a <code>GroovyResultSet</code> which is a <code>ResultSet</code>
 that supports accessing the fields using property style notation and ordinal index values.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 sql.eachRow("select * from PERSON where location_id < $location") { row ->
     println row.firstname
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Executes the given piece of SQL.
 Also saves the updateCount, if any, for subsequent examination.
 <p>
 Example usages:
 <pre>
 sql.execute "DROP TABLE IF EXISTS person"

 sql.execute """
     CREATE TABLE person (
         id INTEGER NOT NULL,
         firstname VARCHAR(100),
         lastname VARCHAR(100),
         location_id INTEGER
     )
 """

 sql.execute """
     INSERT INTO person (id, firstname, lastname, location_id) VALUES (4, 'Paul', 'King', 40)
 """
 assert sql.updateCount == 1
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL to execute</DD></DL><DL><DT><B>Returns:</B></DT><DD><code>true</code> if the first result is a <code>ResultSet</code>
         object; <code>false</code> if it is an update count or there are
         no results</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure processResults)</h4>
                                <p> Executes the given piece of SQL.
 Also calls the provided processResults Closure to process any ResultSet or UpdateCount results that executing the SQL might produce.
 <p>
 Example usages:
 <pre>
 boolean first = true
 sql.execute "{call FindAllByFirst('J')}", { isResultSet, result ->
   if (first) {
     first = false
     assert !isResultSet && result == 0
   } else {
     assert isResultSet && result == [[ID:1, FIRSTNAME:'James', LASTNAME:'Strachan'], [ID:4, FIRSTNAME:'Jean', LASTNAME:'Gabin']]
   }
 }
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL to execute</DD><DD><code>processResults</code> -  a Closure which will be passed two parameters: either <CODE>true</CODE> plus a list of GroovyRowResult values
                       derived from <CODE>statement.getResultSet()</CODE> or <CODE>false</CODE> plus the update count from <CODE>statement.getUpdateCount()</CODE>.
                       The closure will be called for each result produced from executing the SQL.</DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Executes the given piece of SQL with parameters.
 Also saves the updateCount, if any, for subsequent examination.
 <p>
 Example usage:
 <pre>
 sql.execute """
     insert into PERSON (id, firstname, lastname, location_id) values (?, ?, ?, ?)
 """, [1, "Guillaume", "Laforge", 10]
 assert sql.updateCount == 1
 </pre>
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD><code>true</code> if the first result is a <code>ResultSet</code>
         object; <code>false</code> if it is an update count or there are
         no results</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure processResults)</h4>
                                <p> Executes the given piece of SQL with parameters.
 Also calls the provided processResults Closure to process any ResultSet or UpdateCount results that executing the SQL might produce.
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD><DD><code>processResults</code> -  a Closure which will be passed two parameters: either <CODE>true</CODE> plus a list of GroovyRowResult values
                       derived from <CODE>statement.getResultSet()</CODE> or <CODE>false</CODE> plus the update count from <CODE>statement.getUpdateCount()</CODE>.
                       The closure will be called for each result produced from executing the SQL.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#execute(java.lang.String, groovy.lang.Closure)'>execute(String, Closure)</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.util.Map, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> A variant of <a href='#execute(java.lang.String, java.util.List)'>execute(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD><code>true</code> if the first result is a <code>ResultSet</code>
         object; <code>false</code> if it is an update count or there are
         no results</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.util.Map, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure processResults)</h4>
                                <p> A variant of <a href='#execute(java.lang.String, java.util.List, groovy.lang.Closure)'>execute(String, java.util.List, Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     the SQL statement</DD><DD><code>processResults</code> -  a Closure which will be passed two parameters: either <CODE>true</CODE> plus a list of GroovyRowResult values
                       derived from <CODE>statement.getResultSet()</CODE> or <CODE>false</CODE> plus the update count from <CODE>statement.getUpdateCount()</CODE>.
                       The closure will be called for each result produced from executing the SQL.</DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Executes the given piece of SQL with parameters.
 <p>
 An Object array variant of <a href='#execute(java.lang.String, java.util.List)'>execute(String, List)</a>.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD><code>true</code> if the first result is a <code>ResultSet</code>
         object; <code>false</code> if it is an update count or there are
         no results</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(java.lang.String, java.lang.Object, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>execute</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params, groovy.lang.Closure processResults)</h4>
                                <p> Executes the given piece of SQL with parameters.
 <p>
 An Object array variant of <a href='#execute(java.lang.String, java.util.List, groovy.lang.Closure)'>execute(String, List, Closure)</a>.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD><DD><code>processResults</code> -  a Closure which will be passed two parameters: either <CODE>true</CODE> plus a list of GroovyRowResult values
                       derived from <CODE>statement.getResultSet()</CODE> or <CODE>false</CODE> plus the update count from <CODE>statement.getUpdateCount()</CODE>.
                       The closure will be called for each result produced from executing the SQL.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#execute(java.lang.String, java.util.List, groovy.lang.Closure)'>execute(String, List, Closure)</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>execute</strong>(groovy.lang.GString gstring)</h4>
                                <p> Executes the given SQL with embedded expressions inside.
 Also saves the updateCount, if any, for subsequent examination.
 <p>
 Example usage:
 <pre>
 def scott = [firstname: "Scott", lastname: "Davis", id: 5, location_id: 50]
 sql.execute """
     insert into PERSON (id, firstname, lastname, location_id) values ($scott.id, $scott.firstname, $scott.lastname, $scott.location_id)
 """
 assert sql.updateCount == 1
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD><code>true</code> if the first result is a <code>ResultSet</code>
         object; <code>false</code> if it is an update count or there are
         no results</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="execute(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>execute</strong>(groovy.lang.GString gstring, groovy.lang.Closure processResults)</h4>
                                <p> Executes the given SQL with embedded expressions inside.
 Also calls the provided processResults Closure to process any ResultSet or UpdateCount results that executing the SQL might produce.
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>processResults</code> -  a Closure which will be passed two parameters: either <CODE>true</CODE> plus a list of GroovyRowResult values
                       derived from <CODE>statement.getResultSet()</CODE> or <CODE>false</CODE> plus the update count from <CODE>statement.getUpdateCount()</CODE>.
                       The closure will be called for each result produced from executing the SQL.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD><DD><a href='#execute(java.lang.String, java.util.List, groovy.lang.Closure)'>execute(String, List, Closure)</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 Use this variant when you want to receive the values of any
 auto-generated columns, such as an autoincrement ID field.
 See <a href='#executeInsert(groovy.lang.GString)'>executeInsert(GString)</a> for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  The SQL statement to execute</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated column values for each
         inserted row (typically auto-generated keys)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 Use this variant when you want to receive the values of any
 auto-generated columns, such as an autoincrement ID field.
 The query may contain placeholder question marks which match the given list of parameters.
 See <a href='#executeInsert(groovy.lang.GString)'>executeInsert(GString)</a> for more details.
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     The SQL statement to execute</DD><DD><code>params</code> -  The parameter values that will be substituted
               into the SQL statement's parameter slots</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated column values for each
         inserted row (typically auto-generated keys)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String, List<Object>, List<String>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 Use this variant when you want to receive the values of any auto-generated columns,
 such as an autoincrement ID field (or fields) and you know the column name(s) of the ID field(s).
 The query may contain placeholder question marks which match the given list of parameters.
 See <a href='#executeInsert(groovy.lang.GString)'>executeInsert(GString)</a> for more details.
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -             The SQL statement to execute</DD><DD><code>params</code> -          The parameter values that will be substituted
                       into the SQL statement's parameter slots</DD><DD><code>keyColumnNames</code> -  a list of column names indicating the columns that should be returned from the
                       inserted row or rows (some drivers may be case sensitive, e.g. may require uppercase names)</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated row results for each inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#prepareStatement(java.lang.String, java.lang.String)' title='Connection.prepareStatement'>Connection.prepareStatement</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.util.Map, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> A variant of <a href='#executeInsert(java.lang.String, java.util.List)'>executeInsert(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     The SQL statement to execute</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated column values for each
         inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.util.Map, java.lang.String, List<String>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</h4>
                                <p> A variant of <a href='#executeInsert(java.lang.String, java.util.List, java.util.List)'>executeInsert(String, List, List)</a>
 useful when providing the named parameters as named arguments.
 This variant allows you to receive the values of any auto-generated columns,
 such as an autoincrement ID field (or fields) when you know the column name(s) of the ID field(s).<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -          a map containing the named parameters</DD><DD><code>sql</code> -             The SQL statement to execute</DD><DD><code>keyColumnNames</code> -  a list of column names indicating the columns that should be returned from the
                       inserted row or rows (some drivers may be case sensitive, e.g. may require uppercase names)</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated row results for each inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#prepareStatement(java.lang.String, java.lang.String)' title='Connection.prepareStatement'>Connection.prepareStatement</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 <p>
 An Object array variant of <a href='#executeInsert(java.lang.String, java.util.List)'>executeInsert(String, List)</a>.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     The SQL statement to execute</DD><DD><code>params</code> -  The parameter values that will be substituted
               into the SQL statement's parameter slots</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated column values for each
         inserted row (typically auto-generated keys)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>[] keyColumnNames)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 This variant allows you to receive the values of any auto-generated columns,
 such as an autoincrement ID field (or fields) when you know the column name(s) of the ID field(s).
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -             The SQL statement to execute</DD><DD><code>keyColumnNames</code> -  an array of column names indicating the columns that should be returned from the
                       inserted row or rows (some drivers may be case sensitive, e.g. may require uppercase names)</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated row results for each inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(java.lang.String, java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>executeInsert</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>[] keyColumnNames, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 This variant allows you to receive the values of any auto-generated columns,
 such as an autoincrement ID field (or fields) when you know the column name(s) of the ID field(s).
 <p>
 An array variant of <a href='#executeInsert(java.lang.String, java.util.List, java.util.List)'>executeInsert(String, List, List)</a>.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -             The SQL statement to execute</DD><DD><code>keyColumnNames</code> -  an array of column names indicating the columns that should be returned from the
                       inserted row or rows (some drivers may be case sensitive, e.g. may require uppercase names)</DD><DD><code>params</code> -          The parameter values that will be substituted
                       into the SQL statement's parameter slots</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated row results for each inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt;&gt; <strong>executeInsert</strong>(groovy.lang.GString gstring)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 Use this variant when you want to receive the values of any
 auto-generated columns, such as an autoincrement ID field.
 The query may contain GString expressions.
 <p>
 Generated key values can be accessed using
 array notation. For example, to return the second auto-generated
 column value of the third row, use <code>keys[3][1]</code>. The
 method is designed to be used with SQL INSERT statements, but is
 not limited to them.
 <p>
 The standard use for this method is when a table has an
 autoincrement ID column and you want to know what the ID is for
 a newly inserted row. In this example, we insert a single row
 into a table in which the first column contains the autoincrement ID:
 <pre>
 def sql = Sql.newInstance("jdbc:mysql://localhost:3306/groovy",
                           "user",
                           "password",
                           "com.mysql.jdbc.Driver")

 def keys = sql.executeInsert("insert into test_table (INT_DATA, STRING_DATA) "
                       + "VALUES (1, 'Key Largo')")

 def id = keys[0][0]

 // 'id' now contains the value of the new row's ID column.
 // It can be used to update an object representation's
 // id attribute for example.
 ...
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated column values for each
         inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeInsert(groovy.lang.GString, List<String>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>executeInsert</strong>(groovy.lang.GString gstring, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>&gt; keyColumnNames)</h4>
                                <p> Executes the given SQL statement (typically an INSERT statement).
 Use this variant when you want to receive the values of any auto-generated columns,
 such as an autoincrement ID field (or fields) and you know the column name(s) of the ID field(s).
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -         a GString containing the SQL query with embedded params</DD><DD><code>keyColumnNames</code> -  a list of column names indicating the columns that should be returned from the
                       inserted row or rows (some drivers may be case sensitive, e.g. may require uppercase names)</DD></DL><DL><DT><B>Returns:</B></DT><DD>A list of the auto-generated row results for each inserted row (typically auto-generated keys)</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#prepareStatement(java.lang.String, java.lang.String)' title='Connection.prepareStatement'>Connection.prepareStatement</a></DD><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL><DL><DT><B>Since:</B></DT><DD>2.3.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executePreparedQuery(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;final&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> <strong>executePreparedQuery</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Useful helper method which handles resource management when executing a
 prepared query which returns a result set.
 Derived classes of Sql can override "createPreparedQueryCommand" and then
 call this method to access the ResultSet returned from the provided query.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     query to execute</DD><DD><code>params</code> -  parameters matching question mark placeholders in the query</DD></DL><DL><DT><B>Returns:</B></DT><DD>the resulting ResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeQuery(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;final&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/ResultSet.html' title='ResultSet'>ResultSet</a> <strong>executeQuery</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Useful helper method which handles resource management when executing a
 query which returns a result set.
 Derived classes of Sql can override "createQueryCommand" and then call
 this method to access the ResultSet returned from the provided query
 or alternatively can use the higher-level method of Sql which return
 result sets which are funnelled through this method, e.g. eachRow, query.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  query to execute</DD></DL><DL><DT><B>Returns:</B></DT><DD>the resulting ResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeUpdate(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>executeUpdate</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Executes the given SQL update.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL to execute</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeUpdate(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>executeUpdate</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Executes the given SQL update with parameters.
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeUpdate(java.util.Map, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>executeUpdate</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> A variant of <a href='#executeUpdate(java.lang.String, java.util.List)'>executeUpdate(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeUpdate(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>executeUpdate</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Executes the given SQL update with parameters.
 <p>
 An Object array variant of <a href='#executeUpdate(java.lang.String, java.util.List)'>executeUpdate(String, List)</a>.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="executeUpdate(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>executeUpdate</strong>(groovy.lang.GString gstring)</h4>
                                <p> Executes the given SQL update with embedded expressions inside.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>the number of rows updated or 0 for SQL statements that return nothing</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="expand(java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/ExpandedVariable.html'>ExpandedVariable</a> <strong>expand</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> object)</h4>
                                <p> When using GString SQL queries, allows a variable to be expanded
 in the Sql string rather than representing an sql parameter.
 <p>
 Example usage:
 <pre>
 def fieldName = 'firstname'
 def fieldOp = Sql.expand('like')
 def fieldVal = '%a%'
 sql.query "select * from PERSON where ${Sql.expand(fieldName)} $fieldOp ${fieldVal}", { ResultSet rs ->
     while (rs.next()) println rs.getString('firstname')
 }
 // query will be 'select * from PERSON where firstname like ?'
 // params will be [fieldVal]
 </pre>
     <DL><DT><B>Parameters:</B></DT><DD><code>object</code> -  the object of interest</DD></DL><DL><DT><B>Returns:</B></DT><DD>the expanded variable</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="findWhereKeyword(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;int <strong>findWhereKeyword</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Hook to allow derived classes to override where clause sniffing.
 Default behavior is to find the first 'where' keyword in the sql
 doing simple avoidance of the word 'where' within quotes.
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>the index of the found keyword or -1 if not found</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="firstRow(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a> <strong>firstRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Performs the given SQL query and return the first row of the result set.
 <p>
 Example usage:
 <pre>
 def ans = sql.firstRow("select * from PERSON where firstname like 'S%'")
 println ans.firstname
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>a GroovyRowResult object or <code>null</code> if no row is found</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="firstRow(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a> <strong>firstRow</strong>(groovy.lang.GString gstring)</h4>
                                <p> Performs the given SQL query and return
 the first row of the result set.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 def ans = sql.firstRow("select * from PERSON where location_id < $location")
 println ans.firstname
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>a GroovyRowResult object or <code>null</code> if no row is found</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="firstRow(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a> <strong>firstRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Performs the given SQL query and return the first row of the result set.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usages:
 <pre>
 def ans = sql.firstRow("select * from PERSON where lastname like ?", ['%a%'])
 println ans.firstname
 </pre>
 If your database returns scalar functions as ResultSets, you can also use firstRow
 to gain access to stored procedure results, e.g. using hsqldb 1.9 RC4:
 <pre>
 sql.execute """
     create function FullName(p_firstname VARCHAR(40)) returns VARCHAR(80)
     BEGIN atomic
     DECLARE ans VARCHAR(80);
     SET ans = (SELECT firstname || ' ' || lastname FROM PERSON WHERE firstname = p_firstname);
     RETURN ans;
     END
 """

 assert sql.firstRow("{call FullName(?)}", ['Sam'])[0] == 'Sam Pullara'
 </pre>
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> list. See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>a GroovyRowResult object or <code>null</code> if no row is found</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="firstRow(java.util.Map, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a> <strong>firstRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> A variant of <a href='#firstRow(java.lang.String, java.util.List)'>firstRow(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>a GroovyRowResult object or <code>null</code> if no row is found</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="firstRow(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../groovy/sql/GroovyRowResult.html'>GroovyRowResult</a> <strong>firstRow</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Performs the given SQL query and return the first row of the result set.
 <p>
 An Object array variant of <a href='#firstRow(java.lang.String, java.util.List)'>firstRow(String, List)</a>.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>a GroovyRowResult object or <code>null</code> if no row is found</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getConnection()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> <strong>getConnection</strong>()</h4>
                                <p> If this instance was created with a single Connection then the connection
 is returned. Otherwise if this instance was created with a DataSource
 then this method returns null
     <DL><DT><B>Returns:</B></DT><DD>the connection wired into this object, or null if this object
         uses a DataSource</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getDataSource()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/javax/sql/DataSource.html' title='DataSource'>DataSource</a> <strong>getDataSource</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getParameters(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; <strong>getParameters</strong>(groovy.lang.GString gstring)</h4>
                                <p> Hook to allow derived classes to override behavior associated with
 extracting params from a GString.
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>extracts the parameters from the expression as a List</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getResultSetConcurrency()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>getResultSetConcurrency</strong>()</h4>
                                <p> Gets the resultSetConcurrency for statements created using the connection.
     <DL><DT><B>Returns:</B></DT><DD>the current resultSetConcurrency value</DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getResultSetHoldability()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>getResultSetHoldability</strong>()</h4>
                                <p> Gets the resultSetHoldability for statements created using the connection.
     <DL><DT><B>Returns:</B></DT><DD>the current resultSetHoldability value or -1 if not set</DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getResultSetType()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>getResultSetType</strong>()</h4>
                                <p> Gets the resultSetType for statements created using the connection.
     <DL><DT><B>Returns:</B></DT><DD>the current resultSetType value</DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getUpdateCount()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int <strong>getUpdateCount</strong>()</h4>
                                <p>
     <DL><DT><B>Returns:</B></DT><DD>Returns the updateCount.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getUpdatedParams(List<Object>, List<Tuple>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; <strong>getUpdatedParams</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;groovy.lang.Tuple&gt; indexPropList)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="in(int, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InParameter.html'>InParameter</a> <strong>in</strong>(int type, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p> Create a new InParameter
     <DL><DT><B>Parameters:</B></DT><DD><code>type</code> -   the JDBC data type</DD><DD><code>value</code> -  the object value</DD></DL><DL><DT><B>Returns:</B></DT><DD>an InParameter</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="inout(groovy.sql.InParameter)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/InOutParameter.html'>InOutParameter</a> <strong>inout</strong>(<a href='../../groovy/sql/InParameter.html'>InParameter</a> in)</h4>
                                <p> Create an inout parameter using this in parameter.
     <DL><DT><B>Parameters:</B></DT><DD><code>in</code> -  the InParameter of interest</DD></DL><DL><DT><B>Returns:</B></DT><DD>the resulting InOutParameter</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="isCacheNamedQueries()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>isCacheNamedQueries</strong>()</h4>
                                <p>
     <DL><DT><B>Returns:</B></DT><DD>boolean    true if caching is enabled (the default is true)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="isCacheStatements()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>isCacheStatements</strong>()</h4>
                                <p>
     <DL><DT><B>Returns:</B></DT><DD>boolean true if cache is enabled (default is false)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="isEnableNamedQueries()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>isEnableNamedQueries</strong>()</h4>
                                <p>
     <DL><DT><B>Returns:</B></DT><DD>boolean    true if named query processing is enabled (the default is true)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="isWithinBatch()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>isWithinBatch</strong>()</h4>
                                <p> Returns true if the current Sql object is currently executing a withBatch
 method call.
     <DL><DT><B>Returns:</B></DT><DD>true if a withBatch call is currently being executed.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="loadDriver(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>loadDriver</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</h4>
                                <p> Attempts to load the JDBC driver on the thread, current or system class
 loaders<DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String, java.util.Properties)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL
 and some properties.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -         a database url of the form
                   <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>properties</code> -  a list of arbitrary string tag/value pairs
                   as connection arguments; normally at least a "user" and
                   "password" property should be included</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String, java.util.Properties, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL,
 some properties and a driver class name.<DL><DT><B>throws:</B></DT><DD>SQLException           if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -              a database url of the form
                        <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>properties</code> -       a list of arbitrary string tag/value pairs
                        as connection arguments; normally at least a "user" and
                        "password" property should be included</DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String, java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL,
 a username and a password.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -       a database url of the form
                 <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>user</code> -      the database user on whose behalf the connection
                 is being made</DD><DD><code>password</code> -  the user's password</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL,
 a username, a password and a driver class name.<DL><DT><B>throws:</B></DT><DD>SQLException           if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -              a database url of the form
                        <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>user</code> -             the database user on whose behalf the connection
                        is being made</DD><DD><code>password</code> -         the user's password</DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName)</h4>
                                <p> Creates a new Sql instance given a JDBC connection URL
 and a driver class name.<DL><DT><B>throws:</B></DT><DD>SQLException           if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -              a database url of the form
                        <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="newInstance(Map<String, Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/Sql.html'>Sql</a> <strong>newInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; args)</h4>
                                <p> Creates a new Sql instance given parameters in a Map.
 Recognized keys for the Map include:
 <pre>
 driverClassName the fully qualified class name of the driver class
 driver          a synonym for driverClassName
 url             a database url of the form: <code>jdbc:<em>subprotocol</em>:<em>subname</em></code>
 user            the database user on whose behalf the connection is being made
 password        the user's password
 properties      a list of arbitrary string tag/value pairs as connection arguments;
                 normally at least a "user" and "password" property should be included
 <em>other</em>           any of the public setter methods of this class may be used with property notation
                 e.g. <em>cacheStatements: true, resultSetConcurrency: ResultSet.CONCUR_READ_ONLY</em>
 </pre>
 Of these, '<code>url</code>' is required. Others may be needed depending on your database.<br>
 If '<code>properties</code>' is supplied, neither '<code>user</code>' nor '<code>password</code>' should be supplied.<br>
 If one of '<code>user</code>' or '<code>password</code>' is supplied, both should be supplied.
<p>
 Example usage:
 <pre>
 import groovy.sql.Sql
 import static java.sql.ResultSet.*

 def sql = Sql.newInstance(
     url:'jdbc:hsqldb:mem:testDB',
     user:'sa',
     password:'',
     driver:'org.hsqldb.jdbc.JDBCDriver',
     cacheStatements: true,
     resultSetConcurrency: CONCUR_READ_ONLY
 )
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException           if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>args</code> -  a Map contain further arguments</DD></DL><DL><DT><B>Returns:</B></DT><DD>a new Sql instance with a connection</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="nullify(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> <strong>nullify</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Hook to allow derived classes to override null handling.
 Default behavior is to replace ?'"? references with NULLish
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>the modified SQL String</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="out(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/OutParameter.html'>OutParameter</a> <strong>out</strong>(int type)</h4>
                                <p> Create a new OutParameter
     <DL><DT><B>Parameters:</B></DT><DD><code>type</code> -  the JDBC data type.</DD></DL><DL><DT><B>Returns:</B></DT><DD>an OutParameter</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="preCheckForNamedParams(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>@<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html' title='Deprecated'>Deprecated</a>
public&nbsp;<a href='../../groovy/sql/SqlWithParams.html'>SqlWithParams</a> <strong>preCheckForNamedParams</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p><DL><DT><B>deprecated:</B></DT><DD>Use <a href='#buildSqlWithIndexedProps(java.lang.String)'>buildSqlWithIndexedProps(String)</a> instead</DD></DL>
     </p>
                            </li>
                        </ul>
                    
                        <a name="query(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>query</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. The given closure is called
 with the <code>ResultSet</code> as its argument.
 <p>
 Example usages:
 <pre>
 sql.query("select * from PERSON where firstname like 'S%'") { ResultSet rs ->
     while (rs.next()) println rs.getString('firstname') + ' ' + rs.getString(3)
 }

 sql.query("call get_people_places()") { ResultSet rs ->
     while (rs.next()) println rs.toRowResult().firstname
 }
 </pre>
 <p>
 All resources including the ResultSet are closed automatically
 after the closure is called.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="query(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>query</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. The given closure is called
 with the <code>ResultSet</code> as its argument.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usage:
 <pre>
 sql.query('select * from PERSON where lastname like ?', ['%a%']) { ResultSet rs ->
     while (rs.next()) println rs.getString('lastname')
 }
 </pre>
 <p>
 This method supports named and named ordinal parameters.
 See the class Javadoc for more details.
 <p>
 All resources including the ResultSet are closed automatically
 after the closure is called.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="query(java.lang.String, java.util.Map, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>query</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#query(java.lang.String, java.util.List, groovy.lang.Closure)'>query(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the sql statement</DD><DD><code>map</code> -      a map containing the named parameters</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="query(java.util.Map, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>query</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> map, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> A variant of <a href='#query(java.lang.String, java.util.List, groovy.lang.Closure)'>query(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>map</code> -      a map containing the named parameters</DD><DD><code>sql</code> -      the sql statement</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="query(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>query</strong>(groovy.lang.GString gstring, groovy.lang.Closure closure)</h4>
                                <p> Performs the given SQL query, which should return a single
 <code>ResultSet</code> object. The given closure is called
 with the <code>ResultSet</code> as its argument.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 sql.query "select * from PERSON where location_id < $location", { ResultSet rs ->
     while (rs.next()) println rs.getString('firstname')
 }
 </pre>
 <p>
 All resources including the ResultSet are closed automatically
 after the closure is called.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD><DD><code>closure</code> -  called for each row with a GroovyResultSet</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="resultSet(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;<a href='../../groovy/sql/ResultSetOutParameter.html'>ResultSetOutParameter</a> <strong>resultSet</strong>(int type)</h4>
                                <p> Create a new ResultSetOutParameter
     <DL><DT><B>Parameters:</B></DT><DD><code>type</code> -  the JDBC data type.</DD></DL><DL><DT><B>Returns:</B></DT><DD>a ResultSetOutParameter</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rollback()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>rollback</strong>()</h4>
                                <p> If this SQL object was created with a Connection then this method rolls back
 the connection. If this SQL object was created from a DataSource then
 this method does nothing.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     </p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 <p>
 Example usage:
 <pre>
 def ans = sql.rows("select * from PERSON where firstname like 'S%'")
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -  the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the SQL statement</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 <p>
 Example usage:
 <pre>
 def printNumCols = { meta -> println "Found $meta.columnCount columns" }
 def ans = sql.rows("select * from PERSON", printNumCols)
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>metaClosure</code> -  called with meta data of the ResultSet</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, List<Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usage:
 <pre>
 def ans = sql.rows("select * from PERSON where lastname like ?", ['%a%'])
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> list. See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  a list of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.util.Map, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List)'>rows(String, java.util.List)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -  a map containing the named parameters</DD><DD><code>sql</code> -     the SQL statement</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, List<Object>, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> list. See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the SQL statement</DD><DD><code>params</code> -   a list of parameters</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, java.util.Map, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, int, int)'>rows(String, java.util.List, int, int)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the SQL statement</DD><DD><code>params</code> -   a map of named parameters</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.util.Map, java.lang.String, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, int, int)'>rows(String, java.util.List, int, int)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -   a map of named parameters</DD><DD><code>sql</code> -      the SQL statement</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.
 <p>
 An Object array variant of <a href='#rows(java.lang.String, java.util.List)'>rows(String, List)</a>.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -     the SQL statement</DD><DD><code>params</code> -  an array of parameters</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, java.lang.Object, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>[] params, int offset, int maxRows)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> array. See the class Javadoc for more details.
 <p>
 An Object array variant of <a href='#rows(java.lang.String, java.util.List, int, int)'>rows(String, List, int, int)</a>.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the SQL statement</DD><DD><code>params</code> -   an array of parameters</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, List<Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Example usage:
 <pre>
 def printNumCols = { meta -> println "Found $meta.columnCount columns" }
 def ans = sql.rows("select * from PERSON where lastname like ?", ['%a%'], printNumCols)
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> list. Here is an example:
 <pre>
 def printNumCols = { meta -> println "Found $meta.columnCount columns" }

 def mapParam = [foo: 'Smith']
 def domainParam = new MyDomainClass(bar: 'John')
 def qry = 'select * from PERSON where lastname=?1.foo and firstname=?2.bar'
 def ans = sql.rows(qry, [mapParam, domainParam], printNumCols)
 println "Found ${ans.size()} rows"

 def qry2 = 'select * from PERSON where firstname=:first and lastname=:last'
 def ans2 = sql.rows(qry2, [[last:'Smith', first:'John']], printNumCols)
 println "Found ${ans2.size()} rows"
 </pre>
 See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>params</code> -       a list of parameters</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, java.util.Map, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, groovy.lang.Closure metaClosure)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, groovy.lang.Closure)'>rows(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>params</code> -       a map of named parameters</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.util.Map, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure metaClosure)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, groovy.lang.Closure)'>rows(String, java.util.List, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -       a map of named parameters</DD><DD><code>sql</code> -          the SQL statement</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, List<Object>, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain placeholder question marks which match the given list of parameters.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 This method supports named and named ordinal parameters by supplying such
 parameters in the <code>params</code> list. See the class Javadoc for more details.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>params</code> -       a list of parameters</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.lang.String, java.util.Map, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>rows(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as a map.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -          the SQL statement</DD><DD><code>params</code> -       a map of named parameters</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(java.util.Map, java.lang.String, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a> params, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p> A variant of <a href='#rows(java.lang.String, java.util.List, int, int, groovy.lang.Closure)'>rows(String, java.util.List, int, int, groovy.lang.Closure)</a>
 useful when providing the named parameters as named arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -       a map of named parameters</DD><DD><code>sql</code> -          the SQL statement</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>Since:</B></DT><DD>1.8.7</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(groovy.lang.GString, int, int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(groovy.lang.GString sql, int offset, int maxRows)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 The query may contain GString expressions.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      the SQL statement</DD><DD><code>offset</code> -   the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -  the maximum number of rows to be processed</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(groovy.lang.GString)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(groovy.lang.GString gstring)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 def ans = sql.rows("select * from PERSON where location_id < $location")
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -  a GString containing the SQL query with embedded params</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(groovy.lang.GString, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(groovy.lang.GString gstring, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return the rows of the result set.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain GString expressions.
 <p>
 Example usage:
 <pre>
 def location = 25
 def printNumCols = { meta -> println "Found $meta.columnCount columns" }
 def ans = sql.rows("select * from PERSON where location_id < $location", printNumCols)
 println "Found ${ans.size()} rows"
 </pre>
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -      a GString containing the SQL query with embedded params</DD><DD><code>metaClosure</code> -  called with meta data of the ResultSet</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#expand(java.lang.Object)'>expand(Object)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rows(groovy.lang.GString, int, int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='../../groovy/sql/GroovyRowResult.html' title='GroovyRowResult'>GroovyRowResult</a>&gt; <strong>rows</strong>(groovy.lang.GString gstring, int offset, int maxRows, groovy.lang.Closure metaClosure)</h4>
                                <p> Performs the given SQL query and return a "page" of rows from the result set.  A page is defined as starting at
 a 1-based offset, and containing a maximum number of rows.
 In addition, the <code>metaClosure</code> will be called once passing in the
 <code>ResultSetMetaData</code> as argument.
 The query may contain GString expressions.
 <p>
 Note that the underlying implementation is based on either invoking <code>ResultSet.absolute()</code>,
 or if the ResultSet type is <code>ResultSet.TYPE_FORWARD_ONLY</code>, the <code>ResultSet.next()</code> method
 is invoked equivalently.  The first row of a ResultSet is 1, so passing in an offset of 1 or less has no effect
 on the initial positioning within the result set.
 <p>
 Note that different database and JDBC driver implementations may work differently with respect to this method.
 Specifically, one should expect that <code>ResultSet.TYPE_FORWARD_ONLY</code> may be less efficient than a
 "scrollable" type.
 <p>
 Resource handling is performed automatically where appropriate.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>gstring</code> -      the SQL statement</DD><DD><code>offset</code> -       the 1-based offset for the first row to be processed</DD><DD><code>maxRows</code> -      the maximum number of rows to be processed</DD><DD><code>metaClosure</code> -  called for meta data (only once after sql execution)</DD></DL><DL><DT><B>Returns:</B></DT><DD>a list of GroovyRowResult objects</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setCacheNamedQueries(boolean)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setCacheNamedQueries</strong>(boolean cacheNamedQueries)</h4>
                                <p> Enables named query caching.<br>
 if <i>cacheNamedQueries</i> is true, cache is created and processed named queries will be cached.
 if <i>cacheNamedQueries</i> is false, no caching will occur saving memory at the cost of additional processing time.
     <DL><DT><B>Parameters:</B></DT><DD><code>cacheNamedQueries</code> -  the new value</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setCacheStatements(boolean)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setCacheStatements</strong>(boolean cacheStatements)</h4>
                                <p> Enables statement caching.<br>
 if <i>cacheStatements</i> is true, cache is created and all created prepared statements will be cached.
 if <i>cacheStatements</i> is false, all cached statements will be properly closed.
     <DL><DT><B>Parameters:</B></DT><DD><code>cacheStatements</code> -  the new value</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setEnableNamedQueries(boolean)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setEnableNamedQueries</strong>(boolean enableNamedQueries)</h4>
                                <p> Enables named query support:
 <ul>
     <li>if <i>enableNamedQueries</i> is true, queries with ':propname' and '?1.propname' style placeholders will be processed.</li>
     <li>if <i>enableNamedQueries</i> is false, this feature will be turned off.</li>
 </ul>
     <DL><DT><B>Parameters:</B></DT><DD><code>enableNamedQueries</code> -  the new value</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setInternalConnection(java.sql.Connection)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>setInternalConnection</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html' title='Connection'>Connection</a> conn)</h4>
                                <p> Stub needed for testing.  Called when a connection is opened by one of the command-pattern classes
 so that a test case can monitor the state of the connection through its subclass.
     <DL><DT><B>Parameters:</B></DT><DD><code>conn</code> -  the connection that is about to be used by a command</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setObject(java.sql.PreparedStatement, int, java.lang.Object)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>setObject</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a> statement, int i, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a> value)</h4>
                                <p> Strategy method allowing derived classes to handle types differently
 such as for CLOBs etc.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>statement</code> -  the statement of interest</DD><DD><code>i</code> -          the index of the object of interest</DD><DD><code>value</code> -      the new object value</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setParameters(List<Object>, java.sql.PreparedStatement)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>setParameters</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/List.html' title='List'>List</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; params, <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a> statement)</h4>
                                <p> Hook to allow derived classes to override behavior associated with
 setting params for a prepared statement. Default behavior is to
 append the parameters to the given statement using <code>setObject</code>.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>params</code> -     the parameters to append</DD><DD><code>statement</code> -  the statement</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setResultSetConcurrency(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setResultSetConcurrency</strong>(int resultSetConcurrency)</h4>
                                <p> Sets the resultSetConcurrency for statements created using the connection.
 May cause SQLFeatureNotSupportedException exceptions to occur if the
 underlying database doesn't support the requested concurrency value.
     <DL><DT><B>Parameters:</B></DT><DD><code>resultSetConcurrency</code> -  one of the following <code>ResultSet</code>
                             constants:
                             <code>ResultSet.CONCUR_READ_ONLY</code> or
                             <code>ResultSet.CONCUR_UPDATABLE</code></DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setResultSetHoldability(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setResultSetHoldability</strong>(int resultSetHoldability)</h4>
                                <p> Sets the resultSetHoldability for statements created using the connection.
 May cause SQLFeatureNotSupportedException exceptions to occur if the
 underlying database doesn't support the requested holdability value.
     <DL><DT><B>Parameters:</B></DT><DD><code>resultSetHoldability</code> -  one of the following <code>ResultSet</code>
                             constants:
                             <code>ResultSet.HOLD_CURSORS_OVER_COMMIT</code> or
                             <code>ResultSet.CLOSE_CURSORS_AT_COMMIT</code></DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setResultSetType(int)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setResultSetType</strong>(int resultSetType)</h4>
                                <p> Sets the resultSetType for statements created using the connection.
 May cause SQLFeatureNotSupportedException exceptions to occur if the
 underlying database doesn't support the requested type value.
     <DL><DT><B>Parameters:</B></DT><DD><code>resultSetType</code> -  one of the following <code>ResultSet</code>
                      constants:
                      <code>ResultSet.TYPE_FORWARD_ONLY</code>,
                      <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or
                      <code>ResultSet.TYPE_SCROLL_SENSITIVE</code></DD></DL><DL><DT><B>Since:</B></DT><DD>1.5.2</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withBatch(groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int[] <strong>withBatch</strong>(groovy.lang.Closure closure)</h4>
                                <p> Performs the closure (containing batch operations) within a batch.
 Uses a batch size of zero, i.e. no automatic partitioning of batches.
 <p>
 This means that <code>executeBatch()</code> will be called automatically after the <code>withBatch</code>
 closure has finished but may be called explicitly if desired as well for more fine-grained
 partitioning of the batch.
 <p>
 The closure will be called with a single argument; the database
 statement (actually a <code>BatchingStatementWrapper</code> helper object)
 associated with this batch.
 <p>
 Use it like this:
 <pre>
 def updateCounts = sql.withBatch { stmt ->
     stmt.addBatch("insert into TABLENAME ...")
     stmt.addBatch("insert into TABLENAME ...")
     stmt.addBatch("insert into TABLENAME ...")
     ...
 }
 </pre>
 For integrity and performance reasons, you may wish to consider executing your batch command(s) within a transaction:
 <pre>
 sql.withTransaction {
     def result1 = sql.withBatch { ... }
     ...
 }
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs,
                      or this method is called on a closed <code>Statement</code>, or the
                      driver does not support batch statements. Throws <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/BatchUpdateException.html' title='BatchUpdateException'>BatchUpdateException</a>
                      (a subclass of <code>SQLException</code>) if one of the commands sent to the
                      database fails to execute properly or attempts to return a result set.</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>closure</code> -  the closure containing batch and optionally other statements</DD></DL><DL><DT><B>Returns:</B></DT><DD>an array of update counts containing one element for each
         command in the batch.  The elements of the array are ordered according
         to the order in which commands were added to the batch.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#withBatch(int, groovy.lang.Closure)'>withBatch(int, Closure)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withBatch(int, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int[] <strong>withBatch</strong>(int batchSize, groovy.lang.Closure closure)</h4>
                                <p> Performs the closure (containing batch operations) within a batch using a given batch size.
 <p>
 After every <code>batchSize</code> <code>addBatch(sqlBatchOperation)</code>
 operations, automatically calls an <code>executeBatch()</code> operation to "chunk" up the database operations
 into partitions. Though not normally needed, you can also explicitly call <code>executeBatch()</code> which
 after executing the current batch, resets the batch count back to zero.
 <p>
 The closure will be called with a single argument; the database statement
 (actually a <code>BatchingStatementWrapper</code> helper object)
 associated with this batch.
 <p>
 Use it like this for batchSize of 20:
 <pre>
 def updateCounts = sql.withBatch(20) { stmt ->
     stmt.addBatch("insert into TABLENAME ...")
     stmt.addBatch("insert into TABLENAME ...")
     stmt.addBatch("insert into TABLENAME ...")
     ...
 }
 </pre>
 For integrity and performance reasons, you may wish to consider executing your batch command(s) within a transaction:
 <pre>
 sql.withTransaction {
     def result1 = sql.withBatch { ... }
     ...
 }
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs,
                      or this method is called on a closed <code>Statement</code>, or the
                      driver does not support batch statements. Throws <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/BatchUpdateException.html' title='BatchUpdateException'>BatchUpdateException</a>
                      (a subclass of <code>SQLException</code>) if one of the commands sent to the
                      database fails to execute properly or attempts to return a result set.</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>batchSize</code> -  partition the batch into batchSize pieces, i.e. after batchSize
                  <code>addBatch()</code> invocations, call <code>executeBatch()</code> automatically;
                  0 means manual calls to executeBatch are required</DD><DD><code>closure</code> -    the closure containing batch and optionally other statements</DD></DL><DL><DT><B>Returns:</B></DT><DD>an array of update counts containing one element for each
         command in the batch.  The elements of the array are ordered according
         to the order in which commands were added to the batch.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#withBatch(groovy.lang.Closure)'>withBatch(Closure)</a></DD><DD><a href='../../groovy/sql/BatchingStatementWrapper.html' title='BatchingStatementWrapper'>BatchingStatementWrapper</a></DD><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html' title='Statement'>Statement</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withBatch(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int[] <strong>withBatch</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> Performs the closure (containing batch operations specific to an associated prepared statement)
 within a batch. Uses a batch size of zero, i.e. no automatic partitioning of batches.
 <p>
 This means that <code>executeBatch()</code> will be called automatically after the <code>withBatch</code>
 closure has finished but may be called explicitly if desired as well for more fine-grained
 partitioning of the batch.
 <p>
 The closure will be called with a single argument; the prepared
 statement (actually a <code>BatchingPreparedStatementWrapper</code> helper object)
 associated with this batch.
 <p>
 An example:
 <pre>
 def updateCounts = sql.withBatch('insert into TABLENAME(a, b, c) values (?, ?, ?)') { ps ->
     ps.addBatch([10, 12, 5])
     ps.addBatch([7, 3, 98])
     ps.addBatch(22, 67, 11)
     def partialUpdateCounts = ps.executeBatch() // optional interim batching
     ps.addBatch(30, 40, 50)
     ...
 }
 </pre>
 For integrity and performance reasons, you may wish to consider executing your batch command(s) within a transaction:
 <pre>
 sql.withTransaction {
     def result1 = sql.withBatch { ... }
     ...
 }
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs,
                      or this method is called on a closed <code>Statement</code>, or the
                      driver does not support batch statements. Throws <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/BatchUpdateException.html' title='BatchUpdateException'>BatchUpdateException</a>
                      (a subclass of <code>SQLException</code>) if one of the commands sent to the
                      database fails to execute properly or attempts to return a result set.</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>sql</code> -      batch update statement</DD><DD><code>closure</code> -  the closure containing batch statements (to bind parameters) and optionally other statements</DD></DL><DL><DT><B>Returns:</B></DT><DD>an array of update counts containing one element for each
         binding in the batch.  The elements of the array are ordered according
         to the order in which commands were executed.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#withBatch(int, java.lang.String, groovy.lang.Closure)'>withBatch(int, String, Closure)</a></DD><DD><a href='../../groovy/sql/BatchingPreparedStatementWrapper.html' title='BatchingPreparedStatementWrapper'>BatchingPreparedStatementWrapper</a></DD><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withBatch(int, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;int[] <strong>withBatch</strong>(int batchSize, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> sql, groovy.lang.Closure closure)</h4>
                                <p> Performs the closure (containing batch operations specific to an associated prepared statement)
 within a batch using a given batch size.
 <p>
 After every <code>batchSize</code> <code>addBatch(params)</code>
 operations, automatically calls an <code>executeBatch()</code> operation to "chunk" up the database operations
 into partitions. Though not normally needed, you can also explicitly call <code>executeBatch()</code> which
 after executing the current batch, resets the batch count back to zero.
 <p>
 The closure will be called with a single argument; the prepared
 statement (actually a <code>BatchingPreparedStatementWrapper</code> helper object)
 associated with this batch.
 <p>
 Below is an example using a batchSize of 20:
 <pre>
 def updateCounts = sql.withBatch(20, 'insert into TABLENAME(a, b, c) values (?, ?, ?)') { ps ->
     ps.addBatch(10, 12, 5)      // varargs style
     ps.addBatch([7, 3, 98])     // list
     ps.addBatch([22, 67, 11])
     ...
 }
 </pre>
 Named parameters (into maps or domain objects) are also supported:
 <pre>
 def updateCounts = sql.withBatch(20, 'insert into TABLENAME(a, b, c) values (:foo, :bar, :baz)') { ps ->
     ps.addBatch([foo:10, bar:12, baz:5])  // map
     ps.addBatch(foo:7, bar:3, baz:98)     // Groovy named args allow outer brackets to be dropped
     ...
 }
 </pre>
 Named ordinal parameters (into maps or domain objects) are also supported:
 <pre>
 def updateCounts = sql.withBatch(20, 'insert into TABLENAME(a, b, c) values (?1.foo, ?2.bar, ?2.baz)') { ps ->
     ps.addBatch([[foo:22], [bar:67, baz:11]])  // list of maps or domain objects
     ps.addBatch([foo:10], [bar:12, baz:5])     // varargs allows outer brackets to be dropped
     ps.addBatch([foo:7], [bar:3, baz:98])
     ...
 }
 // swap to batch size of 5 and illustrate simple and domain object cases ...
 class Person { String first, last }
 def updateCounts2 = sql.withBatch(5, 'insert into PERSON(id, first, last) values (?1, ?2.first, ?2.last)') { ps ->
     ps.addBatch(1, new Person(first:'Peter', last:'Pan'))
     ps.addBatch(2, new Person(first:'Snow', last:'White'))
     ...
 }
 </pre>
 For integrity and performance reasons, you may wish to consider executing your batch command(s) within a transaction:
 <pre>
 sql.withTransaction {
     def result1 = sql.withBatch { ... }
     ...
 }
 </pre><DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs,
                      or this method is called on a closed <code>Statement</code>, or the
                      driver does not support batch statements. Throws <a href='http://docs.oracle.com/javase/8/docs/api/java/sql/BatchUpdateException.html' title='BatchUpdateException'>BatchUpdateException</a>
                      (a subclass of <code>SQLException</code>) if one of the commands sent to the
                      database fails to execute properly or attempts to return a result set.</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>batchSize</code> -  partition the batch into batchSize pieces, i.e. after batchSize
                  <code>addBatch()</code> invocations, call <code>executeBatch()</code> automatically;
                  0 means manual calls to executeBatch are required if additional partitioning of the batch is required</DD><DD><code>sql</code> -        batch update statement</DD><DD><code>closure</code> -    the closure containing batch statements (to bind parameters) and optionally other statements</DD></DL><DL><DT><B>Returns:</B></DT><DD>an array of update counts containing one element for each
         binding in the batch.  The elements of the array are ordered according
         to the order in which commands were executed.</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='../../groovy/sql/BatchingPreparedStatementWrapper.html' title='BatchingPreparedStatementWrapper'>BatchingPreparedStatementWrapper</a></DD><DD><a href='http://docs.oracle.com/javase/8/docs/api/java/sql/PreparedStatement.html' title='PreparedStatement'>PreparedStatement</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String)'>newInstance(String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, java.util.Properties, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL and properties.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>properties</code> -  a list of arbitrary string tag/value pairs
                   as connection arguments; normally at least a "user" and
                   "password" property should be included</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String, java.util.Properties)'>newInstance(String, java.util.Properties)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, java.util.Properties, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html' title='Properties'>Properties</a> properties, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL,
 properties and driver classname. The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>properties</code> -  a list of arbitrary string tag/value pairs
                   as connection arguments; normally at least a "user" and
                   "password" property should be included</DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String, java.util.Properties, java.lang.String)'>newInstance(String, java.util.Properties, String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, java.lang.String, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL, user and password.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>user</code> -      the database user on whose behalf the connection
                 is being made</DD><DD><code>password</code> -  the user's password</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String, java.lang.String, java.lang.String)'>newInstance(String, String, String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> user, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> password, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>user</code> -             the database user on whose behalf the connection
                        is being made</DD><DD><code>password</code> -         the user's password</DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String)'>newInstance(String, String, String, String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(java.lang.String, java.lang.String, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> url, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a> driverClassName, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given JDBC connection URL.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>url</code> -  a database url of the form
            <code>jdbc:<em>subprotocol</em>:<em>subname</em></code></DD><DD><code>driverClassName</code> -  the fully qualified class name of the driver class</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.lang.String, java.lang.String)'>newInstance(String, String)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withInstance(Map<String, Object>, groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;static&nbsp;void <strong>withInstance</strong>(<a href='http://docs.oracle.com/javase/8/docs/api/java/util/Map.html' title='Map'>Map</a>&lt;<a href='http://docs.oracle.com/javase/8/docs/api/java/lang/String.html' title='String'>String</a>, <a href='http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html' title='Object'>Object</a>&gt; args, groovy.lang.Closure c)</h4>
                                <p> Invokes a closure passing it a new Sql instance created from the given map of arguments.
 The created connection will be closed if required.<DL><DT><B>throws:</B></DT><DD>SQLException if a database access error occurs</DD></DL><DL><DT><B>throws:</B></DT><DD>ClassNotFoundException if the driver class cannot be found or loaded</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>args</code> -  a Map contain further arguments</DD><DD><code>c</code> -  the Closure to call</DD></DL><DL><DT><B>See Also:</B></DT><DD><a href='#newInstance(java.util.Map)'>newInstance(java.util.Map)</a></DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withStatement(groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>withStatement</strong>(groovy.lang.Closure configureStatement)</h4>
                                <p> Allows a closure to be passed in to configure the JDBC statements before they are executed.
 It can be used to do things like set the query size etc. When this method is invoked, the supplied
 closure is saved. Statements subsequently created from other methods will then be
 configured using this closure. The statement being configured is passed into the closure
 as its single argument, e.g.:
 <pre>
 sql.withStatement{ stmt -> stmt.maxRows = 10 }
 def firstTenRows = sql.rows("select * from table")
 </pre>
     <DL><DT><B>Parameters:</B></DT><DD><code>configureStatement</code> -  the closure</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="withTransaction(groovy.lang.Closure)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>withTransaction</strong>(groovy.lang.Closure closure)</h4>
                                <p> Performs the closure within a transaction using a cached connection.
 If the closure takes a single argument, it will be called
 with the connection, otherwise it will be called with no arguments.<DL><DT><B>throws:</B></DT><DD>SQLException if a database error occurs</DD></DL>
     <DL><DT><B>Parameters:</B></DT><DD><code>closure</code> -  the given closure</DD></DL></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../index-all.html">Index</a></li>
        <li><a href="../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../index.html?groovy/sql/Sql" target="_top">Frames</a></li>
            <li><a href="Sql.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            <li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            <li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Copyright &copy; 2003-2015 The Apache Software Foundation. All rights reserved.</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
New to GrepCode? Check out our FAQ X