public class PreparedStatementImpl extends StatementImpl implements java.sql.PreparedStatement
batchStatementsToLog, connection| Constructor and Description |
|---|
PreparedStatementImpl(ConnectionImpl conn,
java.sql.PreparedStatement statement,
java.lang.String query) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatch() |
protected java.lang.String |
assembleQueryFromPreparedStatement() |
void |
clearParameters() |
boolean |
execute() |
int[] |
executeBatch() |
java.sql.ResultSet |
executeQuery() |
int |
executeUpdate() |
java.sql.ResultSetMetaData |
getMetaData() |
java.sql.ParameterMetaData |
getParameterMetaData() |
java.lang.String |
getPreparedQueryWithoutStackTrace() |
java.lang.String |
getPrepStmtPassthruString() |
java.sql.ResultSet |
getResultSet() |
protected boolean |
isLoggingActivated() |
boolean |
isPoolable() |
void |
setArray(int parameterIndex,
java.sql.Array array) |
void |
setAsciiStream(int arg0,
java.io.InputStream arg1) |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream inputStream,
int length) |
void |
setAsciiStream(int arg0,
java.io.InputStream arg1,
long arg2) |
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal bigDecimalValue) |
void |
setBinaryStream(int arg0,
java.io.InputStream arg1) |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream inputStream,
int length) |
void |
setBinaryStream(int arg0,
java.io.InputStream arg1,
long arg2) |
void |
setBlob(int parameterIndex,
java.sql.Blob blob) |
void |
setBlob(int arg0,
java.io.InputStream arg1) |
void |
setBlob(int arg0,
java.io.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,
java.io.Reader arg1) |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length) |
void |
setCharacterStream(int arg0,
java.io.Reader arg1,
long arg2) |
void |
setClob(int parameterIndex,
java.sql.Clob clob) |
void |
setClob(int arg0,
java.io.Reader arg1) |
void |
setClob(int arg0,
java.io.Reader arg1,
long arg2) |
void |
setDate(int parameterIndex,
java.sql.Date date) |
void |
setDate(int parameterIndex,
java.sql.Date date,
java.util.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,
java.io.Reader arg1) |
void |
setNCharacterStream(int arg0,
java.io.Reader arg1,
long arg2) |
void |
setNClob(int arg0,
java.sql.NClob arg1) |
void |
setNClob(int arg0,
java.io.Reader arg1) |
void |
setNClob(int arg0,
java.io.Reader arg1,
long arg2) |
void |
setNString(int arg0,
java.lang.String arg1) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String typeName) |
void |
setObject(int parameterIndex,
java.lang.Object object) |
void |
setObject(int parameterIndex,
java.lang.Object object,
int targetSqlType) |
void |
setObject(int parameterIndex,
java.lang.Object object,
int targetSqlType,
int scaleOrLength) |
void |
setPoolable(boolean arg0) |
void |
setRef(int parameterIndex,
java.sql.Ref ref) |
void |
setRowId(int arg0,
java.sql.RowId arg1) |
void |
setShort(int parameterIndex,
short shortValue) |
void |
setSQLXML(int arg0,
java.sql.SQLXML arg1) |
void |
setString(int parameterIndex,
java.lang.String value) |
void |
setTime(int parameterIndex,
java.sql.Time time) |
void |
setTime(int parameterIndex,
java.sql.Time time,
java.util.Calendar cal) |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp timestamp) |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp timestamp,
java.util.Calendar cal) |
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream inputStream,
int length) |
void |
setURL(int parameterIndex,
java.net.URL url) |
addBatch, addToLogBatchStatements, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, 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, 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, setQueryTimeoutpublic PreparedStatementImpl(ConnectionImpl conn, java.sql.PreparedStatement statement, java.lang.String query)
public java.lang.String getPreparedQueryWithoutStackTrace()
public java.lang.String getPrepStmtPassthruString()
protected boolean isLoggingActivated()
protected final java.lang.String assembleQueryFromPreparedStatement()
public java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.StatementgetResultSet in class StatementImpljava.sql.SQLExceptionpublic java.sql.ResultSet executeQuery()
throws java.sql.SQLException
executeQuery in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic boolean execute()
throws java.sql.SQLException
execute in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.StatementexecuteBatch in class StatementImpljava.sql.SQLExceptionpublic int executeUpdate()
throws java.sql.SQLException
executeUpdate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setArray(int parameterIndex,
java.sql.Array array)
throws java.sql.SQLException
setArray in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int parameterIndex,
java.io.InputStream inputStream,
int length)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBigDecimal(int parameterIndex,
java.math.BigDecimal bigDecimalValue)
throws java.sql.SQLException
setBigDecimal in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int parameterIndex,
java.io.InputStream inputStream,
int length)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int parameterIndex,
java.sql.Blob blob)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBoolean(int parameterIndex,
boolean booleanValue)
throws java.sql.SQLException
setBoolean in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setByte(int parameterIndex,
byte byteValue)
throws java.sql.SQLException
setByte in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBytes(int parameterIndex,
byte[] byteArray)
throws java.sql.SQLException
setBytes in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int parameterIndex,
java.io.Reader reader,
int length)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int parameterIndex,
java.sql.Clob clob)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDate(int parameterIndex,
java.sql.Date date)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDate(int parameterIndex,
java.sql.Date date,
java.util.Calendar cal)
throws java.sql.SQLException
setDate in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setDouble(int parameterIndex,
double doubleValue)
throws java.sql.SQLException
setDouble in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setFloat(int parameterIndex,
float floatValue)
throws java.sql.SQLException
setFloat in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setInt(int parameterIndex,
int intValue)
throws java.sql.SQLException
setInt in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setLong(int parameterIndex,
long longValue)
throws java.sql.SQLException
setLong in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNull(int parameterIndex,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNull(int parameterIndex,
int sqlType)
throws java.sql.SQLException
setNull in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object object,
int targetSqlType,
int scaleOrLength)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object object,
int targetSqlType)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setObject(int parameterIndex,
java.lang.Object object)
throws java.sql.SQLException
setObject in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setRef(int parameterIndex,
java.sql.Ref ref)
throws java.sql.SQLException
setRef in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setShort(int parameterIndex,
short shortValue)
throws java.sql.SQLException
setShort in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setString(int parameterIndex,
java.lang.String value)
throws java.sql.SQLException
setString in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int parameterIndex,
java.sql.Time time,
java.util.Calendar cal)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTime(int parameterIndex,
java.sql.Time time)
throws java.sql.SQLException
setTime in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int parameterIndex,
java.sql.Timestamp timestamp,
java.util.Calendar cal)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setTimestamp(int parameterIndex,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
setTimestamp in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setURL(int parameterIndex,
java.net.URL url)
throws java.sql.SQLException
setURL in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setUnicodeStream(int parameterIndex,
java.io.InputStream inputStream,
int length)
throws java.sql.SQLException
setUnicodeStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void addBatch()
throws java.sql.SQLException
addBatch in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void clearParameters()
throws java.sql.SQLException
clearParameters in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
getParameterMetaData in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.StatementisPoolable in class StatementImpljava.sql.SQLExceptionpublic void setBlob(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBlob(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
setBlob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setClob(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
setClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNCharacterStream(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
setNCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int arg0,
java.sql.NClob arg1)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNClob(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
setNClob in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setNString(int arg0,
java.lang.String arg1)
throws java.sql.SQLException
setNString in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setPoolable(boolean arg0)
throws java.sql.SQLException
setPoolable in interface java.sql.StatementsetPoolable in class StatementImpljava.sql.SQLExceptionpublic void setRowId(int arg0,
java.sql.RowId arg1)
throws java.sql.SQLException
setRowId in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setSQLXML(int arg0,
java.sql.SQLXML arg1)
throws java.sql.SQLException
setSQLXML in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setAsciiStream(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
setAsciiStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setBinaryStream(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
setBinaryStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionpublic void setCharacterStream(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
setCharacterStream in interface java.sql.PreparedStatementjava.sql.SQLExceptionCopyright © 2018 SAP SE. All Rights Reserved.