org.exolab.jms.tranlog
Class DataTransactionLogEntry
java.lang.Object
|
+--org.exolab.jms.tranlog.BaseTransactionLogEntry
|
+--org.exolab.jms.tranlog.DataTransactionLogEntry
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public class DataTransactionLogEntry
- extends BaseTransactionLogEntry
- implements java.io.Externalizable
This entry associates resource specific data to an XID. The data is
any serializable object
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
getData()
Return the object for this transaction entry |
void |
readExternal(java.io.ObjectInput stream)
|
void |
setData(java.lang.Object data)
Set the data for the transaction. |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTransactionLogEntry
public DataTransactionLogEntry()
- Default constuctor for serialization
setData
public void setData(java.lang.Object data)
throws java.lang.IllegalArgumentException,
java.io.IOException
- Set the data for the transaction. If the specified object is
not Serializable then throw an IllegalArgumentException
- Parameters:
object
- - object data to set- Throws:
java.io.IOException
- - if it cannot serialize the datajava.lang.IllegalArgumentException
- - if it is not serializable
getData
public java.lang.Object getData()
- Return the object for this transaction entry
- Returns:
- Object
writeExternal
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class BaseTransactionLogEntry
readExternal
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class BaseTransactionLogEntry
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.