|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DBNode
This is an object-oriented representation of a node in the DB.
| Method Summary | |
|---|---|
void |
delete()
Deletes the current node |
void |
deleteAllBefore()
Deletes all parent nodes. |
DBNode |
firstChild()
Retrieves the first child node of the current one |
java.lang.String |
getName()
Retrieves the name of the node |
byte |
getType()
Retrieves the type of the node |
java.lang.Object |
getValue()
Retrieves the value of the node |
int |
getValue(byte[] bytes,
int offset,
int length)
Reads length bytes from the value, associated with the
current node and writes them at off position in the
byteArray. |
void |
getValue(com.prosyst.util.io.Externalizable e)
Reads the value of the node into an Externalizable object. |
boolean |
isValid()
Checks if the node is valid. |
DBNode |
next()
Retrieves the next node in the tree at the same level as the current one. |
DBNode |
parent()
Retrieves the parent node. |
| Method Detail |
|---|
java.lang.String getName()
throws java.io.IOException
java.io.IOException
DBNode next()
throws java.io.IOException
java.io.IOException
DBNode firstChild()
throws java.io.IOException
java.io.IOException
DBNode parent()
throws java.io.IOException
java.io.IOException
java.lang.Object getValue()
throws java.io.IOException
null if there
is no such node, or the node's type DB.EMPTY.
java.io.IOException - on I/O error
java.lang.IllegalArgumentException - if the node is of type DB.EXTERNDB.getValue(String[])
void getValue(com.prosyst.util.io.Externalizable e)
throws java.io.IOException
Externalizable object.
e - an empty Externalizable instance, whose data will be
filled in by the DB, if it has properly implemented its
Externalizable.readObject(java.io.InputStream) method.
java.io.IOException
java.lang.IllegalArgumentException - if the node is of type DB.EMPTYDB.getValue(String[], Externalizable)
int getValue(byte[] bytes,
int offset,
int length)
throws java.io.IOException
length bytes from the value, associated with the
current node and writes them at off position in the
byteArray.
bytes - where data is read tooffset - start position to write in byteArray length - count of bytes to read
DB.EMPTY
or there is no such node
java.io.IOException - If an IO error occurs.
java.lang.IndexOutOfBoundsException - If length is not valid
for the supplied
byteArray and length- See Also:
DB.getValue(String[], byte[], int, int)
byte getType()
throws java.io.IOException
java.io.IOException - on I/O errorDB.getType(String[])
void delete()
throws java.io.IOException
java.io.IOException - on I/O errorDB.delete(String[])
void deleteAllBefore()
throws java.io.IOException
java.io.IOException - on I/O error
boolean isValid()
throws java.io.IOException
true if the node is valid
java.io.IOException
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||