org.geotools.sql
Class SqlUtil

Object
  extended by SqlUtil

public class SqlUtil
extends Object

Builder class for creating prepared statements.

Author:
Justin Deoliveira, OpenGeo

Nested Class Summary
static class SqlUtil.PreparedStatementBuilder
           
 
Constructor Summary
SqlUtil()
           
 
Method Summary
static SqlUtil.PreparedStatementBuilder prepare(Connection conn, String sql)
           
static SqlUtil.PreparedStatementBuilder prepare(PreparedStatement st)
           
static void runScript(InputStream stream, Connection cx)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlUtil

public SqlUtil()
Method Detail

runScript

public static void runScript(InputStream stream,
                             Connection cx)
                      throws SQLException
Throws:
SQLException

prepare

public static SqlUtil.PreparedStatementBuilder prepare(Connection conn,
                                                       String sql)
                                                throws SQLException
Throws:
SQLException

prepare

public static SqlUtil.PreparedStatementBuilder prepare(PreparedStatement st)
                                                throws SQLException
Throws:
SQLException


Copyright © 1996-2014 Geotools. All Rights Reserved.