org.compass.gps.device.jdbc.snapshot
Class JdbcAliasRowSnapshot

java.lang.Object
  extended by org.compass.gps.device.jdbc.snapshot.JdbcAliasRowSnapshot
All Implemented Interfaces:
Serializable

public class JdbcAliasRowSnapshot
extends Object
implements Serializable

A row level snapshot holder. Holds a list of id values (as Strings) and a list of version values (as Long).

hashCode and equals uses the ids alone to perform the operations.

A utility method isOlderThan(JdbcAliasRowSnapshot) is provides to compare it with other row snapshots.

Author:
kimchy
See Also:
Serialized Form

Constructor Summary
JdbcAliasRowSnapshot()
           
 
Method Summary
 void addIdValue(String idValue)
           
 void addVersionValue(Long versionValue)
           
 boolean equals(Object other)
           
 List<String> getIds()
           
 int hashCode()
           
 boolean isOlderThan(JdbcAliasRowSnapshot rowSnapshot)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JdbcAliasRowSnapshot

public JdbcAliasRowSnapshot()
Method Detail

addIdValue

public void addIdValue(String idValue)

getIds

public List<String> getIds()

addVersionValue

public void addVersionValue(Long versionValue)

isOlderThan

public boolean isOlderThan(JdbcAliasRowSnapshot rowSnapshot)

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2004-2009 The Compass Project.