Class Delete.Selection

  • Enclosing class:
    Delete

    public static class Delete.Selection
    extends Delete.Builder
    An column selection clause for an in-construction DELETE statement.
    • Constructor Detail

      • Selection

        public Selection()
    • Method Detail

      • all

        public Delete.Builder all()
        Deletes all columns (i.e. "DELETE FROM ...")
        Returns:
        an in-build DELETE statement.
        Throws:
        IllegalStateException - if some columns had already been selected for this builder.
      • column

        public Delete.Selection column​(String columnName)
        Deletes the provided column.
        Parameters:
        columnName - the column to select for deletion.
        Returns:
        this in-build DELETE Selection
      • listElt

        public Delete.Selection listElt​(String columnName,
                                        int idx)
        Deletes the provided list element.
        Parameters:
        columnName - the name of the list column.
        idx - the index of the element to delete.
        Returns:
        this in-build DELETE Selection
      • listElt

        public Delete.Selection listElt​(String columnName,
                                        BindMarker idx)
        Deletes the provided list element, specified as a bind marker.
        Parameters:
        columnName - the name of the list column.
        idx - the index of the element to delete.
        Returns:
        this in-build DELETE Selection
      • setElt

        public Delete.Selection setElt​(String columnName,
                                       Object element)
        Deletes the provided set element.
        Parameters:
        columnName - the name of the set column.
        element - the element to delete.
        Returns:
        this in-build DELETE Selection
      • setElt

        public Delete.Selection setElt​(String columnName,
                                       BindMarker element)
        Deletes the provided set element, specified as a bind marker.
        Parameters:
        columnName - the name of the set column.
        element - the element to delete.
        Returns:
        this in-build DELETE Selection
      • mapElt

        public Delete.Selection mapElt​(String columnName,
                                       Object key)
        Deletes a map element given a key.
        Parameters:
        columnName - the name of the map column.
        key - the key for the element to delete.
        Returns:
        this in-build DELETE Selection