com.gentics.api.lib.datasource
Class VersioningDatasource.Version

java.lang.Object
  extended by com.gentics.api.lib.datasource.VersioningDatasource.Version
All Implemented Interfaces:
Comparable
Enclosing interface:
VersioningDatasource

public static class VersioningDatasource.Version
extends Object
implements Comparable

provides meta information about a single version of a dataset.

Author:
laurin

Constructor Summary
VersioningDatasource.Version()
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 Date getDate()
           
 int getDiffCount()
          get number of dataset rows, which differ to the last version.
 int getTimestamp()
          get the timestamp, this version was stored with.
 String getUser()
          get the userid, this version was stored with.
 int hashCode()
           
 boolean isAutoupdate()
           
 void setAutoupdate(boolean autoupdate)
           
 void setDiffCount(int diffCount)
          sets the diffcount.
 void setTimestamp(int timestamp)
          sets the timstamp.
 void setUser(String user)
          set the userid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningDatasource.Version

public VersioningDatasource.Version()
Method Detail

getDiffCount

public int getDiffCount()
get number of dataset rows, which differ to the last version.

Returns:
number of datasetrows.

setDiffCount

public void setDiffCount(int diffCount)
sets the diffcount.

Parameters:
diffCount - number of datasetrows.

getTimestamp

public int getTimestamp()
get the timestamp, this version was stored with.

Returns:
the timstamp.

setTimestamp

public void setTimestamp(int timestamp)
sets the timstamp.

Parameters:
timestamp - the timestamp.

getUser

public String getUser()
get the userid, this version was stored with.

Returns:
the user.

setUser

public void setUser(String user)
set the userid

Parameters:
user - the user.

getDate

public Date getDate()
Returns:
Returns the date.

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isAutoupdate

public boolean isAutoupdate()
Returns:
Returns the autoupdate.

setAutoupdate

public void setAutoupdate(boolean autoupdate)
Parameters:
autoupdate - The autoupdate to set.


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.