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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Returns the parameter map.text()Returns the query text.toString()withParameters(Map<String, Object> newParameters) Returns a new Query object with updated parameters.withParameters(Value newParameters) Returns a new Query object with updated parameters.Returns a new Query object with updated text.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.- Returns:
- the query text
-
parameters
Returns the parameter map.- Returns:
- the parameter map
-
withText
Returns a new Query object with updated text.- Parameters:
newText- the new query text- Returns:
- a new Query object with updated text
-
withParameters
Returns a new Query object with updated parameters.- Parameters:
newParameters- the new parameter map- Returns:
- a new Query object with updated parameters
-
withParameters
Returns a new Query object with updated parameters.- 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
-