public class TransactionId
extends java.lang.Object
implements java.io.Serializable
In the adapter configuration file this class is aliased as transaction-id which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
static int |
STATE_CONFIRMED
A TID confirmed by SAP.
|
static int |
STATE_CREATED
A TID that was provided by SAP to the adapter but not yet confirmed.
|
static int |
STATE_NEW
A TID that is newly created but not yet requested from SAP.
|
Constructor and Description |
---|
TransactionId()
Creates a new instance.
|
TransactionId(java.lang.String t,
java.lang.String m)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Semantic equality is based on semantic equality of
this.getTransactionId and this.getMessageId . |
java.util.Date |
getGeneratedDate()
Get the date this transaction id was created.
|
java.lang.String |
getMessageId()
Get the Adaptris Message id associated with this transaction id.
|
int |
getState()
Get the state of this id.
|
java.lang.String |
getTransactionId()
Get the transaction id as returned by SAP.
|
int |
hashCode()
Hashcode is based on hashcode of
this.getTransactionId and
this.getMessageId . |
void |
setGeneratedDate(java.util.Date d)
Set the date this transaction id was created.
|
void |
setMessageId(java.lang.String id)
Set the Adaptris Message id associated with this transaction id.
|
void |
setState(int i)
Set the state of this id.
|
void |
setTransactionId(java.lang.String tid)
Set the Transaction id.
|
java.lang.String |
toString() |
public static final int STATE_NEW
public static final int STATE_CREATED
public static final int STATE_CONFIRMED
public TransactionId()
Creates a new instance. Defaults to empty transaction and message IDs.
public TransactionId(java.lang.String t, java.lang.String m)
Creates a new instance.
t
- the transaction IDm
- the message IDpublic java.util.Date getGeneratedDate()
public void setGeneratedDate(java.util.Date d)
d
- the date.public java.lang.String getMessageId()
public void setMessageId(java.lang.String id)
id
- the message idpublic int getState()
STATE_CONFIRMED
,
STATE_CREATED
public void setState(int i)
i
- the stateSTATE_CONFIRMED
,
STATE_CREATED
public java.lang.String getTransactionId()
public void setTransactionId(java.lang.String tid)
tid
- the transaction id.public boolean equals(java.lang.Object o)
Semantic equality is based on semantic equality of
this.getTransactionId
and this.getMessageId
.
equals
in class java.lang.Object
public int hashCode()
Hashcode is based on hashcode of this.getTransactionId
and
this.getMessageId
.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright Adaptris