Class ProcedureCall

    • Method Detail

      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.
      • isRenderConstantsAsParameters

        public boolean isRenderConstantsAsParameters()
        Description copied from interface: Statement
        Some constants may be rendered as parameters.
        Specified by:
        isRenderConstantsAsParameters in interface Statement
        Returns:
        True if literal parameters hav
      • setRenderConstantsAsParameters

        public void setRenderConstantsAsParameters​(boolean renderConstantsAsParameters)
        Description copied from interface: Statement
        Use this method to configure whether some constant values should be rendered as parameters or as literals before the first call to Statement.getParameters() or Statement.getCypher().

        Renderers are free to chose to ignore this.

        Specified by:
        setRenderConstantsAsParameters in interface Statement
        Parameters:
        renderConstantsAsParameters - Set to true to render constants as parameters (when using Statement.getCypher().
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Description copied from interface: Statement
        After a statement has been build, all parameters that have been added to the statement can be retrieved through this method. The result will only contain parameters with a defined value. If you are interested in all parameter names, use Statement.getParameterNames().

        The map can be used for example as an argument with various methods on the Neo4j Java Driver that allow the execution of parameterized queries.

        This method is threadsafe

        Specified by:
        getParameters in interface Statement
        Returns:
        A map of all parameters with a bound value.
      • getParameterNames

        public java.util.Set<java.lang.String> getParameterNames()
        Description copied from interface: Statement
        After the statement has been build, this method returns a list of all parameter names used, regardless whether a value was bound to the parameter o not.

        This method is threadsafe

        Specified by:
        getParameterNames in interface Statement
        Returns:
        A set of parameter names being used.
      • getCypher

        public java.lang.String getCypher()
        Description copied from interface: Statement
        This method uses the default renderer to create a String representation of this statement. The generated Cypher will use escaped literals and correct placeholders like $param for parameters. The placeholders for parameters can be retrieved via Statement.getParameterNames(). Bounded values for paramters can be retrieved via Statement.getParameters().

        This method is threadsafe

        Specified by:
        getCypher in interface Statement
        Returns:
        A valid Cypher statement