public class PreparedStatementAdapter extends Object implements PreparedStatement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
PreparedStatementAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
addBatch(String string) |
void |
cancel() |
void |
clearBatch() |
void |
clearParameters() |
void |
clearWarnings() |
void |
close() |
void |
closeOnCompletion() |
boolean |
execute() |
boolean |
execute(String string) |
boolean |
execute(String string,
int i) |
boolean |
execute(String string,
int[] ints) |
boolean |
execute(String string,
String[] strings) |
int[] |
executeBatch() |
long[] |
executeLargeBatch() |
long |
executeLargeUpdate() |
long |
executeLargeUpdate(String string) |
long |
executeLargeUpdate(String string,
int i) |
long |
executeLargeUpdate(String string,
int[] ints) |
long |
executeLargeUpdate(String string,
String[] strings) |
ResultSet |
executeQuery() |
ResultSet |
executeQuery(String string) |
int |
executeUpdate() |
int |
executeUpdate(String string) |
int |
executeUpdate(String string,
int i) |
int |
executeUpdate(String string,
int[] ints) |
int |
executeUpdate(String string,
String[] strings) |
Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
ResultSet |
getGeneratedKeys() |
long |
getLargeMaxRows() |
long |
getLargeUpdateCount() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
ResultSetMetaData |
getMetaData() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int i) |
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<?> type) |
void |
setArray(int i,
Array array) |
void |
setAsciiStream(int i,
InputStream in) |
void |
setAsciiStream(int i,
InputStream in,
int i1) |
void |
setAsciiStream(int i,
InputStream in,
long l) |
void |
setBigDecimal(int i,
BigDecimal bd) |
void |
setBinaryStream(int i,
InputStream in) |
void |
setBinaryStream(int i,
InputStream in,
int i1) |
void |
setBinaryStream(int i,
InputStream in,
long l) |
void |
setBlob(int i,
Blob blob) |
void |
setBlob(int i,
InputStream in) |
void |
setBlob(int i,
InputStream in,
long l) |
void |
setBoolean(int i,
boolean bln) |
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 |
setCursorName(String string) |
void |
setDate(int i,
Date date) |
void |
setDate(int i,
Date date,
Calendar clndr) |
void |
setDouble(int i,
double d) |
void |
setEscapeProcessing(boolean bln) |
void |
setFetchDirection(int i) |
void |
setFetchSize(int i) |
void |
setFloat(int i,
float f) |
void |
setInt(int i,
int i1) |
void |
setLargeMaxRows(long l) |
void |
setLong(int i,
long l) |
void |
setMaxFieldSize(int i) |
void |
setMaxRows(int i) |
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 string) |
void |
setNull(int i,
int i1) |
void |
setNull(int i,
int i1,
String string) |
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 |
setObject(int i,
Object o,
SQLType sqlt) |
void |
setObject(int i,
Object o,
SQLType sqlt,
int i1) |
void |
setPoolable(boolean bln) |
void |
setQueryTimeout(int i) |
void |
setRef(int i,
Ref ref) |
void |
setRowId(int i,
RowId rowid) |
void |
setShort(int i,
short s) |
void |
setSQLXML(int i,
SQLXML sqlxml) |
void |
setString(int i,
String string) |
void |
setTime(int i,
Time time) |
void |
setTime(int i,
Time time,
Calendar clndr) |
void |
setTimestamp(int i,
Timestamp tmstmp) |
void |
setTimestamp(int i,
Timestamp tmstmp,
Calendar clndr) |
void |
setUnicodeStream(int i,
InputStream in,
int i1) |
void |
setURL(int i,
URL url) |
<T> T |
unwrap(Class<T> type) |
public ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic void setNull(int i,
int i1)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setBoolean(int i,
boolean bln)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int i,
byte b)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setShort(int i,
short s)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setInt(int i,
int i1)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int i,
long l)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setFloat(int i,
float f)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setDouble(int i,
double d)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int i,
BigDecimal bd)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setString(int i,
String string)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setBytes(int i,
byte[] bytes)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date date)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time time)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp tmstmp)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int i,
InputStream in,
int i1)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setUnicodeStream(int i,
InputStream in,
int i1)
throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int i,
InputStream in,
int i1)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o,
int i1)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int i,
Reader reader,
int i1)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setRef(int i,
Ref ref)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setBlob(int i,
Blob blob)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setClob(int i,
Clob clob)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setArray(int i,
Array array)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic void setDate(int i,
Date date,
Calendar clndr)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setTime(int i,
Time time,
Calendar clndr)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int i,
Timestamp tmstmp,
Calendar clndr)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setNull(int i,
int i1,
String string)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setURL(int i,
URL url)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic void setRowId(int i,
RowId rowid)
throws SQLException
setRowId in interface PreparedStatementSQLExceptionpublic void setNString(int i,
String string)
throws SQLException
setNString in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int i,
Reader reader,
long l)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNClob(int i,
NClob nclob)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setClob(int i,
Reader reader,
long l)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setBlob(int i,
InputStream in,
long l)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setNClob(int i,
Reader reader,
long l)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setSQLXML(int i,
SQLXML sqlxml)
throws SQLException
setSQLXML in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o,
int i1,
int i2)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int i,
InputStream in,
long l)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int i,
InputStream in,
long l)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int i,
Reader reader,
long l)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int i,
InputStream in)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int i,
InputStream in)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int i,
Reader reader)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int i,
Reader reader)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setClob(int i,
Reader reader)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setBlob(int i,
InputStream in)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setNClob(int i,
Reader reader)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o,
SQLType sqlt,
int i1)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int i,
Object o,
SQLType sqlt)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic long executeLargeUpdate()
throws SQLException
executeLargeUpdate in interface PreparedStatementSQLExceptionpublic ResultSet executeQuery(String string) throws SQLException
executeQuery in interface StatementSQLExceptionpublic int executeUpdate(String string) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic void close()
throws SQLException
close in interface AutoCloseableclose in interface StatementSQLExceptionpublic int getMaxFieldSize()
throws SQLException
getMaxFieldSize in interface StatementSQLExceptionpublic void setMaxFieldSize(int i)
throws SQLException
setMaxFieldSize in interface StatementSQLExceptionpublic int getMaxRows()
throws SQLException
getMaxRows in interface StatementSQLExceptionpublic void setMaxRows(int i)
throws SQLException
setMaxRows in interface StatementSQLExceptionpublic void setEscapeProcessing(boolean bln)
throws SQLException
setEscapeProcessing in interface StatementSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface StatementSQLExceptionpublic void setQueryTimeout(int i)
throws SQLException
setQueryTimeout in interface StatementSQLExceptionpublic void cancel()
throws SQLException
cancel in interface StatementSQLExceptionpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface StatementSQLExceptionpublic void clearWarnings()
throws SQLException
clearWarnings in interface StatementSQLExceptionpublic void setCursorName(String string) throws SQLException
setCursorName in interface StatementSQLExceptionpublic boolean execute(String string) throws SQLException
execute in interface StatementSQLExceptionpublic ResultSet getResultSet() throws SQLException
getResultSet in interface StatementSQLExceptionpublic int getUpdateCount()
throws SQLException
getUpdateCount in interface StatementSQLExceptionpublic boolean getMoreResults()
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic void setFetchDirection(int i)
throws SQLException
setFetchDirection in interface StatementSQLExceptionpublic int getFetchDirection()
throws SQLException
getFetchDirection in interface StatementSQLExceptionpublic void setFetchSize(int i)
throws SQLException
setFetchSize in interface StatementSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface StatementSQLExceptionpublic int getResultSetConcurrency()
throws SQLException
getResultSetConcurrency in interface StatementSQLExceptionpublic int getResultSetType()
throws SQLException
getResultSetType in interface StatementSQLExceptionpublic void addBatch(String string) throws SQLException
addBatch in interface StatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface StatementSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface StatementSQLExceptionpublic boolean getMoreResults(int i)
throws SQLException
getMoreResults in interface StatementSQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys in interface StatementSQLExceptionpublic int executeUpdate(String string, int i) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String string, int[] ints) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic int executeUpdate(String string, String[] strings) throws SQLException
executeUpdate in interface StatementSQLExceptionpublic boolean execute(String string, int i) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String string, int[] ints) throws SQLException
execute in interface StatementSQLExceptionpublic boolean execute(String string, String[] strings) throws SQLException
execute in interface StatementSQLExceptionpublic int getResultSetHoldability()
throws SQLException
getResultSetHoldability in interface StatementSQLExceptionpublic boolean isClosed()
throws SQLException
isClosed in interface StatementSQLExceptionpublic void setPoolable(boolean bln)
throws SQLException
setPoolable in interface StatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementSQLExceptionpublic void closeOnCompletion()
throws SQLException
closeOnCompletion in interface StatementSQLExceptionpublic boolean isCloseOnCompletion()
throws SQLException
isCloseOnCompletion in interface StatementSQLExceptionpublic long getLargeUpdateCount()
throws SQLException
getLargeUpdateCount in interface StatementSQLExceptionpublic void setLargeMaxRows(long l)
throws SQLException
setLargeMaxRows in interface StatementSQLExceptionpublic long getLargeMaxRows()
throws SQLException
getLargeMaxRows in interface StatementSQLExceptionpublic long[] executeLargeBatch()
throws SQLException
executeLargeBatch in interface StatementSQLExceptionpublic long executeLargeUpdate(String string) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String string, int i) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String string, int[] ints) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic long executeLargeUpdate(String string, String[] strings) throws SQLException
executeLargeUpdate in interface StatementSQLExceptionpublic <T> T unwrap(Class<T> type) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> type) throws SQLException
isWrapperFor in interface WrapperSQLExceptionCopyright © 2019. All rights reserved.