public abstract class AbstractPreparedStatement
extends java.lang.Object
implements java.sql.PreparedStatement
| Constructor and Description |
|---|
AbstractPreparedStatement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
void |
addBatch(java.lang.String s) |
void |
cancel() |
void |
clearBatch() |
void |
clearParameters() |
void |
clearWarnings() |
boolean |
execute(java.lang.String s) |
boolean |
execute(java.lang.String s,
int i) |
boolean |
execute(java.lang.String s,
int[] ints) |
boolean |
execute(java.lang.String s,
java.lang.String[] strings) |
int[] |
executeBatch() |
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
int |
executeUpdate(java.lang.String s) |
int |
executeUpdate(java.lang.String s,
int i) |
int |
executeUpdate(java.lang.String s,
int[] ints) |
int |
executeUpdate(java.lang.String s,
java.lang.String[] strings) |
java.sql.Connection |
getConnection() |
int |
getFetchDirection() |
int |
getFetchSize() |
java.sql.ResultSet |
getGeneratedKeys() |
int |
getMaxFieldSize() |
int |
getMaxRows() |
java.sql.ResultSetMetaData |
getMetaData() |
boolean |
getMoreResults() |
boolean |
getMoreResults(int i) |
java.sql.ParameterMetaData |
getParameterMetaData() |
int |
getQueryTimeout() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
java.sql.SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isPoolable() |
boolean |
isWrapperFor(java.lang.Class<?> aClass) |
void |
setArray(int i,
java.sql.Array array) |
void |
setAsciiStream(int i,
java.io.InputStream inputStream) |
void |
setAsciiStream(int i,
java.io.InputStream inputStream,
int i1) |
void |
setAsciiStream(int i,
java.io.InputStream inputStream,
long l) |
void |
setBinaryStream(int i,
java.io.InputStream inputStream) |
void |
setBinaryStream(int i,
java.io.InputStream inputStream,
int i1) |
void |
setBinaryStream(int i,
java.io.InputStream inputStream,
long l) |
void |
setBlob(int i,
java.sql.Blob blob) |
void |
setBlob(int i,
java.io.InputStream inputStream) |
void |
setBlob(int i,
java.io.InputStream inputStream,
long l) |
void |
setByte(int i,
byte b) |
void |
setBytes(int i,
byte[] bytes) |
void |
setCharacterStream(int i,
java.io.Reader reader) |
void |
setCharacterStream(int i,
java.io.Reader reader,
int i1) |
void |
setCharacterStream(int i,
java.io.Reader reader,
long l) |
void |
setClob(int i,
java.sql.Clob clob) |
void |
setClob(int i,
java.io.Reader reader) |
void |
setClob(int i,
java.io.Reader reader,
long l) |
void |
setCursorName(java.lang.String s) |
void |
setDate(int i,
java.sql.Date date,
java.util.Calendar calendar) |
void |
setEscapeProcessing(boolean b) |
void |
setFetchDirection(int i) |
void |
setFetchSize(int i) |
void |
setMaxFieldSize(int i) |
void |
setMaxRows(int i) |
void |
setNCharacterStream(int i,
java.io.Reader reader) |
void |
setNCharacterStream(int i,
java.io.Reader reader,
long l) |
void |
setNClob(int i,
java.sql.NClob nClob) |
void |
setNClob(int i,
java.io.Reader reader) |
void |
setNClob(int i,
java.io.Reader reader,
long l) |
void |
setNString(int i,
java.lang.String s) |
void |
setNull(int i,
int i1) |
void |
setNull(int i,
int i1,
java.lang.String s) |
void |
setObject(int i,
java.lang.Object o,
int i1) |
void |
setObject(int i,
java.lang.Object o,
int i1,
int i2) |
void |
setPoolable(boolean b) |
void |
setQueryTimeout(int i) |
void |
setRef(int i,
java.sql.Ref ref) |
void |
setRowId(int i,
java.sql.RowId rowId) |
void |
setShort(int i,
short i2) |
void |
setSQLXML(int i,
java.sql.SQLXML sqlxml) |
void |
setTime(int i,
java.sql.Time time) |
void |
setTime(int i,
java.sql.Time time,
java.util.Calendar calendar) |
void |
setTimestamp(int i,
java.sql.Timestamp timestamp) |
void |
setTimestamp(int i,
java.sql.Timestamp timestamp,
java.util.Calendar calendar) |
void |
setUnicodeStream(int i,
java.io.InputStream inputStream,
int i1) |
<T> T |
unwrap(java.lang.Class<T> tClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
executeQuery in interface java.sql.Statementjava.sql.SQLExceptionpublic void setNull(int i,
int i1)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setByte(int i,
byte b)
throws java.sql.SQLException
setByte in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setShort(int i,
short i2)
throws java.sql.SQLException
setShort in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBytes(int i,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int i,
java.sql.Time time)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int i,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int i,
java.io.InputStream inputStream,
int i1)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setUnicodeStream(int i,
java.io.InputStream inputStream,
int i1)
throws java.sql.SQLException
setUnicodeStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int i,
java.io.InputStream inputStream,
int i1)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void clearParameters()
throws java.sql.SQLException
clearParameters in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int i,
java.lang.Object o,
int i1)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void addBatch()
throws java.sql.SQLException
addBatch in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int i,
java.io.Reader reader,
int i1)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setRef(int i,
java.sql.Ref ref)
throws java.sql.SQLException
setRef in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int i,
java.sql.Blob blob)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int i,
java.sql.Clob clob)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setArray(int i,
java.sql.Array array)
throws java.sql.SQLException
setArray in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDate(int i,
java.sql.Date date,
java.util.Calendar calendar)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int i,
java.sql.Time time,
java.util.Calendar calendar)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int i,
java.sql.Timestamp timestamp,
java.util.Calendar calendar)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNull(int i,
int i1,
java.lang.String s)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
getParameterMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setRowId(int i,
java.sql.RowId rowId)
throws java.sql.SQLException
setRowId in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNString(int i,
java.lang.String s)
throws java.sql.SQLException
setNString in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int i,
java.io.Reader reader,
long l)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int i,
java.sql.NClob nClob)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int i,
java.io.Reader reader,
long l)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int i,
java.io.InputStream inputStream,
long l)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int i,
java.io.Reader reader,
long l)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setSQLXML(int i,
java.sql.SQLXML sqlxml)
throws java.sql.SQLException
setSQLXML in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int i,
java.lang.Object o,
int i1,
int i2)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int i,
java.io.InputStream inputStream,
long l)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int i,
java.io.InputStream inputStream,
long l)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int i,
java.io.Reader reader,
long l)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int i,
java.io.InputStream inputStream)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int i,
java.io.InputStream inputStream)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int i,
java.io.Reader reader)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int i,
java.io.Reader reader)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int i,
java.io.Reader reader)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int i,
java.io.InputStream inputStream)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int i,
java.io.Reader reader)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxFieldSize(int i)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic void setMaxRows(int i)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLExceptionpublic void setEscapeProcessing(boolean b)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLExceptionpublic int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic void setQueryTimeout(int i)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLExceptionpublic void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLExceptionpublic void setCursorName(java.lang.String s)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchDirection(int i)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLExceptionpublic void setFetchSize(int i)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLExceptionpublic void addBatch(java.lang.String s)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean getMoreResults(int i)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLExceptionpublic java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
int i)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
int[] ints)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic int executeUpdate(java.lang.String s,
java.lang.String[] strings)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
int i)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
int[] ints)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean execute(java.lang.String s,
java.lang.String[] strings)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLExceptionpublic int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Statementjava.sql.SQLExceptionpublic void setPoolable(boolean b)
throws java.sql.SQLException
setPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.Statementjava.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> tClass)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class<?> aClass)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException