org.apache.jackrabbit.mk.model
Class AbstractCommit
java.lang.Object
org.apache.jackrabbit.mk.model.AbstractCommit
- All Implemented Interfaces:
- Commit, CacheObject
- Direct Known Subclasses:
- MutableCommit, StoredCommit
public abstract class AbstractCommit
- extends Object
- implements Commit, CacheObject
rootNodeId
protected Id rootNodeId
commitTS
protected long commitTS
msg
protected String msg
changes
protected String changes
parentId
protected Id parentId
branchRootId
protected Id branchRootId
AbstractCommit
protected AbstractCommit()
AbstractCommit
protected AbstractCommit(Commit other)
getParentId
public Id getParentId()
- Specified by:
getParentId in interface Commit
getRootNodeId
public Id getRootNodeId()
- Specified by:
getRootNodeId in interface Commit
getCommitTS
public long getCommitTS()
- Specified by:
getCommitTS in interface Commit
getMsg
public String getMsg()
- Specified by:
getMsg in interface Commit
getChanges
public String getChanges()
- Specified by:
getChanges in interface Commit
getBranchRootId
public Id getBranchRootId()
- Description copied from interface:
Commit
- Returns
null if this commit does not represent a branch.
Otherwise, returns the id of the branch root commit
(i.e. the public commit that this private branch is based upon).
- Specified by:
getBranchRootId in interface Commit
- Returns:
- the id of the branch root commit or
null if this commit
does not represent a branch.
serialize
public void serialize(Binding binding)
throws Exception
- Specified by:
serialize in interface Commit
- Throws:
Exception
toString
public String toString()
- Overrides:
toString in class Object
getMemory
public int getMemory()
- Description copied from interface:
CacheObject
- The estimated amount of memory used, in bytes.
- Specified by:
getMemory in interface CacheObject
- Returns:
- the memory used
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.