public class CombinedPreparedStatementPart extends Object implements PreparedStatementPart
Constructor and Description |
---|
CombinedPreparedStatementPart()
Constructor.
|
CombinedPreparedStatementPart(PreparedStatementPart toAdd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPreparedStatementReplacement(Object toAdd)
Adds a PreparedStatementPart to the list of contained PreparedStatementParts,
which contains only the given replacement.
|
void |
append(PreparedStatementPart toAdd)
Adds a PreparedStatementPart to the list of contained PreparedStatementParts.
|
void |
appendSql(String sql)
Adds a PreparedStatementPart to the list of contained PreparedStatementParts,
which contains only the given sql.
|
List<Object> |
getPreparedStatementReplacements()
Returns the list of prepared statement replacements.
|
String |
getSqlAsString()
Returns the SQL of the part as String.
|
public CombinedPreparedStatementPart()
public CombinedPreparedStatementPart(PreparedStatementPart toAdd)
toAdd
- the PreparedStatementPart to add, not null.public void append(PreparedStatementPart toAdd)
toAdd
- the PreparedStatementPart to add, not null.public void appendSql(String sql)
sql
- the sql to add, not null.public void addPreparedStatementReplacement(Object toAdd)
toAdd
- the replacement to add, not null.public String getSqlAsString()
getSqlAsString
in interface PreparedStatementPart
public List<Object> getPreparedStatementReplacements()
getPreparedStatementReplacements
in interface PreparedStatementPart
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.