java.lang.Object
org.apache.polaris.persistence.nosql.impl.commits.CommitFactory

public final class CommitFactory extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.polaris.persistence.nosql.api.commit.Commits
    newCommits(org.apache.polaris.persistence.nosql.api.Persistence persistence)
    Create a new Commits instance for the given Persistence instance.
    static <REF_OBJ extends org.apache.polaris.persistence.nosql.api.obj.BaseCommitObj, RESULT>
    org.apache.polaris.persistence.nosql.api.commit.Committer<REF_OBJ,RESULT>
    newCommitter(org.apache.polaris.persistence.nosql.api.Persistence persistence, String refName, Class<REF_OBJ> referencedObjType, Class<RESULT> resultType)
    Creates a new Committer instance.

    Methods inherited from class java.lang.Object

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

    • newCommits

      public static org.apache.polaris.persistence.nosql.api.commit.Commits newCommits(org.apache.polaris.persistence.nosql.api.Persistence persistence)
      Create a new Commits instance for the given Persistence instance.

      Note: In a CDI container Commits can be directly injected, a call to this function is not required.

    • newCommitter

      public static <REF_OBJ extends org.apache.polaris.persistence.nosql.api.obj.BaseCommitObj, RESULT> org.apache.polaris.persistence.nosql.api.commit.Committer<REF_OBJ,RESULT> newCommitter(@Nonnull org.apache.polaris.persistence.nosql.api.Persistence persistence, @Nonnull String refName, @Nonnull Class<REF_OBJ> referencedObjType, @Nonnull Class<RESULT> resultType)
      Creates a new Committer instance.
      Type Parameters:
      REF_OBJ - type of the referenced object
      RESULT - the commit result type, for successful commits including non-changing
      Parameters:
      persistence - persistence used
      refName - name of the reference
      referencedObjType - type of the referenced object
      Returns:
      new committer