|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jstore.Swizzler
public class Swizzler
This class manages the id <-> storable maps.
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
void |
decRC(Storable storable)
Decrements the Reference Counter of the storable |
Storable |
getStorable(String id)
|
void |
incRC(Storable storable)
Increments the Reference Counter of the storable |
boolean |
isReferrenced(Storable storable)
|
boolean |
isSwizzled(Storable storable)
|
boolean |
isSwizzled(String id)
|
Iterator<Storable> |
iterator()
Return an iterator on the storable set |
void |
registerStorable(Storable storable,
Map<String,String> attributes)
Swizzler ID <==> Storable |
void |
removeStorable(Storable storable)
|
void |
swizzle(Map<String,String> attributes)
Replace in the Map the storables by their ID storable -> ID |
void |
updateArrayOfReferences(Storable[] array,
Storable[] updatedArray)
|
void |
updateReferences(Storable storable,
Storable updated)
Updates the references of a storable and its update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public void registerStorable(Storable storable, Map<String,String> attributes)
public void removeStorable(Storable storable)
public void updateReferences(Storable storable, Storable updated) throws IOException
storable
- the old referenced storableupdated
- the updated storable
IOException
public void updateArrayOfReferences(Storable[] array, Storable[] updatedArray) throws IOException
IOException
public Storable getStorable(String id)
public boolean isSwizzled(Storable storable)
public boolean isSwizzled(String id)
public Iterator<Storable> iterator()
public void swizzle(Map<String,String> attributes)
public void incRC(Storable storable)
storable
- the target storablepublic void decRC(Storable storable)
storable
- the target storablepublic boolean isReferrenced(Storable storable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |