Class DefaultJournalService

  • All Implemented Interfaces:
    pro.fessional.wings.faceless.service.journal.JournalService

    
    public class DefaultJournalService
     implements JournalService
                        
    Since:

    2019-09-11

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String SEQ_JOURNAL
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <R> R submit(@NotNull() String eventName, @Nullable() String loginInfo, @Nullable() String targetKey, @Nullable() String otherInfo, @NotNull() Function<JournalService.Journal, R> commitSet) Submit the operation (event) with journal and return some result
      • Methods inherited from class pro.fessional.wings.faceless.service.journal.JournalService

        commit, commit, commit, commit, commit, commit, commit, commit, commit, submit, submit, submit, submit, submit, submit, submit, submit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • submit

        @NotNull()@Transactional(propagation = Propagation.REQUIRES_NEW) <R> R submit(@NotNull() String eventName, @Nullable() String loginInfo, @Nullable() String targetKey, @Nullable() String otherInfo, @NotNull() Function<JournalService.Journal, R> commitSet)

        Submit the operation (event) with journal and return some result

        Parameters:
        eventName - event name
        loginInfo - login info ,eg.
        targetKey - key/id of target
        otherInfo - other info of operation
        commitSet - operations
        Returns:

        the result