java.lang.Object
org.neo4j.driver.Query
The components of a Cypher query, containing the query text and parameter map.
- Since:
- 1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
text()
toString()
withParameters
(Map<String, Object> newParameters) withParameters
(Value newParameters) withUpdatedParameters
(Value updates) Create a new query with new parameters derived by updating this' query's parameters using the given updates.
-
Constructor Details
-
Query
Create a new query.- Parameters:
text
- the query textparameters
- the parameter map
-
Query
Create a new query.- Parameters:
text
- the query textparameters
- the parameter map
-
Query
Create a new query.- Parameters:
text
- the query text
-
-
Method Details
-
text
- Returns:
- the query text
-
parameters
- Returns:
- the parameter map
-
withText
- Parameters:
newText
- the new query text- Returns:
- a new Query object with updated text
-
withParameters
- Parameters:
newParameters
- the new parameter map- Returns:
- a new Query object with updated parameters
-
withParameters
- Parameters:
newParameters
- the new parameter map- Returns:
- a new Query object with updated parameters
-
withUpdatedParameters
Create a new query with new parameters derived by updating this' query's parameters using the given updates.Every update key that points to a null value will be removed from the new query's parameters. All other entries will just replace any existing parameter in the new query.
- Parameters:
updates
- describing how to update the parameters- Returns:
- a new query with updated parameters
-
equals
-
hashCode
public int hashCode() -
toString
-