public class SimonPreparedStatement extends SimonStatement implements PreparedStatement
PreparedStatement| Modifier and Type | Field and Description |
|---|---|
protected String |
sql
SQL string.
|
batchSql, conn, prefix, split, sqlCmdLabel, sqlNormalizerCLOSE_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, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBatch, 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, setQueryTimeoutisWrapperFor, unwrappublic final ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLException - if real calls failspublic final int executeUpdate() throws SQLException
executeUpdate in interface PreparedStatementSQLException - if real calls failspublic final boolean execute() throws SQLException
execute in interface PreparedStatementtrue 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 PreparedStatementSQLException - if real calls failspublic final void setNull(int i, int i1) throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic final void setBoolean(int i, boolean b) throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic final void setByte(int i, byte b) throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic final void setShort(int i, short i1) throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic final void setInt(int i, int i1) throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic final void setLong(int i, long l) throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic final void setFloat(int i, float v) throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic final void setDouble(int i, double v) throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic final void setBigDecimal(int i, BigDecimal bigDecimal) throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic final void setString(int i, String s) throws SQLException
setString in interface PreparedStatementSQLExceptionpublic final void setBytes(int i, byte[] bytes) throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic final void setDate(int i, Date date) throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic final void setTime(int i, Time time) throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic final void setTimestamp(int i, Timestamp timestamp) throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic final void setAsciiStream(int i, InputStream inputStream, int i1) throws SQLException
setAsciiStream in interface PreparedStatementSQLException@Deprecated public final void setUnicodeStream(int i, InputStream inputStream, int i1) throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic final void setBinaryStream(int i, InputStream inputStream, int i1) throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic final void clearParameters() throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic final void setObject(int i, Object o, int i1) throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic final void setObject(int i, Object o) throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic final void setObject(int i, Object o, int i1, int i2) throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic final void setCharacterStream(int i, Reader reader, int i1) throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic final void setRef(int i, Ref ref) throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic final void setBlob(int i, Blob blob) throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic final void setClob(int i, Clob clob) throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic final void setArray(int i, Array array) throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic final ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic final void setDate(int i, Date date, Calendar calendar) throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic final void setTime(int i, Time time, Calendar calendar) throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic final void setTimestamp(int i, Timestamp timestamp, Calendar calendar) throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic final void setNull(int i, int i1, String s) throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic final void setURL(int i, URL url) throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic final ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic final void setRowId(int i, RowId rowId) throws SQLException
setRowId in interface PreparedStatementSQLExceptionpublic final void setNString(int i, String s) throws SQLException
setNString in interface PreparedStatementSQLExceptionpublic final void setNCharacterStream(int i, Reader reader, long l) throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic final void setNClob(int i, NClob nClob) throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic final void setClob(int i, Reader reader, long l) throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic final void setBlob(int i, InputStream inputStream, long l) throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic final void setNClob(int i, Reader reader, long l) throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic final void setSQLXML(int i, SQLXML sqlxml) throws SQLException
setSQLXML in interface PreparedStatementSQLExceptionpublic final void setAsciiStream(int i, InputStream inputStream, long l) throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic final void setBinaryStream(int i, InputStream inputStream, long l) throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic final void setCharacterStream(int i, Reader reader, long l) throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic final void setAsciiStream(int i, InputStream inputStream) throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic final void setBinaryStream(int i, InputStream inputStream) throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic final void setCharacterStream(int i, Reader reader) throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic final void setNCharacterStream(int i, Reader reader) throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic final void setClob(int i, Reader reader) throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic final void setBlob(int i, InputStream inputStream) throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic final void setNClob(int i, Reader reader) throws SQLException
setNClob in interface PreparedStatementSQLExceptionCopyright © 2019. All rights reserved.