public class VirtualPreparedStatement extends VirtualStatement implements PreparedStatement
| Modifier and Type | Field and Description |
|---|---|
String[] |
sqlFragments |
String[] |
sqlValues |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
VirtualPreparedStatement(String sql,
VirtualConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
clearParameters() |
boolean |
execute() |
ResultSet |
executeQuery() |
int |
executeUpdate() |
ResultSetMetaData |
getMetaData() |
ParameterMetaData |
getParameterMetaData() |
void |
setArray(int arg0,
Array arg1) |
void |
setAsciiStream(int arg0,
InputStream arg1) |
void |
setAsciiStream(int arg0,
InputStream arg1,
int arg2) |
void |
setAsciiStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBigDecimal(int index,
BigDecimal value) |
void |
setBinaryStream(int arg0,
InputStream arg1) |
void |
setBinaryStream(int arg0,
InputStream arg1,
int arg2) |
void |
setBinaryStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBlob(int arg0,
Blob arg1) |
void |
setBlob(int arg0,
InputStream arg1) |
void |
setBlob(int arg0,
InputStream arg1,
long arg2) |
void |
setBoolean(int index,
boolean value) |
void |
setByte(int arg0,
byte arg1) |
void |
setBytes(int arg0,
byte[] arg1) |
void |
setCharacterStream(int arg0,
Reader arg1) |
void |
setCharacterStream(int arg0,
Reader arg1,
int arg2) |
void |
setCharacterStream(int arg0,
Reader arg1,
long arg2) |
void |
setClob(int arg0,
Clob arg1) |
void |
setClob(int arg0,
Reader arg1) |
void |
setClob(int arg0,
Reader arg1,
long arg2) |
void |
setDate(int arg0,
Date arg1) |
void |
setDate(int arg0,
Date arg1,
Calendar arg2) |
void |
setDouble(int arg0,
double arg1) |
void |
setFloat(int arg0,
float arg1) |
void |
setInt(int index,
int value) |
void |
setLong(int index,
long value) |
void |
setNCharacterStream(int arg0,
Reader arg1) |
void |
setNCharacterStream(int arg0,
Reader arg1,
long arg2) |
void |
setNClob(int arg0,
NClob arg1) |
void |
setNClob(int arg0,
Reader arg1) |
void |
setNClob(int arg0,
Reader arg1,
long arg2) |
void |
setNString(int arg0,
String arg1) |
void |
setNull(int index,
int arg1) |
void |
setNull(int arg0,
int arg1,
String arg2) |
void |
setObject(int index,
Object value) |
void |
setObject(int arg0,
Object arg1,
int arg2) |
void |
setObject(int arg0,
Object arg1,
int arg2,
int arg3) |
void |
setRef(int arg0,
Ref arg1) |
void |
setRowId(int arg0,
RowId arg1) |
void |
setShort(int index,
short value) |
void |
setSQLXML(int arg0,
SQLXML arg1) |
void |
setString(int index,
String value) |
void |
setTime(int arg0,
Time arg1) |
void |
setTime(int arg0,
Time arg1,
Calendar arg2) |
void |
setTimestamp(int index,
Timestamp value) |
void |
setTimestamp(int arg0,
Timestamp arg1,
Calendar arg2) |
void |
setUnicodeStream(int arg0,
InputStream arg1,
int arg2) |
void |
setURL(int arg0,
URL arg1) |
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, escapeString, 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, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeUpdate, setObject, setObjectaddBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrappublic VirtualPreparedStatement(String sql, VirtualConnection connection)
public void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic void setArray(int arg0,
Array arg1)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int arg0,
InputStream arg1)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int arg0,
InputStream arg1,
int arg2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int index,
BigDecimal value)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int arg0,
InputStream arg1)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int arg0,
InputStream arg1,
int arg2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBlob(int arg0,
Blob arg1)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBlob(int arg0,
InputStream arg1)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBlob(int arg0,
InputStream arg1,
long arg2)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBoolean(int index,
boolean value)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int arg0,
byte arg1)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setBytes(int arg0,
byte[] arg1)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int arg0,
Reader arg1)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int arg0,
Reader arg1,
int arg2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setClob(int arg0,
Clob arg1)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setClob(int arg0,
Reader arg1)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setClob(int arg0,
Reader arg1,
long arg2)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setDate(int arg0,
Date arg1)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDate(int arg0,
Date arg1,
Calendar arg2)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDouble(int arg0,
double arg1)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setFloat(int arg0,
float arg1)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setInt(int index,
int value)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int index,
long value)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int arg0,
Reader arg1)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNClob(int arg0,
NClob arg1)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int arg0,
Reader arg1)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int arg0,
Reader arg1,
long arg2)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNString(int arg0,
String arg1)
throws SQLException
setNString in interface PreparedStatementSQLExceptionpublic void setNull(int index,
int arg1)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setNull(int arg0,
int arg1,
String arg2)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setObject(int index,
Object value)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int arg0,
Object arg1,
int arg2)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int arg0,
Object arg1,
int arg2,
int arg3)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setRef(int arg0,
Ref arg1)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setRowId(int arg0,
RowId arg1)
throws SQLException
setRowId in interface PreparedStatementSQLExceptionpublic void setSQLXML(int arg0,
SQLXML arg1)
throws SQLException
setSQLXML in interface PreparedStatementSQLExceptionpublic void setShort(int index,
short value)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setString(int index,
String value)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setTime(int arg0,
Time arg1)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTime(int arg0,
Time arg1,
Calendar arg2)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int index,
Timestamp value)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setTimestamp(int arg0,
Timestamp arg1,
Calendar arg2)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setURL(int arg0,
URL arg1)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic void setUnicodeStream(int arg0,
InputStream arg1,
int arg2)
throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionCopyright © 2013–2017 R.W.Majeed. All rights reserved.