Class InsertStatementBuilder

    • Constructor Detail

      • InsertStatementBuilder

        public InsertStatementBuilder()
    • Method Detail

      • getSyntax

        public String getSyntax()
        Description copied from interface: StatementBuilder
        Return the syntax of the CohQL command.
        Returns:
        the syntax of the CohQL command
      • getDescription

        public String getDescription()
        Description copied from interface: StatementBuilder
        Return a description of the CohQL command suitable for displaying as help text.
        Returns:
        a description of the CohQL command suitable for displaying as help text
      • createInsertKey

        protected Object createInsertKey​(Term termKey,
                                         com.tangosol.coherence.dslquery.internal.UpdateSetListMaker transformer,
                                         Object oValue)
        Create the key to use in the insert statement.
        Parameters:
        termKey - the AST representing the Key term
        transformer - the UpdateSetListMaker that will create the key instance
        oValue - the value being inserted that will be used to call its getKey method if no key term is present
        Returns:
        the value to use as the key for the insert
        Throws:
        CohQLException - if there are any errors creating the key instance
      • createInsertValue

        protected Object createInsertValue​(Term termValue,
                                           com.tangosol.coherence.dslquery.internal.UpdateSetListMaker transformer)
        Create the instance of the value that will be inserted into the cache.
        Parameters:
        termValue - the AST term to use to create the value
        transformer - the UpdateSetListMaker that can create values from AST terms
        Returns:
        an instance of a value to insert into the cache
        Throws:
        CohQLException - if any errors occur creating the value
      • createUpdateSetListMaker

        protected com.tangosol.coherence.dslquery.internal.UpdateSetListMaker createUpdateSetListMaker​(ExecutionContext ctx,
                                                                                                       List listBindVars,
                                                                                                       ParameterResolver namedBindVars)
        Create an UpdateSetListMaker.
        Parameters:
        ctx - the ExecutionContext to use
        listBindVars - the indexed bind variables to pass to the UpdateSetListMaker
        namedBindVars - the named bind variables to pass to the UpdateSetListMaker
        Returns:
        an UpdateSetListMaker