org.modeshape.connector.store.jpa.model.common
Class ChangeLogEntity

java.lang.Object
  extended by org.modeshape.connector.store.jpa.model.common.ChangeLogEntity

@Entity
public class ChangeLogEntity
extends Object

Represents a record of the changes that have been made to the repository. The actual change events are serialized and stored in a binary (and compressed) format.


Constructor Summary
ChangeLogEntity(String username, DateTime timestamp, int numChanges, byte[] changes)
           
 
Method Summary
 boolean equals(Object obj)
          
 byte[] getChanges()
           
 Long getId()
           
 int getNumChanges()
           
 long getTimestampInUtc()
           
 String getUsername()
           
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeLogEntity

public ChangeLogEntity(String username,
                       DateTime timestamp,
                       int numChanges,
                       byte[] changes)
Method Detail

getId

public Long getId()
Returns:
id

getUsername

public String getUsername()
Returns:
username

getTimestampInUtc

public long getTimestampInUtc()
Returns:
timestampInUtc

getChanges

public byte[] getChanges()
Returns:
changes

getNumChanges

public int getNumChanges()
Returns:
numChanges

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.