|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.dbi.TriggerUtils
public class TriggerUtils
Utility functions used by the trigger implementation.
Constructor Summary | |
---|---|
TriggerUtils()
|
Method Summary | |
---|---|
(package private) static void |
dumpTriggers(StringBuilder sb,
byte[][] triggerBytes,
List<Trigger> triggers)
Dumps an XML representation of the triggers into the StringBuilder. |
(package private) static int |
logSize(byte[][] triggerBytes)
Determines the size in bytes used to represent the trigger in the log, that is, the size of the output generated by writeTriggers(ByteBuffer, byte[][]) |
(package private) static byte[][] |
readTriggers(ByteBuffer logBuffer,
int entryVersion)
Reads the triggers from a log buffer and returns then in their serialized byte array form. |
(package private) static LinkedList<Trigger> |
unmarshallTriggers(String dbName,
byte[][] triggerBytes,
ClassLoader loader)
Deserializes the trigger representation to yield the trigger object instance. |
(package private) static void |
writeTriggers(ByteBuffer logBuffer,
byte[][] triggerBytes)
Writes the triggers out to the log buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriggerUtils()
Method Detail |
---|
static int logSize(byte[][] triggerBytes)
writeTriggers(ByteBuffer, byte[][])
triggerBytes
- the triggers whose size is to be estimated.
static void writeTriggers(ByteBuffer logBuffer, byte[][] triggerBytes)
logBuffer
- the buffer in which the bytes are assembled.triggerBytes
- the trigger bytes to be written.static byte[][] readTriggers(ByteBuffer logBuffer, int entryVersion)
logBuffer
- the buffer from which to read the triggers.entryVersion
- the version associated with the current log
static LinkedList<Trigger> unmarshallTriggers(String dbName, byte[][] triggerBytes, ClassLoader loader)
dbName
- the name to be associated with the de-serialized triggerstriggerBytes
- the serialized representation of the trigger
static void dumpTriggers(StringBuilder sb, byte[][] triggerBytes, List<Trigger> triggers)
sb
- the string buffer that will contain the XML representationtriggerBytes
- the bytes representing the triggertriggers
- the trigger instances corresponding to triggerBytes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |