ch.elca.el4j.services.persistence.generic.dto
Class AbstractDto

java.lang.Object
  extended by ch.elca.el4j.services.persistence.generic.dto.AbstractDto
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractStringKeyDto

Deprecated. Please use AbstractIntOptimisticLockingDto instead.

public abstract class AbstractDto
extends Object
implements Serializable

This abstract dto brings some basic elements for managing optimistic locking. Optimistic locking is implemented by using a PrimaryKeyGenerator. Primary key are strings in this case.

Author:
Martin Zeltner (MZE)
See Also:
AbstractIntOptimisticLockingDto, Serialized Form
File-location:
AbstractDto
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
AbstractDto()
          Deprecated.  
 
Method Summary
 String getCurrentModificationKey()
          Deprecated. This method will be called to get the current modification key, which will be used to save the current modification key as the last modification key on database.
 String getLastModificationKey()
          Deprecated.  
 void setLastModificationKey(String lastModificationKey)
          Deprecated.  
 void setModificationKeyGenerator(PrimaryKeyGenerator modificationKeyGenerator)
          Deprecated.  
 void useNextModificationKey()
          Deprecated. This method will be called by user if this dto was written to database and so the last modification key has been replaced by the current modification key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDto

public AbstractDto()
Deprecated. 
Method Detail

setModificationKeyGenerator

public void setModificationKeyGenerator(PrimaryKeyGenerator modificationKeyGenerator)
Deprecated. 
Parameters:
modificationKeyGenerator - Is the modificationKeyGenerator to set.

getLastModificationKey

public String getLastModificationKey()
Deprecated. 
Returns:
Returns the lastModificationKey.

setLastModificationKey

public void setLastModificationKey(String lastModificationKey)
Deprecated. 
Parameters:
lastModificationKey - The lastModificationKey to set.

getCurrentModificationKey

public String getCurrentModificationKey()
Deprecated. 
This method will be called to get the current modification key, which will be used to save the current modification key as the last modification key on database.

Returns:
Generates and returns for each instance a new modification key.

useNextModificationKey

public void useNextModificationKey()
Deprecated. 
This method will be called by user if this dto was written to database and so the last modification key has been replaced by the current modification key. This method sets the last modification key to the current modification key and generates a new current modififation key.



Copyright © 2005-2011 ELCA. All Rights Reserved.