Interface PostgreMerge.MatchedMergeActionSpec<T>

All Superinterfaces:
io.army.criteria.Statement.DoNothingClause<io.army.criteria.Statement._EndFlag>
Enclosing interface:
PostgreMerge

public static interface PostgreMerge.MatchedMergeActionSpec<T> extends io.army.criteria.Statement.DoNothingClause<io.army.criteria.Statement._EndFlag>

This interface is public interface that developer can directly use,but just delete(), for example:

     
@Test public void simple(final SyncLocalSession session) { final PostgreMerge stmt; stmt = Postgres.singleMerge() .mergeInto(Captcha_.T, AS, "c") .using(RegisterRecord_.T, AS, "r").on(Captcha_.requestNo::equal, RegisterRecord_.requestNo) .whenNotMatched().then(Statement.DoNothingClause::doNothing) .whenMatched().then(PostgreMerge.MatchedMergeActionSpec::delete) .asCommand(); final long rows; rows = session.update(stmt); LOG.debug("{} row : {}", session.name(), rows); }
  • Method Summary

    Modifier and Type
    Method
    Description
    io.army.criteria.Statement._EndFlag
     
     

    Methods inherited from interface io.army.criteria.Statement.DoNothingClause

    doNothing