r01f.guids
Class HighLowMemoryGUIDPersist

java.lang.Object
  extended by r01f.guids.HighLowMemoryGUIDPersist
All Implemented Interfaces:
HighLowGUIDPersist

public class HighLowMemoryGUIDPersist
extends java.lang.Object
implements HighLowGUIDPersist

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


Field Summary
private  GUIDDispenserDef _dispDef
           
private  HighLowKey _highKey
           
 
Constructor Summary
HighLowMemoryGUIDPersist()
           
 
Method Summary
 HighLowKey getHighKeyValue(GUIDDispenserDef dispDef)
          Carga el valor de High en el objeto UID que se pasa.
 boolean updateGUID(GUIDDispenserDef dispDef, HighLowKey highKey)
          Actualiza el valor de un guid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dispDef

private GUIDDispenserDef _dispDef

_highKey

private HighLowKey _highKey
Constructor Detail

HighLowMemoryGUIDPersist

public HighLowMemoryGUIDPersist()
Method Detail

getHighKeyValue

public HighLowKey getHighKeyValue(GUIDDispenserDef dispDef)
Description copied from interface: HighLowGUIDPersist
Carga el valor de High en el objeto UID que se pasa.

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

updateGUID

public boolean updateGUID(GUIDDispenserDef dispDef,
                          HighLowKey highKey)
Description copied from interface: HighLowGUIDPersist
Actualiza el valor de un guid

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