public class PreparedStatementInformation extends StatementInformation
Constructor and Description |
---|
PreparedStatementInformation(ConnectionInformation connectionInformation,
ParameterMetaData parameterMetaData) |
Modifier and Type | Method and Description |
---|---|
String |
getPreparedStatementQuery()
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.
|
getConnectionId, getStatementQuery, setStatementQuery
public PreparedStatementInformation(ConnectionInformation connectionInformation, ParameterMetaData parameterMetaData) throws SQLException
SQLException
public String getPreparedStatementQuery() throws SQLException
getPreparedStatementQuery
in class StatementInformation
SQLException
public void setParameterValue(int position, Object value)
position
- the position of the parameter (starts with 1 not 0)value
- the value of the parameterCopyright © 2002-2014 P6Spy. All Rights Reserved.