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