|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.ops.TransactionLog
Field Summary | |
static int |
FUNCTION_ADD
int value indicates ADD function |
static int |
FUNCTION_REMOVE
int value indicates REMOVE function |
static int |
FUNCTION_UPDATE
int value indicates UPDATE function |
(package private) static long |
serialVersionUID
|
static int |
version
|
Constructor Summary | |
TransactionLog()
default constructor |
|
TransactionLog(java.lang.String path,
int function,
java.lang.Object value)
Constructor |
Method Summary | |
static EnterpriseObject |
applyDelta(EnterpriseObject eo,
java.lang.Object delta)
apply delta to enterprise object |
boolean |
equals(java.lang.Object log)
Checks if another TransactionLog instance equals this instance. |
boolean |
equals(java.lang.String path1,
java.lang.String path2)
Checks if the last elements of two paths are identical. |
static TransactionLog[] |
fromBlob(java.lang.String blob)
Retreves an array of TransactionLog(s) from a blob. |
int |
getFunction()
Getter for mFunction attribute |
static java.util.ArrayList |
getLogs(java.lang.String context,
ObjectNode node)
Consolidates changes logs carried inside ObjectNode by its context. |
java.lang.String |
getPath()
Getter for mPath attribute. |
java.lang.Object |
getValue()
Getter for Value attribute |
int |
hashCode()
Hash code. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setFunction(int function)
Setter for mFunction attribute. |
void |
setPath(java.lang.String path)
Setter for Path attribute. |
void |
setValue(java.lang.Object value)
Setter for mValue attribute. |
static java.lang.String |
toBlob(TransactionLog[] logs)
Serializes an array of TransactionLog(s) to a String. |
java.lang.String |
toString()
prints Transactionlog to String for output |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FUNCTION_ADD
public static final int FUNCTION_REMOVE
public static final int FUNCTION_UPDATE
static final long serialVersionUID
public static final int version
Constructor Detail |
public TransactionLog()
public TransactionLog(java.lang.String path, int function, java.lang.Object value)
path
- String for object path.function
- Type of change.value
- Existing value needs to be logged.Method Detail |
public static EnterpriseObject applyDelta(EnterpriseObject eo, java.lang.Object delta) throws ObjectException, EPathException
eo
- enterprise objectdelta
- delta object
ObjectException
EPathException
public boolean equals(java.lang.Object log)
log
- TransactionLog object to check.
public boolean equals(java.lang.String path1, java.lang.String path2)
path1
- First path to check.path2
- Second path to check.public static TransactionLog[] fromBlob(java.lang.String blob) throws OPSException
blob
- Blob containing TransactionLog objects.
OPSException
- if an error occurred.public int getFunction()
public static java.util.ArrayList getLogs(java.lang.String context, ObjectNode node)
context
- The context.node
- ObjectNode from which to retrieve the logs.
public java.lang.String getPath()
public java.lang.Object getValue()
public int hashCode()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void setFunction(int function)
function
- Value to set for the mFunction attribute.public void setPath(java.lang.String path)
path
- Value to set for the mPath attribute.public void setValue(java.lang.Object value)
value
- Value to set for the mValue attribute.public static java.lang.String toBlob(TransactionLog[] logs) throws OPSException
logs
- Array of TransactionLog objects.
OPSException
- if an error occurred.public java.lang.String toString()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.