SFRMPartnershipDSDVO

public class SFRMPartnershipDSDVO extends DataSourceDVO implements SFRMPartnershipDVO

The SFRMPartnershipDSDVO is a data value object representing a tabular row in the sfrm_partnership in the persistence layer. Creation Date: 27/9/2006 It possesses caching automatically for most frequently fields shown below:

  1. partnership Id
  2. partnership endpoint
  3. maximum retry allowed
  4. retry interval
  5. X509 verfication / encryption cerfiticates

So developers do not need to worry the issue of thread contention and can freely call the get and set with no performance impact. Version 1.0.1 -

  1. Added cache for hot access field, it requires extra 17 bytes + 1 soft reference per SFRMPartnershipDSDVO object.
Author:Twinsen Tsang

Constructors

SFRMPartnershipDSDVO

public SFRMPartnershipDSDVO()

Constructor.

Methods

getCreationTimestamp

public Timestamp getCreationTimestamp()

[@GET, THREAD-SAFETY]

Parameters:
  • get – the creation timestamp of this partnership record.

getDescription

public String getDescription()

[@GET, THREAD-SAFETY] Get the description of the partnership DVO.

getEncryptAlgorithm

public String getEncryptAlgorithm()

getEncryptX509Certificate

public X509Certificate getEncryptX509Certificate()

Get X509 certificate from trusted certificate store specified in SFRM properties

Throws:
Returns:

X509 certificate

getEncryptX509CertificateBase64

public String getEncryptX509CertificateBase64()

getModifiedTimestamp

public Timestamp getModifiedTimestamp()

[@GET, THREAD-SAFETY]

Returns:Get the last modified timestamp

getOrgPartnerEndpoint

public String getOrgPartnerEndpoint()

Get the sending endpoint of the partnership without appended the context path

getPartnerCertFingerprint

public String getPartnerCertFingerprint()

[@GET, THREAD-SAFETY] Get the partnership endpoint of this partnership DVO.

getPartnerEndpoint

public String getPartnerEndpoint()

[@GET, THREAD-SAFETY] Get the sending endpoint of the partnership. The endpoint in the database stores only the address of receiver. For example, like http://127.0.0.1:8080/ or http://sfrm.partnership.com:8080/ But the endpoint returned here will concat a designated conext path = “corvus/httpd/sfrm/inbound”.

getPartnershipId

public String getPartnershipId()

[@GET, THREAD-SAFETY, CACHABLE] Get the partnership from this partnership DVO.

getPartnershipSeq

public int getPartnershipSeq()

[@GET, THREAD-SAFETY] Get the partnership sequence no from this partnership DVO.

getRetryInterval

public int getRetryInterval()

[@GET, NON-THREAD-SAFETY] Get the retry interval of this partnership DVO.

getRetryMax

public int getRetryMax()

[@GET, THREAD-SAFETY] Get the maximum retry allowed for this partnership DVO.

getSignAlgorithm

public String getSignAlgorithm()

getVerifyX509Certificate

public X509Certificate getVerifyX509Certificate()

Get X509 certificate from trusted certificate store specified in SFRM properties

Throws:
Returns:

X509 certificate

isDisabled

public boolean isDisabled()

isHostnameVerified

public boolean isHostnameVerified()

[@GET, THREAD-SAFETY] whether the partnership requires SSL hostname verified.

setCreationTimestamp

public void setCreationTimestamp(Timestamp creationTimestamp)

[@SET, THREAD-SAFETY] Set the creation timestamp.

Parameters:
  • creationTimestamp – the new value of the creation time stamp for this partnership DVO.

setDescription

public void setDescription(String description)

[@SET, THREAD-SAFETY] Set the new description to this partnership DVO.

Parameters:
  • description – The new description.

setEncryptAlgorithm

public void setEncryptAlgorithm(String encryptAlgorithm)

setIsDisabled

public void setIsDisabled(boolean isDisabled)

setIsHostnameVerified

public void setIsHostnameVerified(boolean isHostnameVerified)

[@SET, THREAD-SAFETY] set whether the partnership requires SSL hostname verified.

setModifiedTimestamp

public void setModifiedTimestamp(Timestamp modifiedTimestamp)

[@GET, THREAD-SAFETY] Set the last modified timestamp

Parameters:
  • modifiedTimestamp – the last modified timestamp.

setPartnerCertFingerprint

public void setPartnerCertFingerprint(String partnerCertFingerprint)

[@SET, THREAD-SAFETY] Set the partnership endpoint of this partnership DVO.

setPartnerEndPoint

public void setPartnerEndPoint(String endpoint)

[@GET, THREAD-SAFETY] Set the partnership endpoint of the partnership DVO.

Parameters:
  • endpoint – The new partnership endpoint.

setPartnershipId

public void setPartnershipId(String partnershipId)

[@SET, THREAD-SAFETY] Set the new partnership id to this partnership DVO.

Parameters:
  • partnershipId – The new partnership Id.

setPartnershipSeq

public void setPartnershipSeq(int partnershipSeq)

[@SET, THREAD-SAFETY] Set the partnership sequence

setRetryInterval

public void setRetryInterval(int retryInterval)

[@SET, THREAD-SAFETY] Set the retry interval of this partnership DVO.

setRetryMax

public void setRetryMax(int retryMax)

[@SET, THREAD-SAFETY] Set the maximum retry allowed for this partnership DVO.

setSignAlgorithm

public void setSignAlgorithm(String signAlgorithm)