Class NotMatchedClause

    • Constructor Detail

      • NotMatchedClause

        public NotMatchedClause​(Fragment root)
        Create a new instance of a NotMatchedClause.
        Parameters:
        root - root SQL statement this WHEN NOT MATCHED clause belongs to
    • Method Detail

      • thenInsert

        public MergeInsertClause thenInsert()
        Select inserting as merge strategy for rows from the source for which no match in the destination exists.
        Returns:
        update clause
      • hasInsert

        public boolean hasInsert()
        Check if the THEN INSERT clause is present.
        Returns:
        true if the THEN INSERT clause is present
      • getInsert

        public MergeInsertClause getInsert()
        Get the THEN INSERT clause.
        Returns:
        THEN INSERT clause
      • accept

        public void accept​(MergeVisitor visitor)
        Description copied from interface: MergeFragment
        Accept a visitor (e.g. a renderer or validator).
        Specified by:
        accept in interface MergeFragment
        Parameters:
        visitor - visitor to accept