public class SimonPreparedStatement extends SimonStatement implements PreparedStatement
PreparedStatement
Modifier and Type | Field and Description |
---|---|
protected String |
sql
SQL string.
|
batchSql, conn, prefix, split, sqlCmdLabel, sqlNormalizer
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Modifier and Type | Method and Description |
---|---|
void |
addBatch()
Adds prepared SQL command into batch list of sql and also into real batch.
|
void |
clearParameters() |
boolean |
execute()
Measure and execute prepared SQL operation.
|
ResultSet |
executeQuery()
Measure and execute prepared SQL operation.
|
int |
executeUpdate()
Measure and execute prepared SQL operation.
|
ResultSetMetaData |
getMetaData() |
ParameterMetaData |
getParameterMetaData() |
void |
setArray(int i,
Array array) |
void |
setAsciiStream(int i,
InputStream inputStream) |
void |
setAsciiStream(int i,
InputStream inputStream,
int i1) |
void |
setAsciiStream(int i,
InputStream inputStream,
long l) |
void |
setBigDecimal(int i,
BigDecimal bigDecimal) |
void |
setBinaryStream(int i,
InputStream inputStream) |
void |
setBinaryStream(int i,
InputStream inputStream,
int i1) |
void |
setBinaryStream(int i,
InputStream inputStream,
long l) |
void |
setBlob(int i,
Blob blob) |
void |
setBlob(int i,
InputStream inputStream) |
void |
setBlob(int i,
InputStream inputStream,
long l) |
void |
setBoolean(int i,
boolean b) |
void |
setByte(int i,
byte b) |
void |
setBytes(int i,
byte[] bytes) |
void |
setCharacterStream(int i,
Reader reader) |
void |
setCharacterStream(int i,
Reader reader,
int i1) |
void |
setCharacterStream(int i,
Reader reader,
long l) |
void |
setClob(int i,
Clob clob) |
void |
setClob(int i,
Reader reader) |
void |
setClob(int i,
Reader reader,
long l) |
void |
setDate(int i,
Date date) |
void |
setDate(int i,
Date date,
Calendar calendar) |
void |
setDouble(int i,
double v) |
void |
setFloat(int i,
float v) |
void |
setInt(int i,
int i1) |
void |
setLong(int i,
long l) |
void |
setNCharacterStream(int i,
Reader reader) |
void |
setNCharacterStream(int i,
Reader reader,
long l) |
void |
setNClob(int i,
NClob nClob) |
void |
setNClob(int i,
Reader reader) |
void |
setNClob(int i,
Reader reader,
long l) |
void |
setNString(int i,
String s) |
void |
setNull(int i,
int i1) |
void |
setNull(int i,
int i1,
String s) |
void |
setObject(int i,
Object o) |
void |
setObject(int i,
Object o,
int i1) |
void |
setObject(int i,
Object o,
int i1,
int i2) |
void |
setRef(int i,
Ref ref) |
void |
setRowId(int i,
RowId rowId) |
void |
setShort(int i,
short i1) |
void |
setSQLXML(int i,
SQLXML sqlxml) |
void |
setString(int i,
String s) |
void |
setTime(int i,
Time time) |
void |
setTime(int i,
Time time,
Calendar calendar) |
void |
setTimestamp(int i,
Timestamp timestamp) |
void |
setTimestamp(int i,
Timestamp timestamp,
Calendar calendar) |
void |
setUnicodeStream(int i,
InputStream inputStream,
int i1)
Deprecated.
|
void |
setURL(int i,
URL url) |
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finish, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, prepare, prepare, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, startSplit, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
isWrapperFor, unwrap
public final ResultSet executeQuery() throws SQLException
executeQuery
in interface PreparedStatement
SQLException
- if real calls failspublic final int executeUpdate() throws SQLException
executeUpdate
in interface PreparedStatement
SQLException
- if real calls failspublic final boolean execute() throws SQLException
execute
in interface PreparedStatement
true
if the first result is a ResultSet
object;
false
if it is an update count or there are no resultsSQLException
- if real calls failspublic final void addBatch() throws SQLException
addBatch
in interface PreparedStatement
SQLException
- if real calls failspublic final void setNull(int i, int i1) throws SQLException
setNull
in interface PreparedStatement
SQLException
public final void setBoolean(int i, boolean b) throws SQLException
setBoolean
in interface PreparedStatement
SQLException
public final void setByte(int i, byte b) throws SQLException
setByte
in interface PreparedStatement
SQLException
public final void setShort(int i, short i1) throws SQLException
setShort
in interface PreparedStatement
SQLException
public final void setInt(int i, int i1) throws SQLException
setInt
in interface PreparedStatement
SQLException
public final void setLong(int i, long l) throws SQLException
setLong
in interface PreparedStatement
SQLException
public final void setFloat(int i, float v) throws SQLException
setFloat
in interface PreparedStatement
SQLException
public final void setDouble(int i, double v) throws SQLException
setDouble
in interface PreparedStatement
SQLException
public final void setBigDecimal(int i, BigDecimal bigDecimal) throws SQLException
setBigDecimal
in interface PreparedStatement
SQLException
public final void setString(int i, String s) throws SQLException
setString
in interface PreparedStatement
SQLException
public final void setBytes(int i, byte[] bytes) throws SQLException
setBytes
in interface PreparedStatement
SQLException
public final void setDate(int i, Date date) throws SQLException
setDate
in interface PreparedStatement
SQLException
public final void setTime(int i, Time time) throws SQLException
setTime
in interface PreparedStatement
SQLException
public final void setTimestamp(int i, Timestamp timestamp) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public final void setAsciiStream(int i, InputStream inputStream, int i1) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
@Deprecated public final void setUnicodeStream(int i, InputStream inputStream, int i1) throws SQLException
setUnicodeStream
in interface PreparedStatement
SQLException
public final void setBinaryStream(int i, InputStream inputStream, int i1) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public final void clearParameters() throws SQLException
clearParameters
in interface PreparedStatement
SQLException
public final void setObject(int i, Object o, int i1) throws SQLException
setObject
in interface PreparedStatement
SQLException
public final void setObject(int i, Object o) throws SQLException
setObject
in interface PreparedStatement
SQLException
public final void setObject(int i, Object o, int i1, int i2) throws SQLException
setObject
in interface PreparedStatement
SQLException
public final void setCharacterStream(int i, Reader reader, int i1) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public final void setRef(int i, Ref ref) throws SQLException
setRef
in interface PreparedStatement
SQLException
public final void setBlob(int i, Blob blob) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public final void setClob(int i, Clob clob) throws SQLException
setClob
in interface PreparedStatement
SQLException
public final void setArray(int i, Array array) throws SQLException
setArray
in interface PreparedStatement
SQLException
public final ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface PreparedStatement
SQLException
public final void setDate(int i, Date date, Calendar calendar) throws SQLException
setDate
in interface PreparedStatement
SQLException
public final void setTime(int i, Time time, Calendar calendar) throws SQLException
setTime
in interface PreparedStatement
SQLException
public final void setTimestamp(int i, Timestamp timestamp, Calendar calendar) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public final void setNull(int i, int i1, String s) throws SQLException
setNull
in interface PreparedStatement
SQLException
public final void setURL(int i, URL url) throws SQLException
setURL
in interface PreparedStatement
SQLException
public final ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData
in interface PreparedStatement
SQLException
public final void setRowId(int i, RowId rowId) throws SQLException
setRowId
in interface PreparedStatement
SQLException
public final void setNString(int i, String s) throws SQLException
setNString
in interface PreparedStatement
SQLException
public final void setNCharacterStream(int i, Reader reader, long l) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public final void setNClob(int i, NClob nClob) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public final void setClob(int i, Reader reader, long l) throws SQLException
setClob
in interface PreparedStatement
SQLException
public final void setBlob(int i, InputStream inputStream, long l) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public final void setNClob(int i, Reader reader, long l) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public final void setSQLXML(int i, SQLXML sqlxml) throws SQLException
setSQLXML
in interface PreparedStatement
SQLException
public final void setAsciiStream(int i, InputStream inputStream, long l) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public final void setBinaryStream(int i, InputStream inputStream, long l) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public final void setCharacterStream(int i, Reader reader, long l) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public final void setAsciiStream(int i, InputStream inputStream) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public final void setBinaryStream(int i, InputStream inputStream) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public final void setCharacterStream(int i, Reader reader) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public final void setNCharacterStream(int i, Reader reader) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public final void setClob(int i, Reader reader) throws SQLException
setClob
in interface PreparedStatement
SQLException
public final void setBlob(int i, InputStream inputStream) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public final void setNClob(int i, Reader reader) throws SQLException
setNClob
in interface PreparedStatement
SQLException
Copyright © 2019. All rights reserved.