public class NullRepository extends TransactionIdRepository
This implementation simply returns null objects and does nothing when requested to store a transaction id.
In the adapter configuration file this class is aliased as sap-noop-tid-repository which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
NullRepository() |
Modifier and Type | Method and Description |
---|---|
TransactionId |
retrieveByMessageId(java.lang.String id)
Retrieve a tid from the store.
|
TransactionId |
retrieveByTid(java.lang.String tid)
Retrieve a tid from the store.
|
void |
saveOrUpdate(TransactionId tid)
Store this transaction id.
|
java.lang.String |
toString() |
public TransactionId retrieveByTid(java.lang.String tid) throws java.lang.Exception
TransactionIdRepository
retrieveByTid
in class TransactionIdRepository
tid
- the transcation id.java.lang.Exception
- on error.TransactionIdRepository.retrieveByTid(java.lang.String)
public TransactionId retrieveByMessageId(java.lang.String id) throws java.lang.Exception
TransactionIdRepository
retrieveByMessageId
in class TransactionIdRepository
id
- the AdaptrisMessage id.java.lang.Exception
- on error.TransactionIdRepository.retrieveByMessageId(java.lang.String)
public void saveOrUpdate(TransactionId tid) throws java.lang.Exception
TransactionIdRepository
saveOrUpdate
in class TransactionIdRepository
tid
- the transaction id.java.lang.Exception
- if there was any error, such as the TID already existing.TransactionIdRepository.saveOrUpdate(TransactionId)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Copyright Adaptris