public class PreparedStatementInformation extends StatementInformation implements Loggable
| Constructor and Description |
|---|
PreparedStatementInformation(ConnectionInformation connectionInformation,
java.lang.String query) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.Integer,Value> |
getParameterValues() |
java.lang.String |
getSqlWithValues()
Generates the query for the prepared statement with all parameter placeholders
replaced with the actual parameter values
|
void |
setParameterValue(int position,
java.lang.Object value)
Records the value of a parameter.
|
getConnectionInformation, getSql, getStatement, getStatementQuery, getTotalTimeElapsed, incrementTimeElapsed, setStatement, setStatementQueryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionInformation, getSqlpublic PreparedStatementInformation(ConnectionInformation connectionInformation, java.lang.String query)
public java.lang.String getSqlWithValues()
getSqlWithValues in interface LoggablegetSqlWithValues in class StatementInformationpublic void setParameterValue(int position,
java.lang.Object value)
position - the position of the parameter (starts with 1 not 0)value - the value of the parameterprotected java.util.Map<java.lang.Integer,Value> getParameterValues()