public class StatementImpl extends Object implements PreparedStatement
| Modifier and Type | Field and Description |
|---|---|
protected Sql |
sql |
protected PreparedStatement |
stat |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
StatementImpl(Connection conn,
Sql sql) |
StatementImpl(Connection conn,
Sql sql,
boolean returnGeneratedKey) |
StatementImpl(PreparedStatement stat,
Sql sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
addBatch(String sql) |
void |
cancel() |
void |
clearBatch() |
void |
clearParameters() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
execute() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
int[] |
executeBatch() |
int |
executeGeneratedKey() |
long |
executeGeneratedKeyLong() |
long[] |
executeLargeBatch() |
long |
executeLargeUpdate() |
long |
executeLargeUpdate(String sql) |
long |
executeLargeUpdate(String sql,
int autoGeneratedKeys) |
long |
executeLargeUpdate(String sql,
int[] columnIndexes) |
long |
executeLargeUpdate(String sql,
String[] columnNames) |
<T> List<T> |
executeList(ResultSetMapper<T> mapper) |
<K,V> Map<K,V> |
executeMap(ResultSetMapper<K> key,
ResultSetMapper<V> value,
Map<K,V> newMap) |
<K,V> Map<K,V> |
executeMap(String keyColumn,
String valueColumn,
Map<K,V> newMap) |
void |
executeNStream(String streamLabel,
Writer w,
ResultSetHandler handler) |
ResultSet |
executeQuery() |
void |
executeQuery(ResultSetHandler handler) |
ResultSet |
executeQuery(String sql) |
ResultSetImpl |
executeResult() |
<T> T |
executeScalar() |
<T> T |
executeSingle(ResultSetMapper<T> mapper) |
void |
executeStream(String streamLabel,
OutputStream os,
ResultSetHandler handler) |
void |
executeStream(String streamLabel,
Writer w,
ResultSetHandler handler) |
int |
executeUpdate() |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
long |
getLargeMaxRows() |
long |
getLargeUpdateCount() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
ResultSetMetaData |
getMetaData() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int current) |
ParameterMetaData |
getParameterMetaData() |
int |
getQueryTimeout() |
ResultSet |
getResultSet() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
int |
getUpdateCount() |
SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isCloseOnCompletion() |
boolean |
isPoolable() |
boolean |
isWrapperFor(Class<?> arg0) |
void |
setArray(int parameterIndex,
Array x) |
void |
setArray(String parameterName,
Array x) |
void |
setArray2(String parameterName,
Array value) |
void |
setAsciiStream(int parameterIndex,
InputStream x) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length) |
void |
setAsciiStream(int parameterIndex,
InputStream x,
long length) |
void |
setAsciiStream(String parameterName,
InputStream x) |
void |
setAsciiStream(String parameterName,
InputStream x,
int length) |
void |
setAsciiStream(String parameterName,
InputStream x,
long length) |
void |
setAsciiStream2(String parameterName,
InputStream value) |
void |
setBigDecimal(int parameterIndex,
BigDecimal x) |
void |
setBigDecimal(String parameterName,
BigDecimal x) |
void |
setBigDecimal2(String parameterName,
BigDecimal value) |
void |
setBigDecimalArray(String parameterName,
BigDecimal... values) |
void |
setBinaryStream(int parameterIndex,
InputStream x) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length) |
void |
setBinaryStream(int parameterIndex,
InputStream x,
long length) |
void |
setBinaryStream(String parameterName,
InputStream x) |
void |
setBinaryStream(String parameterName,
InputStream x,
int length) |
void |
setBinaryStream(String parameterName,
InputStream x,
long length) |
void |
setBinaryStream2(String parameterName,
InputStream value) |
void |
setBlob(int parameterIndex,
Blob x) |
void |
setBlob(int parameterIndex,
InputStream inputStream) |
void |
setBlob(int parameterIndex,
InputStream inputStream,
long length) |
void |
setBlob(String parameterName,
Blob x) |
void |
setBlob(String parameterName,
InputStream inputStream) |
void |
setBlob(String parameterName,
InputStream inputStream,
long length) |
void |
setBlob2(String parameterName,
Blob value) |
void |
setBlob2(String parameterName,
InputStream value) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setBoolean(String parameterName,
boolean x) |
void |
setBoolean2(String parameterName,
Boolean value) |
void |
setByte(int parameterIndex,
byte x) |
void |
setByte(String parameterName,
byte x) |
void |
setByte2(String parameterName,
Byte value) |
void |
setByteArray(String parameterName,
byte... values) |
void |
setBytes(int parameterIndex,
byte[] x) |
void |
setBytes(String parameterName,
byte[] x) |
void |
setBytes2(String parameterName,
byte[] value) |
void |
setChar2(String parameterName,
String value) |
void |
setCharacterStream(int parameterIndex,
Reader reader) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
long length) |
void |
setCharacterStream(String parameterName,
Reader reader) |
void |
setCharacterStream(String parameterName,
Reader reader,
int length) |
void |
setCharacterStream(String parameterName,
Reader reader,
long length) |
void |
setCharacterStream2(String parameterName,
Reader value) |
void |
setClob(int parameterIndex,
Clob x) |
void |
setClob(int parameterIndex,
Reader reader) |
void |
setClob(int parameterIndex,
Reader reader,
long length) |
void |
setClob(String parameterName,
Clob x) |
void |
setClob(String parameterName,
Reader reader) |
void |
setClob(String parameterName,
Reader reader,
long length) |
void |
setClob2(String parameterName,
Clob value) |
void |
setClob2(String parameterName,
Reader value) |
void |
setContains(String parameterName,
String value) |
void |
setCursorName(String name) |
void |
setDate(int parameterIndex,
Date x) |
void |
setDate(int parameterIndex,
Date x,
Calendar cal) |
void |
setDate(String parameterName,
Date x) |
void |
setDate(String parameterName,
Date x,
Calendar cal) |
void |
setDate2(String parameterName,
Date value) |
void |
setDateArray(String parameterName,
Date... values) |
void |
setDouble(int parameterIndex,
double x) |
void |
setDouble(String parameterName,
double x) |
void |
setDouble2(String parameterName,
Double value) |
void |
setDoubleArray(String parameterName,
double... values) |
void |
setEndsWith(String parameterName,
String value) |
void |
setEscapeProcessing(boolean enable) |
void |
setFetchDirection(int direction) |
void |
setFetchSize(int rows) |
void |
setFloat(int parameterIndex,
float x) |
void |
setFloat(String parameterName,
float x) |
void |
setFloat2(String parameterName,
Float value) |
void |
setFloatArray(String parameterName,
float... values) |
void |
setInt(int parameterIndex,
int x) |
void |
setInt(String parameterName,
int x) |
void |
setInt2(String parameterName,
Integer value) |
void |
setIntArray(String parameterName,
int... values) |
void |
setLargeMaxRows(long max) |
void |
setLong(int parameterIndex,
long x) |
void |
setLong(String parameterName,
long x) |
void |
setLong2(String parameterName,
Long value) |
void |
setLongArray(String parameterName,
long... values) |
void |
setMaxFieldSize(int max) |
void |
setMaxRows(int max) |
void |
setNChar2(String parameterName,
String value) |
void |
setNCharacterStream(int parameterIndex,
Reader value) |
void |
setNCharacterStream(int parameterIndex,
Reader value,
long length) |
void |
setNCharacterStream(String parameterName,
Reader value) |
void |
setNCharacterStream(String parameterName,
Reader value,
long length) |
void |
setNCharacterStream2(String parameterName,
Reader value) |
void |
setNClob(int parameterIndex,
NClob value) |
void |
setNClob(int parameterIndex,
Reader reader) |
void |
setNClob(int parameterIndex,
Reader reader,
long length) |
void |
setNClob(String parameterName,
NClob value) |
void |
setNClob(String parameterName,
Reader reader) |
void |
setNClob(String parameterName,
Reader reader,
long length) |
void |
setNClob2(String parameterName,
NClob value) |
void |
setNClob2(String parameterName,
Reader value) |
void |
setNContains(String parameterName,
String value) |
void |
setNEndsWith(String parameterName,
String value) |
void |
setNStartsWith(String parameterName,
String value) |
void |
setNString(int parameterIndex,
String value) |
void |
setNString(String parameterName,
String value) |
void |
setNString2(String parameterName,
String value) |
void |
setNStringArray(String parameterName,
String... values) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int parameterIndex,
int sqlType,
String typeName) |
void |
setNull(String parameterName,
int sqlType) |
void |
setNull(String parameterName,
int sqlType,
String typeName) |
void |
setObject(int parameterIndex,
Object x) |
void |
setObject(int parameterIndex,
Object x,
int targetSqlType) |
void |
setObject(int parameterIndex,
Object x,
int targetSqlType,
int scaleOrLength) |
void |
setObject(int parameterIndex,
Object x,
SQLType targetSqlType) |
void |
setObject(int parameterIndex,
Object x,
SQLType targetSqlType,
int scaleOrLength) |
void |
setObject(String parameterName,
Object x) |
void |
setObject(String parameterName,
Object x,
int targetSqlType) |
void |
setObject(String parameterName,
Object x,
int targetSqlType,
int scaleOrLength) |
void |
setObject(String parameterName,
Object x,
SQLType targetSqlType) |
void |
setObject(String parameterName,
Object x,
SQLType targetSqlType,
int scaleOrLength) |
void |
setPoolable(boolean poolable) |
void |
setQueryTimeout(int seconds) |
void |
setRef(int parameterIndex,
Ref x) |
void |
setRef(String parameterName,
Ref x) |
void |
setRef2(String parameterName,
Ref value) |
void |
setRowId(int parameterIndex,
RowId x) |
void |
setRowId(String parameterName,
RowId x) |
void |
setRowId2(String parameterName,
RowId value) |
void |
setShort(int parameterIndex,
short x) |
void |
setShort(String parameterName,
short x) |
void |
setShort2(String parameterName,
Short value) |
void |
setShortArray(String parameterName,
short... values) |
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject) |
void |
setSQLXML(String parameterName,
SQLXML xmlObject) |
void |
setSQLXML2(String parameterName,
SQLXML value) |
void |
setStartsWith(String parameterName,
String value) |
void |
setString(int parameterIndex,
String x) |
void |
setString(String parameterName,
String x) |
void |
setString2(String parameterName,
String value) |
void |
setStringArray(String parameterName,
String... values) |
void |
setTime(int parameterIndex,
Time x) |
void |
setTime(int parameterIndex,
Time x,
Calendar cal) |
void |
setTime(String parameterName,
Time x) |
void |
setTime(String parameterName,
Time x,
Calendar cal) |
void |
setTime2(String parameterName,
Time value) |
void |
setTimeArray(String parameterName,
Time... values) |
void |
setTimestamp(int parameterIndex,
Timestamp x) |
void |
setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal) |
void |
setTimestamp(String parameterName,
Timestamp x) |
void |
setTimestamp(String parameterName,
Timestamp x,
Calendar cal) |
void |
setTimestamp2(String parameterName,
Timestamp value) |
void |
setTimestampArray(String parameterName,
Timestamp... values) |
void |
setUnicodeStream(int parameterIndex,
InputStream x,
int length)
Deprecated.
|
void |
setUnicodeStream(String parameterName,
InputStream x,
int length)
Deprecated.
|
void |
setURL(int parameterIndex,
URL x) |
void |
setURL(String parameterName,
URL x) |
void |
setURL2(String parameterName,
URL value) |
<T> T |
unwrap(Class<T> arg0) |
protected final Sql sql
protected final PreparedStatement stat
public StatementImpl(PreparedStatement stat, Sql sql)
public StatementImpl(Connection conn, Sql sql) throws SQLException
SQLExceptionpublic StatementImpl(Connection conn, Sql sql, boolean returnGeneratedKey) throws SQLException
SQLExceptionpublic ResultSetImpl executeResult() throws SQLException
SQLExceptionpublic int executeGeneratedKey()
throws SQLException
SQLExceptionpublic long executeGeneratedKeyLong()
throws SQLException
SQLExceptionpublic <K,V> Map<K,V> executeMap(ResultSetMapper<K> key, ResultSetMapper<V> value, Map<K,V> newMap) throws SQLException
SQLExceptionpublic <K,V> Map<K,V> executeMap(String keyColumn, String valueColumn, Map<K,V> newMap) throws SQLException
SQLExceptionpublic <T> List<T> executeList(ResultSetMapper<T> mapper) throws SQLException
SQLExceptionpublic <T> T executeSingle(ResultSetMapper<T> mapper) throws SQLException
SQLExceptionpublic <T> T executeScalar()
throws SQLException
SQLExceptionpublic void executeQuery(ResultSetHandler handler) throws SQLException
SQLExceptionpublic void executeStream(String streamLabel, OutputStream os, ResultSetHandler handler) throws SQLException, IOException
SQLExceptionIOExceptionpublic void executeStream(String streamLabel, Writer w, ResultSetHandler handler) throws SQLException, IOException
SQLExceptionIOExceptionpublic void executeNStream(String streamLabel, Writer w, ResultSetHandler handler) throws SQLException, IOException
SQLExceptionIOExceptionpublic void setContains(String parameterName, String value) throws SQLException
SQLExceptionpublic void setStartsWith(String parameterName, String value) throws SQLException
SQLExceptionpublic void setEndsWith(String parameterName, String value) throws SQLException
SQLExceptionpublic void setNContains(String parameterName, String value) throws SQLException
SQLExceptionpublic void setNStartsWith(String parameterName, String value) throws SQLException
SQLExceptionpublic void setNEndsWith(String parameterName, String value) throws SQLException
SQLExceptionpublic void setStringArray(String parameterName, String... values) throws SQLException
SQLExceptionpublic void setNStringArray(String parameterName, String... values) throws SQLException
SQLExceptionpublic void setByteArray(String parameterName, byte... values) throws SQLException
SQLExceptionpublic void setShortArray(String parameterName, short... values) throws SQLException
SQLExceptionpublic void setIntArray(String parameterName, int... values) throws SQLException
SQLExceptionpublic void setLongArray(String parameterName, long... values) throws SQLException
SQLExceptionpublic void setFloatArray(String parameterName, float... values) throws SQLException
SQLExceptionpublic void setDoubleArray(String parameterName, double... values) throws SQLException
SQLExceptionpublic void setBigDecimalArray(String parameterName, BigDecimal... values) throws SQLException
SQLExceptionpublic void setDateArray(String parameterName, Date... values) throws SQLException
SQLExceptionpublic void setTimestampArray(String parameterName, Timestamp... values) throws SQLException
SQLExceptionpublic void setTimeArray(String parameterName, Time... values) throws SQLException
SQLExceptionpublic void setBoolean2(String parameterName, Boolean value) throws SQLException
SQLExceptionpublic void setChar2(String parameterName, String value) throws SQLException
SQLExceptionpublic void setNChar2(String parameterName, String value) throws SQLException
SQLExceptionpublic void setString2(String parameterName, String value) throws SQLException
SQLExceptionpublic void setNString2(String parameterName, String value) throws SQLException
SQLExceptionpublic void setByte2(String parameterName, Byte value) throws SQLException
SQLExceptionpublic void setBytes2(String parameterName, byte[] value) throws SQLException
SQLExceptionpublic void setShort2(String parameterName, Short value) throws SQLException
SQLExceptionpublic void setInt2(String parameterName, Integer value) throws SQLException
SQLExceptionpublic void setLong2(String parameterName, Long value) throws SQLException
SQLExceptionpublic void setFloat2(String parameterName, Float value) throws SQLException
SQLExceptionpublic void setDouble2(String parameterName, Double value) throws SQLException
SQLExceptionpublic void setBigDecimal2(String parameterName, BigDecimal value) throws SQLException
SQLExceptionpublic void setDate2(String parameterName, Date value) throws SQLException
SQLExceptionpublic void setTimestamp2(String parameterName, Timestamp value) throws SQLException
SQLExceptionpublic void setTime2(String parameterName, Time value) throws SQLException
SQLExceptionpublic void setURL2(String parameterName, URL value) throws SQLException
SQLExceptionpublic void setArray2(String parameterName, Array value) throws SQLException
SQLExceptionpublic void setSQLXML2(String parameterName, SQLXML value) throws SQLException
SQLExceptionpublic void setRef2(String parameterName, Ref value) throws SQLException
SQLExceptionpublic void setRowId2(String parameterName, RowId value) throws SQLException
SQLExceptionpublic void setClob2(String parameterName, Clob value) throws SQLException
SQLExceptionpublic void setClob2(String parameterName, Reader value) throws SQLException
SQLExceptionpublic void setNClob2(String parameterName, NClob value) throws SQLException
SQLExceptionpublic void setNClob2(String parameterName, Reader value) throws SQLException
SQLExceptionpublic void setAsciiStream2(String parameterName, InputStream value) throws SQLException
SQLExceptionpublic void setCharacterStream2(String parameterName, Reader value) throws SQLException
SQLExceptionpublic void setNCharacterStream2(String parameterName, Reader value) throws SQLException
SQLExceptionpublic void setBlob2(String parameterName, Blob value) throws SQLException
SQLExceptionpublic void setBlob2(String parameterName, InputStream value) throws SQLException
SQLExceptionpublic void setBinaryStream2(String parameterName, InputStream value) throws SQLException
SQLExceptionpublic void setBoolean(String parameterName, boolean x) throws SQLException
SQLExceptionpublic void setString(String parameterName, String x) throws SQLException
SQLExceptionpublic void setNString(String parameterName, String value) throws SQLException
SQLExceptionpublic void setByte(String parameterName, byte x) throws SQLException
SQLExceptionpublic void setBytes(String parameterName, byte[] x) throws SQLException
SQLExceptionpublic void setShort(String parameterName, short x) throws SQLException
SQLExceptionpublic void setInt(String parameterName, int x) throws SQLException
SQLExceptionpublic void setLong(String parameterName, long x) throws SQLException
SQLExceptionpublic void setFloat(String parameterName, float x) throws SQLException
SQLExceptionpublic void setDouble(String parameterName, double x) throws SQLException
SQLExceptionpublic void setBigDecimal(String parameterName, BigDecimal x) throws SQLException
SQLExceptionpublic void setDate(String parameterName, Date x, Calendar cal) throws SQLException
SQLExceptionpublic void setDate(String parameterName, Date x) throws SQLException
SQLExceptionpublic void setTimestamp(String parameterName, Timestamp x) throws SQLException
SQLExceptionpublic void setTimestamp(String parameterName, Timestamp x, Calendar cal) throws SQLException
SQLExceptionpublic void setTime(String parameterName, Time x, Calendar cal) throws SQLException
SQLExceptionpublic void setTime(String parameterName, Time x) throws SQLException
SQLExceptionpublic void setNull(String parameterName, int sqlType, String typeName) throws SQLException
SQLExceptionpublic void setNull(String parameterName, int sqlType) throws SQLException
SQLExceptionpublic void setObject(String parameterName, Object x) throws SQLException
SQLExceptionpublic void setObject(String parameterName, Object x, int targetSqlType, int scaleOrLength) throws SQLException
SQLExceptionpublic void setObject(String parameterName, Object x, SQLType targetSqlType) throws SQLException
SQLExceptionpublic void setObject(String parameterName, Object x, int targetSqlType) throws SQLException
SQLExceptionpublic void setObject(String parameterName, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException
SQLExceptionpublic void setURL(String parameterName, URL x) throws SQLException
SQLExceptionpublic void setArray(String parameterName, Array x) throws SQLException
SQLExceptionpublic void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException
SQLExceptionpublic void setRef(String parameterName, Ref x) throws SQLException
SQLExceptionpublic void setRowId(String parameterName, RowId x) throws SQLException
SQLExceptionpublic void setClob(String parameterName, Reader reader, long length) throws SQLException
SQLExceptionpublic void setClob(String parameterName, Clob x) throws SQLException
SQLExceptionpublic void setClob(String parameterName, Reader reader) throws SQLException
SQLExceptionpublic void setNClob(String parameterName, NClob value) throws SQLException
SQLExceptionpublic void setNClob(String parameterName, Reader reader, long length) throws SQLException
SQLExceptionpublic void setNClob(String parameterName, Reader reader) throws SQLException
SQLExceptionpublic void setAsciiStream(String parameterName, InputStream x, int length) throws SQLException
SQLExceptionpublic void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException
SQLExceptionpublic void setAsciiStream(String parameterName, InputStream x) throws SQLException
SQLExceptionpublic void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException
SQLExceptionpublic void setCharacterStream(String parameterName, Reader reader, int length) throws SQLException
SQLExceptionpublic void setCharacterStream(String parameterName, Reader reader) throws SQLException
SQLExceptionpublic void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException
SQLExceptionpublic void setNCharacterStream(String parameterName, Reader value) throws SQLException
SQLException@Deprecated public void setUnicodeStream(String parameterName, InputStream x, int length) throws SQLException
SQLExceptionpublic void setBlob(String parameterName, Blob x) throws SQLException
SQLExceptionpublic void setBlob(String parameterName, InputStream inputStream) throws SQLException
SQLExceptionpublic void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException
SQLExceptionpublic void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException
SQLExceptionpublic void setBinaryStream(String parameterName, InputStream x) throws SQLException
SQLExceptionpublic void setBinaryStream(String parameterName, InputStream x, int length) throws SQLException
SQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic long executeLargeUpdate()
throws SQLException
executeLargeUpdate in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionpublic void setBoolean(int parameterIndex,
boolean x)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setString(int parameterIndex,
String x)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setNString(int parameterIndex,
String value)
throws SQLException
setNString in interface PreparedStatementSQLExceptionpublic void setByte(int parameterIndex,
byte x)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setBytes(int parameterIndex,
byte[] x)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setShort(int parameterIndex,
short x)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setInt(int parameterIndex,
int x)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int parameterIndex,
long x)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setFloat(int parameterIndex,
float x)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setDouble(int parameterIndex,
double x)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int parameterIndex,
BigDecimal x)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date x,
Calendar cal)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date x)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp x)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time x,
Calendar cal)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time x)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType,
String typeName)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
int targetSqlType,
int scaleOrLength)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
SQLType targetSqlType)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
int targetSqlType)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object x,
SQLType targetSqlType,
int scaleOrLength)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setURL(int parameterIndex,
URL x)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic void setArray(int parameterIndex,
Array x)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic void setSQLXML(int parameterIndex,
SQLXML xmlObject)
throws SQLException
setSQLXML in interface PreparedStatementSQLExceptionpublic void setRef(int parameterIndex,
Ref x)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setRowId(int parameterIndex,
RowId x)
throws SQLException
setRowId in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Clob x)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Reader reader)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
NClob value)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int parameterIndex,
Reader reader)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream x)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
long length)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
int length)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value,
long length)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int parameterIndex,
Reader value)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLException@Deprecated public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
Blob x)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
InputStream inputStream,
long length)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic long executeLargeUpdate(String sql, int[] columnIndexes) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String sql, String[] columnNames) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String sql) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String sql) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
execute in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic long[] executeLargeBatch()
throws SQLException
executeLargeBatch in interface StatementSQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
executeQuery in interface StatementSQLExceptionpublic void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic void setCursorName(String name) throws SQLException
setCursorName in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean enable)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic void setLargeMaxRows(long max)
throws SQLException
setLargeMaxRows in interface StatementSQLExceptionpublic void setMaxFieldSize(int max)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic void setMaxRows(int max)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setPoolable(boolean poolable)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic long getLargeUpdateCount()
throws SQLException
getLargeUpdateCount in interface StatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic void addBatch(String sql) throws SQLException
addBatch in interface StatementSQLExceptionpublic void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic long getLargeMaxRows()
throws SQLException
getLargeMaxRows in interface StatementSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic boolean getMoreResults(int current)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionCopyright © 2017. All rights reserved.