org.nakedobjects.metamodel.adapter.version
Class NullVersion

java.lang.Object
  extended by org.nakedobjects.metamodel.adapter.version.NullVersion
All Implemented Interfaces:
Version

public class NullVersion
extends java.lang.Object
implements Version


Constructor Summary
NullVersion()
           
 
Method Summary
 boolean different(Version version)
          Compares this version against the specified version and returns true if they are different versions.
 java.util.Date getTime()
          Returns the time of the last change.
 java.lang.String getUser()
          Returns the user who made the last change.
 Version next(java.lang.String user, java.util.Date time)
           
 java.lang.String sequence()
          Returns the sequence for printing/display
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullVersion

public NullVersion()
Method Detail

different

public boolean different(Version version)
Description copied from interface: Version
Compares this version against the specified version and returns true if they are different versions.

This is use for optimistic checking, where the existence of a different version will normally cause a concurrency exception.

Specified by:
different in interface Version

next

public Version next(java.lang.String user,
                    java.util.Date time)

getUser

public java.lang.String getUser()
Description copied from interface: Version
Returns the user who made the last change.

Specified by:
getUser in interface Version

getTime

public java.util.Date getTime()
Description copied from interface: Version
Returns the time of the last change.

Specified by:
getTime in interface Version

sequence

public java.lang.String sequence()
Description copied from interface: Version
Returns the sequence for printing/display

Specified by:
sequence in interface Version


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.