public class TriggerUtils
extends java.lang.Object
| Constructor and Description |
|---|
TriggerUtils() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
dumpTriggers(java.lang.StringBuilder sb,
byte[][] triggerBytes,
java.util.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(java.nio.ByteBuffer logBuffer,
int entryVersion)
Reads the triggers from a log buffer and returns then in their
serialized byte array form.
|
(package private) static java.util.LinkedList<Trigger> |
unmarshallTriggers(java.lang.String dbName,
byte[][] triggerBytes,
java.lang.ClassLoader loader)
Deserializes the trigger representation to yield the trigger object
instance.
|
(package private) static void |
writeTriggers(java.nio.ByteBuffer logBuffer,
byte[][] triggerBytes)
Writes the triggers out to the log buffer.
|
static int logSize(byte[][] triggerBytes)
writeTriggers(ByteBuffer, byte[][])triggerBytes - the triggers whose size is to be estimated.static void writeTriggers(java.nio.ByteBuffer logBuffer,
byte[][] triggerBytes)
logBuffer - the buffer in which the bytes are assembled.triggerBytes - the trigger bytes to be written.static byte[][] readTriggers(java.nio.ByteBuffer logBuffer,
int entryVersion)
logBuffer - the buffer from which to read the triggers.entryVersion - the version associated with the current logstatic java.util.LinkedList<Trigger> unmarshallTriggers(java.lang.String dbName, byte[][] triggerBytes, java.lang.ClassLoader loader)
dbName - the name to be associated with the de-serialized triggerstriggerBytes - the serialized representation of the triggerstatic void dumpTriggers(java.lang.StringBuilder sb,
byte[][] triggerBytes,
java.util.List<Trigger> triggers)
sb - the string buffer that will contain the XML representationtriggerBytes - the bytes representing the triggertriggers - the trigger instances corresponding to triggerBytesCopyright (c) 2004-2012 Oracle. All rights reserved.