public interface Statement
Have a look at JdbcScope to manage the
closing of connections properly.
| Modifier and Type | Method and Description |
|---|---|
void |
clearSql()
Clears the current SQL query being built.
|
void |
clearSql(boolean keepCurrentBoundParams)
Clears the current SQL query being built.
|
String |
getSql(boolean friendly)
Returns the current SQL query.
|
void |
setBoolean(String paramName,
Boolean value) |
void |
setDate(String paramName,
LocalDate date) |
void |
setDouble(String paramName,
Double value) |
void |
setFloat(String paramName,
Float value) |
void |
setInInteger(String paramName,
Set<Integer> items)
Explodes a collection of Integer and replaces the specified param with them,
so it can be used inside a
IN(:ids) section
|
void |
setInLong(String paramName,
Set<Long> items)
Explodes a collection of Long and replaces the specified param with them,
so it can be used inside a
IN(:ids) section
|
void |
setInstant(String string,
Instant instant)
This replaces setTimestamp()!
|
void |
setInString(String paramName,
Set<String> items)
Explodes a collection of String and replaces the specified param with them,
so it can be used inside a
IN(:ids) section
|
void |
setInteger(String paramName,
Integer value) |
void |
setLong(String paramName,
Long value) |
void |
setString(String paramName,
String value) |
void |
sql(String sql)
Appends some SQL to the query to launch.
|
void sql(String sql)
clearSql() first!void clearSql()
void clearSql(boolean keepCurrentBoundParams)
keepCurrentBoundParams - if true,
the currently bound parameters won't be cleared, only the
query.String getSql(boolean friendly)
void setInLong(String paramName, Set<Long> items)
void setInInteger(String paramName, Set<Integer> items)
Copyright © 2017. All rights reserved.