public class PreparedStatementImpl extends StatementImpl implements PreparedStatement
connectionCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
PreparedStatementImpl(ConnectionImpl conn,
PreparedStatement statement,
String query) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
protected String |
assembleQueryFromPreparedStatement() |
void |
clearParameters() |
boolean |
execute() |
ResultSet |
executeQuery() |
int |
executeUpdate() |
ResultSetMetaData |
getMetaData() |
ParameterMetaData |
getParameterMetaData() |
String |
getPreparedQueryWithoutStackTrace() |
String |
getPrepStmtPassthruString() |
ResultSet |
getResultSet() |
protected boolean |
isLoggingActivated() |
boolean |
isPoolable() |
void |
setArray(int parameterIndex,
Array array) |
void |
setAsciiStream(int arg0,
InputStream arg1) |
void |
setAsciiStream(int parameterIndex,
InputStream inputStream,
int length) |
void |
setAsciiStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBigDecimal(int parameterIndex,
BigDecimal bigDecimalValue) |
void |
setBinaryStream(int arg0,
InputStream arg1) |
void |
setBinaryStream(int parameterIndex,
InputStream inputStream,
int length) |
void |
setBinaryStream(int arg0,
InputStream arg1,
long arg2) |
void |
setBlob(int parameterIndex,
Blob blob) |
void |
setBlob(int arg0,
InputStream arg1) |
void |
setBlob(int arg0,
InputStream arg1,
long arg2) |
void |
setBoolean(int parameterIndex,
boolean booleanValue) |
void |
setByte(int parameterIndex,
byte byteValue) |
void |
setBytes(int parameterIndex,
byte[] byteArray) |
void |
setCharacterStream(int arg0,
Reader arg1) |
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length) |
void |
setCharacterStream(int arg0,
Reader arg1,
long arg2) |
void |
setClob(int parameterIndex,
Clob clob) |
void |
setClob(int arg0,
Reader arg1) |
void |
setClob(int arg0,
Reader arg1,
long arg2) |
void |
setDate(int parameterIndex,
Date date) |
void |
setDate(int parameterIndex,
Date date,
Calendar cal) |
void |
setDouble(int parameterIndex,
double doubleValue) |
void |
setFloat(int parameterIndex,
float floatValue) |
void |
setInt(int parameterIndex,
int intValue) |
void |
setLong(int parameterIndex,
long longValue) |
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 parameterIndex,
int sqlType) |
void |
setNull(int parameterIndex,
int sqlType,
String typeName) |
void |
setObject(int parameterIndex,
Object object) |
void |
setObject(int parameterIndex,
Object object,
int targetSqlType) |
void |
setObject(int parameterIndex,
Object object,
int targetSqlType,
int scaleOrLength) |
void |
setPoolable(boolean arg0) |
void |
setRef(int parameterIndex,
Ref ref) |
void |
setRowId(int arg0,
RowId arg1) |
void |
setShort(int parameterIndex,
short shortValue) |
void |
setSQLXML(int arg0,
SQLXML arg1) |
void |
setString(int parameterIndex,
String value) |
void |
setTime(int parameterIndex,
Time time) |
void |
setTime(int parameterIndex,
Time time,
Calendar cal) |
void |
setTimestamp(int parameterIndex,
Timestamp timestamp) |
void |
setTimestamp(int parameterIndex,
Timestamp timestamp,
Calendar cal) |
void |
setUnicodeStream(int parameterIndex,
InputStream inputStream,
int length) |
void |
setURL(int parameterIndex,
URL url) |
addBatch, addToLogBatchStatements, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isFlexibleSyntax, isWrapperFor, notifyResultSetClosed, releaseResourceImpl, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, unwrap, wrapResultSetaddResource, releaseResources, removeResourceclone, 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, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeoutisWrapperFor, unwrappublic PreparedStatementImpl(ConnectionImpl conn, PreparedStatement statement, String query)
public String getPreparedQueryWithoutStackTrace()
public String getPrepStmtPassthruString()
protected boolean isLoggingActivated()
protected final String assembleQueryFromPreparedStatement()
public ResultSet getResultSet() throws SQLException
getResultSet in interface StatementgetResultSet in class StatementImplSQLExceptionpublic ResultSet executeQuery() throws SQLException
executeQuery in interface PreparedStatementSQLExceptionpublic boolean execute()
throws SQLException
execute in interface PreparedStatementSQLExceptionpublic int executeUpdate()
throws SQLException
executeUpdate in interface PreparedStatementSQLExceptionpublic void setArray(int parameterIndex,
Array array)
throws SQLException
setArray in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int parameterIndex,
InputStream inputStream,
int length)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBigDecimal(int parameterIndex,
BigDecimal bigDecimalValue)
throws SQLException
setBigDecimal in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int parameterIndex,
InputStream inputStream,
int length)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBlob(int parameterIndex,
Blob blob)
throws SQLException
setBlob in interface PreparedStatementSQLExceptionpublic void setBoolean(int parameterIndex,
boolean booleanValue)
throws SQLException
setBoolean in interface PreparedStatementSQLExceptionpublic void setByte(int parameterIndex,
byte byteValue)
throws SQLException
setByte in interface PreparedStatementSQLExceptionpublic void setBytes(int parameterIndex,
byte[] byteArray)
throws SQLException
setBytes in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int parameterIndex,
Reader reader,
int length)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setClob(int parameterIndex,
Clob clob)
throws SQLException
setClob in interface PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date date)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDate(int parameterIndex,
Date date,
Calendar cal)
throws SQLException
setDate in interface PreparedStatementSQLExceptionpublic void setDouble(int parameterIndex,
double doubleValue)
throws SQLException
setDouble in interface PreparedStatementSQLExceptionpublic void setFloat(int parameterIndex,
float floatValue)
throws SQLException
setFloat in interface PreparedStatementSQLExceptionpublic void setInt(int parameterIndex,
int intValue)
throws SQLException
setInt in interface PreparedStatementSQLExceptionpublic void setLong(int parameterIndex,
long longValue)
throws SQLException
setLong in interface PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType,
String typeName)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setNull(int parameterIndex,
int sqlType)
throws SQLException
setNull in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object object,
int targetSqlType,
int scaleOrLength)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object object,
int targetSqlType)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setObject(int parameterIndex,
Object object)
throws SQLException
setObject in interface PreparedStatementSQLExceptionpublic void setRef(int parameterIndex,
Ref ref)
throws SQLException
setRef in interface PreparedStatementSQLExceptionpublic void setShort(int parameterIndex,
short shortValue)
throws SQLException
setShort in interface PreparedStatementSQLExceptionpublic void setString(int parameterIndex,
String value)
throws SQLException
setString in interface PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time time,
Calendar cal)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTime(int parameterIndex,
Time time)
throws SQLException
setTime in interface PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp timestamp,
Calendar cal)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setTimestamp(int parameterIndex,
Timestamp timestamp)
throws SQLException
setTimestamp in interface PreparedStatementSQLExceptionpublic void setURL(int parameterIndex,
URL url)
throws SQLException
setURL in interface PreparedStatementSQLExceptionpublic void setUnicodeStream(int parameterIndex,
InputStream inputStream,
int length)
throws SQLException
setUnicodeStream in interface PreparedStatementSQLExceptionpublic void addBatch()
throws SQLException
addBatch in interface PreparedStatementSQLExceptionpublic void clearParameters()
throws SQLException
clearParameters in interface PreparedStatementSQLExceptionpublic ResultSetMetaData getMetaData() throws SQLException
getMetaData in interface PreparedStatementSQLExceptionpublic ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData in interface PreparedStatementSQLExceptionpublic boolean isPoolable()
throws SQLException
isPoolable in interface StatementisPoolable in class StatementImplSQLExceptionpublic 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 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 setNCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNCharacterStream(int arg0,
Reader arg1)
throws SQLException
setNCharacterStream in interface PreparedStatementSQLExceptionpublic void setNClob(int arg0,
Reader arg1)
throws SQLException
setNClob in interface PreparedStatementSQLExceptionpublic void setNClob(int arg0,
NClob 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 setPoolable(boolean arg0)
throws SQLException
setPoolable in interface StatementsetPoolable in class StatementImplSQLExceptionpublic 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 setAsciiStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setAsciiStream(int arg0,
InputStream arg1)
throws SQLException
setAsciiStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setBinaryStream(int arg0,
InputStream arg1)
throws SQLException
setBinaryStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionpublic void setCharacterStream(int arg0,
Reader arg1)
throws SQLException
setCharacterStream in interface PreparedStatementSQLExceptionCopyright © 2017 SAP SE. All Rights Reserved.