public class PreparedStatementPartImpl extends Object implements PreparedStatementPart, Serializable
| Constructor and Description |
|---|
PreparedStatementPartImpl()
Default constructor, creates an empty PreparedStatementPart.
|
PreparedStatementPartImpl(PreparedStatementPart toCopy)
Copy-Constructor.
|
PreparedStatementPartImpl(String sql,
Object... preparedStatementReplacements)
Constructor, creates a pre-filled PreparedStatementPartImpl.
|
| Modifier and Type | Method and Description |
|---|---|
PreparedStatementPartImpl |
append(PreparedStatementPart toAppend)
Appends another PreparedStatementPart to this part.
|
PreparedStatementPartImpl |
append(SqlEnum toAppend)
Appends a SqlEnum to this part.
|
boolean |
equals(Object obj) |
List<Object> |
getPreparedStatementReplacements()
Returns the list of prepared statement replacements.
|
StringBuilder |
getSql()
Returns the SQL of the part.
|
String |
getSqlAsString()
Returns the SQL of the part as String.
|
int |
hashCode() |
String |
toString() |
public PreparedStatementPartImpl()
public PreparedStatementPartImpl(String sql, Object... preparedStatementReplacements)
sql - The sql to fill into the sql buffer initially, or null.preparedStatementReplacements - the prepared statement replacements
to start with, or null.public PreparedStatementPartImpl(PreparedStatementPart toCopy)
toCopy - the PreparedStatementPart to copy, not null.public StringBuilder getSql()
public String getSqlAsString()
getSqlAsString in interface PreparedStatementPartpublic List<Object> getPreparedStatementReplacements()
getPreparedStatementReplacements in interface PreparedStatementPartpublic PreparedStatementPartImpl append(PreparedStatementPart toAppend)
toAppend - the part to append, not null.public PreparedStatementPartImpl append(SqlEnum toAppend)
toAppend - the part to append, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.