SFRMMessageDSDVO

public class SFRMMessageDSDVO extends DataSourceDVO implements SFRMMessageDVO

The SFRMMessageDSDVO is a data value object that represent a tabular row in sfrm_message at the persistence layer. It possesses caching automatically for most frequently fields shown below:

  1. message id
  2. message box
  3. partnership id
  4. partnership endpoint
  5. requires signing / encryption
  6. status

So developers do not need to worry the issue of thread contention and can freely call the get and set with no performance impact. Creation Date: 29/9/2006 Version 1.0.3 -

  • Added cache for hot access field, it requires extra 22 bytes per SFRMMessageDSDVO object.

Version 1.0.2 -

  • Added conversation id

Version 2.0.0 -

  • Added sign algorithm
  • Removed is signed
  • Added encrypt algorithm
  • Removed is encrypted
Author:Twinsen Tsang

Methods

getCompletedTimestamp

public Timestamp getCompletedTimestamp()

[@GET, THREAD-SAFETY]

Returns:the timstamp that the message has been processed completely.

getCreatedTimestamp

public Timestamp getCreatedTimestamp()

[@GET, THREAD-SAFETY]

Returns:the creation timestamp of this message.

getEncryptAlgorithm

public String getEncryptAlgorithm()
Returns:the encrypt algorithm of this message, return null if message not need to encrypt

getFilename

public String getFilename()

[@GET, THREAD-SAFETY]

Returns:filename field that represent the filename of the original file, if the message payload is not packed in tar format

getIsHostnameVerified

public boolean getIsHostnameVerified()

getMessageBox

public String getMessageBox()

[@GET, THREAD-SAFETY, CACHABLE]

Returns:the message box from the message DVO.

getMessageId

public String getMessageId()

[@GET, THREAD-SAFETY, CACHABLE] Get the message id from the message DVO.

getPartnerCertContent

public String getPartnerCertContent()

getPartnerEndpoint

public String getPartnerEndpoint()

[@GET, THREAD-SAFETY, CACHABLE]

Returns:the partnership endpoint from the message DVO.

getPartnerX509Certificate

public X509Certificate getPartnerX509Certificate()

getPartnershipId

public String getPartnershipId()

[@GET, THREAD-SAFETY, CACHABLE]

Returns:the partnership id from the message DVO.

getProceedTimestamp

public Timestamp getProceedTimestamp()

[@GET, THREAD-SAFETY]

Returns:the timestamp that message is proceeding.

getSignAlgorithm

public String getSignAlgorithm()
Returns:the sign algorithm of this message, return null if message not need to sign

getStatus

public String getStatus()

[@GET, THREAD-SAFETY, CACHABLE]

Returns:get the status of the message DVO.

getStatusDescription

public String getStatusDescription()

[@GET, THREAD-SAFETY]

Returns:the brief description about the message status.

getTotalSegment

public int getTotalSegment()

[@GET, THREAD-SAFETY]

Returns:the total segment of this message DVO.

getTotalSize

public long getTotalSize()

[@GET, THREAD-SAFETY]

Returns:the total size of this message DVO.

setCompletedTimestamp

public void setCompletedTimestamp(Timestamp completedTimestamp)

[@SET, THREAD-SAFETY]

Parameters:
  • the – timestamp that the message has been processed completely.

setCreatedTimestamp

public void setCreatedTimestamp(Timestamp createdTimestamp)

[@SET, THREAD-SAFETY]

Parameters:
  • createdTimestamp – set the creation timestamp of this message.

setData

public void setData(Hashtable hs)

[@OVERRIDE] set the DVO interval dataset and update some boolean cached values.

setEncryptAlgorithm

public void setEncryptAlgorithm(String eAlgorithm)

Set the encrypt algorithm of this message

Parameters:
  • eAlgorithm – encrypt algorithm, null if message didn’t require encryption

setFilename

public void setFilename(String filename)

[@SET, THREAD-SAFETY]

Parameters:
  • filename – filename field that represent the filename of the original file, if the message payload is not packed in tar format

setIsHostnameVerified

public void setIsHostnameVerified(boolean isHostnameVerified)

setMessageBox

public void setMessageBox(String messageBox)

[@SET, THREAD-SAFETY, CACHABLE] Set the message box to the message DVO.

Parameters:
  • message – box either INBOX OR OUTBOX

setMessageId

public void setMessageId(String messageId)

[@SET, THREAD-SAFETY, CACHABLE] Set the message id from the message DVO.

Parameters:
  • messageId – the new message id.

setPartnerCertContent

public void setPartnerCertContent(String partnerCertContent)

setPartnerEndpoint

public void setPartnerEndpoint(String partnerEndpoint)

[@SET, THREAD-SAFETY, CACHABLE] Set the partnership endpoint to the message DVO.

Parameters:
  • partnershipId – the partnership endpoint of this message DVO.

setPartnershipId

public void setPartnershipId(String partnershipId)

[@SET, THREAD-SAFETY, CACHABLE] Set the partnership id to the message DVO.

Parameters:
  • partnershipId – the partnership id of this message DVO.

setProceedTimestamp

public void setProceedTimestamp(Timestamp proceedTimestamp)

[@SET, THREAD-SAFETY]

Parameters:
  • proceedTimestamp – set the timestamp that message is proceeding.

setSignAlgorithm

public void setSignAlgorithm(String sAlgorithm)

Set the signing algorithm of this message

Parameters:
  • sAlgorithm – sign algorithm, null if message didn’t require signing

setStatus

public void setStatus(String status)

[@SET, THREAD-SAFETY, CACHABLE]

Parameters:
  • status – The new status of message DVO.

setStatusDescription

public void setStatusDescription(String statusDescription)

[@SET, THREAD-SAFETY] Set the brief description about the message status.

Parameters:
  • statusDescription – the brief description about the message status.

setTotalSegment

public void setTotalSegment(int totalSegment)

[@SET, THREAD-SAFETY] Set the total segment of this message DVO.

Parameters:
  • totalSegment – the total segment of this message DVO.

setTotalSize

public void setTotalSize(long totalSize)

[@SET, THREAD-SAFETY] Set the total size of this message DVO.

Parameters:
  • totalSegment – the total size of this message DVO.