org.apache.jackrabbit.mk.model
Class AbstractCommit

java.lang.Object
  extended by org.apache.jackrabbit.mk.model.AbstractCommit
All Implemented Interfaces:
Commit
Direct Known Subclasses:
MutableCommit, StoredCommit

public abstract class AbstractCommit
extends Object
implements Commit


Field Summary
protected  Id branchRootId
           
protected  String changes
           
protected  long commitTS
           
protected  String msg
           
protected  Id parentId
           
protected  Id rootNodeId
           
 
Constructor Summary
protected AbstractCommit()
           
protected AbstractCommit(Commit other)
           
 
Method Summary
 Id getBranchRootId()
          Returns null if this commit does not represent a branch.
 String getChanges()
           
 long getCommitTS()
           
 String getMsg()
           
 Id getParentId()
           
 Id getRootNodeId()
           
 void serialize(Binding binding)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rootNodeId

protected Id rootNodeId

commitTS

protected long commitTS

msg

protected String msg

changes

protected String changes

parentId

protected Id parentId

branchRootId

protected Id branchRootId
Constructor Detail

AbstractCommit

protected AbstractCommit()

AbstractCommit

protected AbstractCommit(Commit other)
Method Detail

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


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.