|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.Swizzler
public class Swizzler
This class manages the id <-> storable maps.
| Field Summary | |
|---|---|
static java.lang.String |
REVISION
|
| Method Summary | |
|---|---|
void |
decRC(Storable storable)
Decrements the Reference Counter of the storable |
Storable |
getStorable(java.lang.String id)
|
void |
incRC(Storable storable)
Increments the Reference Counter of the storable |
boolean |
isReferrenced(Storable storable)
|
boolean |
isSwizzled(Storable storable)
|
boolean |
isSwizzled(java.lang.String id)
|
java.util.Iterator<Storable> |
iterator()
Return an iterator on the storable set |
void |
registerStorable(Storable storable,
java.util.Map<java.lang.String,java.lang.String> attributes)
Swizzler ID <==> Storable |
void |
removeStorable(Storable storable)
|
void |
swizzle(java.util.Map<java.lang.String,java.lang.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 java.lang.String REVISION
| Method Detail |
|---|
public void registerStorable(Storable storable,
java.util.Map<java.lang.String,java.lang.String> attributes)
public void removeStorable(Storable storable)
public void updateReferences(Storable storable,
Storable updated)
throws java.io.IOException
storable - the old referenced storableupdated - the updated storable
java.io.IOException
public void updateArrayOfReferences(Storable[] array,
Storable[] updatedArray)
throws java.io.IOException
java.io.IOExceptionpublic Storable getStorable(java.lang.String id)
public boolean isSwizzled(Storable storable)
public boolean isSwizzled(java.lang.String id)
public java.util.Iterator<Storable> iterator()
public void swizzle(java.util.Map<java.lang.String,java.lang.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 | |||||||||