|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWireServer
Nested Class Summary | |
---|---|
static class |
IWireServer.AccessorInfo
|
static class |
IWireServer.ApplyResult
|
Method Summary | |
---|---|
int |
add(int accId,
int index,
MutableVariant object)
|
int |
addAll(int accId,
int index,
MutableVariant array)
add objects to array |
int |
addListener(int accId,
InterestSet interestSet,
AccessorReference pathPrefix)
Create listener |
IWireServer.ApplyResult |
apply(int accId,
Event[] changeSet,
boolean rollback)
Apply a list of changes to the node. |
int |
clear(int accId)
Remove all array or map elements |
int |
closeAccessors(java.lang.Integer[] accIds)
Close a group of accessor handles. |
boolean |
containsKey(int accId,
MutableVariant key)
|
boolean |
containsValue(int accId,
MutableVariant value)
|
MutableVariant |
getArrayElement(int accId,
int index)
Get array element value |
MutableVariant |
getCeilingKey(int accId,
MutableVariant key)
|
MutableVariant |
getFirstKey(int accId)
|
MutableVariant |
getFloorKey(int accId,
MutableVariant key)
|
MutableVariant |
getHigherKey(int accId,
MutableVariant key)
|
MutableVariant |
getLastKey(int accId)
|
MutableVariant |
getLowerKey(int accId,
MutableVariant key)
|
MutableVariant |
getMapKeys(int accId)
Get map keys as array |
MutableVariant |
getMapValue(int accId,
MutableVariant key)
Get map entry value |
MutableVariant |
getMapValues(int accId)
Get map values as array |
int |
getTag(int accId)
Get tag index of a Union node |
MutableVariant |
getValue(int accId)
Read the value as whole. |
boolean |
hasValue(int accId)
Get value status of an Optional node |
IWireServer.AccessorInfo |
openAccessor(AccessorReference ref)
Open a handle to an accessor. |
int |
removeListener(int lisId)
Remove listener |
int |
size(int accId)
Get size of an array, map, record or union |
Method Detail |
---|
IWireServer.AccessorInfo openAccessor(AccessorReference ref) throws WireException
ref
- accessor refence or null for root
- Returns:
- accessor info
- Throws:
WireException
int closeAccessors(java.lang.Integer[] accIds) throws WireException
accIds
- accessor ids
WireException
MutableVariant getValue(int accId) throws WireException
accId
-
WireException
IWireServer.ApplyResult apply(int accId, Event[] changeSet, boolean rollback)
In case of error rollback log is filled with events that counter modification that were already applied before the error occured.
accId
- changeSet
- rollback
-
int addListener(int accId, InterestSet interestSet, AccessorReference pathPrefix) throws WireException
accId
- interestSet
- pathPrefix
-
WireException
int removeListener(int lisId) throws WireException
lisId
-
WireException
int size(int accId) throws WireException
accId
-
WireException
int clear(int accId) throws WireException
accId
-
WireException
boolean containsKey(int accId, MutableVariant key) throws WireException
WireException
boolean containsValue(int accId, MutableVariant value) throws WireException
WireException
MutableVariant getFirstKey(int accId) throws WireException
WireException
MutableVariant getLastKey(int accId) throws WireException
WireException
MutableVariant getLowerKey(int accId, MutableVariant key) throws WireException
WireException
MutableVariant getFloorKey(int accId, MutableVariant key) throws WireException
WireException
MutableVariant getCeilingKey(int accId, MutableVariant key) throws WireException
WireException
MutableVariant getHigherKey(int accId, MutableVariant key) throws WireException
WireException
MutableVariant getMapValue(int accId, MutableVariant key) throws WireException
accId
- key
-
WireException
MutableVariant getMapValues(int accId) throws WireException
accId
-
WireException
MutableVariant getMapKeys(int accId) throws WireException
accId
-
WireException
boolean hasValue(int accId) throws WireException
accId
-
true
if there is value in the node
WireException
int getTag(int accId) throws WireException
accId
-
WireException
int addAll(int accId, int index, MutableVariant array) throws WireException
accId
- index
- insert pos, -1 = at the endarray
-
WireException
int add(int accId, int index, MutableVariant object) throws WireException
accId
- index
- insert pos, -1 = at the endobject
-
WireException
MutableVariant getArrayElement(int accId, int index) throws WireException
accId
- index
-
WireException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |