public class PreparedStatementInformation extends StatementInformation implements Loggable
attachment, statement| 构造器和说明 |
|---|
PreparedStatementInformation(ConnectionInformation connectionInformation,
String query) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<Integer,Value> |
getParameterValues() |
String |
getSqlWithValues()
Generates the query for the prepared statement with all parameter placeholders
replaced with the actual parameter values
|
void |
setParameterValue(int position,
Object value)
Records the value of a parameter.
|
getAttachment, getConnectionInformation, getSql, getStatement, getStatementQuery, getTotalTimeElapsed, incrementTimeElapsed, setAttachment, setStatement, setStatementQueryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionInformation, getSqlpublic PreparedStatementInformation(ConnectionInformation connectionInformation, String query)
public String getSqlWithValues()
getSqlWithValues 在接口中 LoggablegetSqlWithValues 在类中 StatementInformationpublic void setParameterValue(int position,
Object value)
position - the position of the parameter (starts with 1 not 0)value - the value of the parameterCopyright © 2019. All rights reserved.