@Immutable public class Statement extends Object
Session,
Transaction,
StatementResult,
StatementResult.consume(),
ResultSummary| Constructor and Description |
|---|
Statement(String text)
Create a new statement.
|
Statement(String text,
Map<String,Object> parameters)
Create a new statement.
|
Statement(String text,
Value parameters)
Create a new statement.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Value |
parameters() |
String |
text() |
String |
toString() |
Statement |
withParameters(Map<String,Object> newParameters) |
Statement |
withParameters(Value newParameters) |
Statement |
withText(String newText) |
Statement |
withUpdatedParameters(Value updates)
Create a new statement with new parameters derived by updating this'
statement's parameters using the given updates.
|
public Statement(String text, Value parameters)
text - the statement textparameters - the statement parameterspublic Statement(String text, Map<String,Object> parameters)
text - the statement textparameters - the statement parameterspublic Statement(String text)
text - the statement textpublic String text()
public Value parameters()
public Statement withText(String newText)
newText - the new statement's textpublic Statement withParameters(Value newParameters)
newParameters - the new statement's parameterspublic Statement withParameters(Map<String,Object> newParameters)
newParameters - the new statement's parameterspublic Statement withUpdatedParameters(Value updates)
updates - describing how to update the parametersCopyright © 2017. All rights reserved.