Class CommitFactory
java.lang.Object
org.apache.polaris.persistence.nosql.impl.commits.CommitFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.polaris.persistence.nosql.api.commit.CommitsnewCommits(org.apache.polaris.persistence.nosql.api.Persistence persistence) Create a newCommitsinstance for the givenPersistenceinstance.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 newCommitterinstance.
-
Method Details
-
newCommits
public static org.apache.polaris.persistence.nosql.api.commit.Commits newCommits(org.apache.polaris.persistence.nosql.api.Persistence persistence) Create a newCommitsinstance for the givenPersistenceinstance.Note: In a CDI container
Commitscan 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 newCommitterinstance.- Type Parameters:
REF_OBJ- type of the referenced objectRESULT- the commit result type, for successful commits including non-changing- Parameters:
persistence- persistence usedrefName- name of the referencereferencedObjType- type of the referenced object- Returns:
- new committer
-