com.ejie.r01f.guids
Class MemoryGUIDPersist

java.lang.Object
  extended bycom.ejie.r01f.guids.MemoryGUIDPersist
All Implemented Interfaces:
GUIDPersist

public class MemoryGUIDPersist
extends java.lang.Object
implements GUIDPersist

Persistencia en memoria de GUIDs Implementa el interfaz GUIDPersist almacenando en memoria el valor de la parte high de la clave y la definicion del GUID


Constructor Summary
MemoryGUIDPersist()
          Creates new UIDPersist
 
Method Summary
 Key getHighKeyValue(GUIDDispenserDef dispDef)
          Carga el valor de High en el objeto UID que se pasa.
 boolean updateGUID(GUIDDispenserDef dispDef, Key highKey)
          Actualiza el valor de un uid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryGUIDPersist

public MemoryGUIDPersist()
Creates new UIDPersist

Method Detail

getHighKeyValue

public Key getHighKeyValue(GUIDDispenserDef dispDef)
Carga el valor de High en el objeto UID que se pasa.

Specified by:
getHighKeyValue in interface GUIDPersist
Returns:
El nuevo valor de high

updateGUID

public boolean updateGUID(GUIDDispenserDef dispDef,
                          Key highKey)
Actualiza el valor de un uid

Specified by:
updateGUID in interface GUIDPersist
Returns:
True si se actualiza bien y false si no es asi