public class JDBCUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.sql.Statement |
createStreamingStatement(java.sql.Connection conn,
boolean update)
Returns a statement which tries its best to stream data.
|
public static java.sql.Statement createStreamingStatement(java.sql.Connection conn, boolean update) throws java.sql.SQLException
Note that in some cases the supplied connection may have its autocommit mode modified by this call.
conn
- connectionupdate
- true for an updatable set, false for read-onlyjava.sql.SQLException