Package org.geotools.jdbc.util
Class SqlUtil
- Object
-
- SqlUtil
-
public class SqlUtil extends Object
Builder class for creating prepared statements.- Author:
- Justin Deoliveira, OpenGeo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlUtil.PreparedStatementBuilder
-
Constructor Summary
Constructors Constructor Description SqlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlUtil.PreparedStatementBuilder
prepare(Connection conn, String sql)
static SqlUtil.PreparedStatementBuilder
prepare(PreparedStatement st)
static void
runScript(InputStream stream, Connection cx)
static void
runScript(InputStream stream, Connection cx, Map<String,String> properties)
-
-
-
Method Detail
-
runScript
public static void runScript(InputStream stream, Connection cx) throws SQLException
- Throws:
SQLException
-
runScript
public static void runScript(InputStream stream, Connection cx, Map<String,String> properties) 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
-
-