public class ContractAccessBean extends com.ibm.commerce.persistence.AbstractJpaEntityAccessBean implements Protectable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
ContractAccessBean() |
ContractAccessBean(com.ibm.commerce.contract.objects.Contract entity) |
ContractAccessBean(java.lang.Long argTradingId,
java.lang.Integer origin,
java.lang.String name,
java.lang.Long ownerReferenceNumber) |
ContractAccessBean(java.lang.String name,
java.lang.Integer majorVersion,
java.lang.Integer minorVersion,
java.lang.Long ownerReferenceNumber,
java.sql.Timestamp argStartTime,
java.sql.Timestamp argEndTime) |
Modifier and Type | Method and Description |
---|---|
void |
addToStore(java.lang.Integer storeId) |
java.lang.Long |
createNewVersion() |
ContractAccessBean |
findActiveContractByFamilyId(java.lang.Long argFamilyId) |
ContractAccessBean |
findActiveContractByFamilyIdNoCache(java.lang.Long argFamilyId) |
ContractAccessBean |
findActiveContractByNameOwnerAndOrigin(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin) |
ContractAccessBean |
findActiveContractByNameOwnerAndOriginNoCache(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin) |
java.util.Enumeration |
findAll() |
java.util.Enumeration |
findByNameOwnerAndOrigin(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin) |
java.util.Enumeration |
findByNameOwnerAndOriginNoCache(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin) |
java.util.Enumeration |
findByNameOwnerOriginAndState(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Integer argState) |
java.util.Enumeration |
findByNameOwnerOriginAndStateNoCache(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Integer argState) |
ContractAccessBean |
findByNameOwnerOriginAndVersion(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Integer argMajorVersion,
java.lang.Integer argMinorVersion) |
ContractAccessBean |
findByNameOwnerOriginAndVersionNoCache(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Integer argMajorVersion,
java.lang.Integer argMinorVersion) |
java.util.Enumeration |
findByOwnerId(java.lang.Long argOwnerId) |
java.util.Enumeration |
findByParticipantId(java.lang.Long argParticipantId) |
java.util.Enumeration |
findByState(java.lang.Integer argState) |
java.util.Enumeration |
findClosableContractByNameOwnerAndOrigin(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Long argExclusiveContractId) |
ContractAccessBean |
findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String argName,
java.lang.Long argOwnerId,
java.lang.Integer argOrigin,
java.lang.Integer argMajorVersion) |
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship)
Determines if a given member fulfills a given relationship with the resource.
|
java.lang.Long |
getAccountId() |
java.lang.String |
getComments() |
ParticipantAccessBean[] |
getContractLevelParticipants() |
java.util.Enumeration |
getContractsReferringToContractId() |
TradingDescriptionAccessBean |
getDescription(java.lang.Integer language_id) |
TradingDescriptionAccessBean |
getDescription(java.lang.Integer language_id,
java.lang.Integer storeId) |
com.ibm.commerce.contract.objects.Contract |
getEntity() |
java.lang.String |
getFamilyId() |
java.lang.Long |
getFamilyIdInEntityType() |
java.lang.String |
getMajorVersion() |
java.lang.Integer |
getMajorVersionInEntityType() |
java.lang.String |
getMarkForDelete() |
java.lang.Integer |
getMarkForDeleteInEntityType() |
java.lang.String |
getMinorVersion() |
java.lang.Integer |
getMinorVersionInEntityType() |
java.lang.String |
getName() |
java.lang.String |
getOrigin() |
java.lang.Integer |
getOriginInEntityType() |
java.lang.Long |
getOwner()
Returns the member ID of the owner.
|
java.lang.String |
getOwnerReferenceNumber() |
java.lang.Long |
getOwnerReferenceNumberInEntityType() |
java.lang.String |
getReferenceNumber() |
java.lang.Long |
getReferenceNumberInEntityType() |
java.lang.Long |
getReferredTradingAgreementId() |
java.lang.String |
getState() |
java.lang.Integer |
getStateInEntityType() |
java.lang.String |
getStoreXMLDefinition() |
java.lang.String |
getStoreXMLString() |
TermConditionAccessBean[] |
getTCs() |
TermConditionAccessBean[] |
getTCsByTCSubType(java.lang.String argTCSubType) |
TermConditionAccessBean[] |
getTCsByTCSubTypeWithoutTCParticipant(java.lang.String argTCSubType) |
TermConditionAccessBean[] |
getTCsByTCType(java.lang.String argTCType) |
TermConditionAccessBean[] |
getTCsByTCTypeWithoutTCParticipant(java.lang.String argTCType) |
java.lang.String |
getTimeActivated() |
java.sql.Timestamp |
getTimeActivatedInEntityType() |
java.lang.String |
getTimeApproved() |
java.sql.Timestamp |
getTimeApprovedInEntityType() |
java.lang.String |
getTimeCreated() |
java.sql.Timestamp |
getTimeCreatedInEntityType() |
java.lang.String |
getTimeDeployed() |
java.sql.Timestamp |
getTimeDeployedInEntityType() |
java.lang.String |
getTimeUpdated() |
java.sql.Timestamp |
getTimeUpdatedInEntityType() |
java.lang.String |
getUsage() |
java.lang.Integer |
getUsageInEntityType() |
TermConditionAccessBean[] |
getXMLByTradingIdAndType(java.lang.Long tradingId,
java.lang.Integer type) |
void |
instantiateEntity() |
void |
setAccountId(java.lang.Long newAccountId) |
void |
setComments(java.lang.String comments) |
void |
setFamilyId(java.lang.Long familyId) |
void |
setFamilyId(java.lang.String familyId) |
void |
setInitKey_referenceNumber(java.lang.Long referenceNumber) |
void |
setInitKey_referenceNumber(java.lang.String referenceNumber) |
void |
setMajorVersion(java.lang.Integer majorVersion) |
void |
setMajorVersion(java.lang.String majorVersion) |
void |
setMarkForDelete(java.lang.Integer markForDelete) |
void |
setMarkForDelete(java.lang.String markForDelete) |
void |
setMinorVersion(java.lang.Integer minorVersion) |
void |
setMinorVersion(java.lang.String minorVersion) |
void |
setName(java.lang.String name) |
void |
setOrigin(java.lang.Integer origin) |
void |
setOrigin(java.lang.String origin) |
void |
setOwnerReferenceNumber(java.lang.Long ownerReferenceNumber) |
void |
setOwnerReferenceNumber(java.lang.String ownerReferenceNumber) |
void |
setReferenceNumber(java.lang.Long referenceNumber) |
void |
setReferenceNumber(java.lang.String referenceNumber) |
void |
setReferredTradingAgreementId(java.lang.Long newReferenceId) |
void |
setState(java.lang.Integer state) |
void |
setState(java.lang.String state) |
void |
setStoreXMLDefinition(org.w3c.dom.Element newStoreXML) |
void |
setStoreXMLDefinition(java.lang.String newStoreXML) |
void |
setTimeActivated(java.lang.String timeActivated) |
void |
setTimeActivated(java.sql.Timestamp timeActivated) |
void |
setTimeApproved(java.lang.String timeApproved) |
void |
setTimeApproved(java.sql.Timestamp timeApproved) |
void |
setTimeCreated(java.lang.String timeCreated) |
void |
setTimeCreated(java.sql.Timestamp timeCreated) |
void |
setTimeDeployed(java.lang.String timeDeployed) |
void |
setTimeDeployed(java.sql.Timestamp timeDeployed) |
void |
setTimeUpdated(java.lang.String timeUpdated) |
void |
setTimeUpdated(java.sql.Timestamp timeUpdated) |
void |
setUsage(java.lang.Integer usage) |
void |
setUsage(java.lang.String usage) |
public static final java.lang.String COPYRIGHT
public ContractAccessBean()
public ContractAccessBean(com.ibm.commerce.contract.objects.Contract entity)
public ContractAccessBean(java.lang.String name, java.lang.Integer majorVersion, java.lang.Integer minorVersion, java.lang.Long ownerReferenceNumber, java.sql.Timestamp argStartTime, java.sql.Timestamp argEndTime)
public ContractAccessBean(java.lang.Long argTradingId, java.lang.Integer origin, java.lang.String name, java.lang.Long ownerReferenceNumber)
public void setInitKey_referenceNumber(java.lang.String referenceNumber)
public void setInitKey_referenceNumber(java.lang.Long referenceNumber)
public ContractAccessBean findByNameOwnerOriginAndVersion(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Integer argMajorVersion, java.lang.Integer argMinorVersion)
public ContractAccessBean findByNameOwnerOriginAndVersionNoCache(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Integer argMajorVersion, java.lang.Integer argMinorVersion)
public java.util.Enumeration findByNameOwnerAndOrigin(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin)
public java.util.Enumeration findByNameOwnerAndOriginNoCache(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin)
public java.util.Enumeration findByOwnerId(java.lang.Long argOwnerId)
public java.util.Enumeration findAll()
public java.util.Enumeration findByParticipantId(java.lang.Long argParticipantId)
public java.util.Enumeration findClosableContractByNameOwnerAndOrigin(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Long argExclusiveContractId)
public java.util.Enumeration findByState(java.lang.Integer argState)
public java.util.Enumeration findByNameOwnerOriginAndState(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Integer argState)
public java.util.Enumeration findByNameOwnerOriginAndStateNoCache(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Integer argState)
public ContractAccessBean findContractWithLargestMinorByNameOwnerOriginAndMajorVersion(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin, java.lang.Integer argMajorVersion)
public ContractAccessBean findActiveContractByNameOwnerAndOrigin(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin)
public ContractAccessBean findActiveContractByNameOwnerAndOriginNoCache(java.lang.String argName, java.lang.Long argOwnerId, java.lang.Integer argOrigin)
public ContractAccessBean findActiveContractByFamilyId(java.lang.Long argFamilyId)
public ContractAccessBean findActiveContractByFamilyIdNoCache(java.lang.Long argFamilyId)
public void setComments(java.lang.String comments)
public java.lang.String getComments()
public void setUsage(java.lang.Integer usage)
public java.lang.Integer getUsageInEntityType()
public void setUsage(java.lang.String usage)
public java.lang.String getUsage()
public void setOrigin(java.lang.Integer origin)
public java.lang.Integer getOriginInEntityType()
public void setOrigin(java.lang.String origin)
public java.lang.String getOrigin()
public void setTimeDeployed(java.sql.Timestamp timeDeployed)
public java.sql.Timestamp getTimeDeployedInEntityType()
public void setTimeDeployed(java.lang.String timeDeployed)
public java.lang.String getTimeDeployed()
public void setMarkForDelete(java.lang.Integer markForDelete)
public java.lang.Integer getMarkForDeleteInEntityType()
public void setMarkForDelete(java.lang.String markForDelete)
public java.lang.String getMarkForDelete()
public void setMajorVersion(java.lang.Integer majorVersion)
public java.lang.Integer getMajorVersionInEntityType()
public void setMajorVersion(java.lang.String majorVersion)
public java.lang.String getMajorVersion()
public void setFamilyId(java.lang.Long familyId)
public java.lang.Long getFamilyIdInEntityType()
public void setFamilyId(java.lang.String familyId)
public java.lang.String getFamilyId()
public void setTimeActivated(java.sql.Timestamp timeActivated)
public java.sql.Timestamp getTimeActivatedInEntityType()
public void setTimeActivated(java.lang.String timeActivated)
public java.lang.String getTimeActivated()
public void setTimeApproved(java.sql.Timestamp timeApproved)
public java.sql.Timestamp getTimeApprovedInEntityType()
public void setTimeApproved(java.lang.String timeApproved)
public java.lang.String getTimeApproved()
public void setReferenceNumber(java.lang.Long referenceNumber)
public java.lang.Long getReferenceNumberInEntityType()
public void setReferenceNumber(java.lang.String referenceNumber)
public java.lang.String getReferenceNumber()
public void setTimeUpdated(java.sql.Timestamp timeUpdated)
public java.sql.Timestamp getTimeUpdatedInEntityType()
public void setTimeUpdated(java.lang.String timeUpdated)
public java.lang.String getTimeUpdated()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setOwnerReferenceNumber(java.lang.Long ownerReferenceNumber)
public java.lang.Long getOwnerReferenceNumberInEntityType()
public void setOwnerReferenceNumber(java.lang.String ownerReferenceNumber)
public java.lang.String getOwnerReferenceNumber()
public void setTimeCreated(java.sql.Timestamp timeCreated)
public java.sql.Timestamp getTimeCreatedInEntityType()
public void setTimeCreated(java.lang.String timeCreated)
public java.lang.String getTimeCreated()
public void setState(java.lang.Integer state)
public java.lang.Integer getStateInEntityType()
public void setState(java.lang.String state)
public java.lang.String getState()
public void setMinorVersion(java.lang.Integer minorVersion)
public java.lang.Integer getMinorVersionInEntityType()
public void setMinorVersion(java.lang.String minorVersion)
public java.lang.String getMinorVersion()
public void addToStore(java.lang.Integer storeId)
public java.lang.Long createNewVersion()
public java.lang.Long getAccountId()
public java.lang.Long getReferredTradingAgreementId()
public java.lang.String getStoreXMLDefinition()
public java.lang.String getStoreXMLString()
public ParticipantAccessBean[] getContractLevelParticipants()
public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id)
public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id, java.lang.Integer storeId)
public TermConditionAccessBean[] getTCs()
public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType)
public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType)
public void setAccountId(java.lang.Long newAccountId)
public void setReferredTradingAgreementId(java.lang.Long newReferenceId)
public void setStoreXMLDefinition(org.w3c.dom.Element newStoreXML)
public void setStoreXMLDefinition(java.lang.String newStoreXML)
public java.util.Enumeration getContractsReferringToContractId()
public TermConditionAccessBean[] getXMLByTradingIdAndType(java.lang.Long tradingId, java.lang.Integer type) throws java.sql.SQLException, javax.naming.NamingException
java.sql.SQLException
javax.naming.NamingException
public TermConditionAccessBean[] getTCsByTCSubTypeWithoutTCParticipant(java.lang.String argTCSubType)
public TermConditionAccessBean[] getTCsByTCTypeWithoutTCParticipant(java.lang.String argTCType)
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
Protectable
fulfills
in interface Protectable
member
- The member ID of the member.relationship
- The relationship the member has with respect to the resource.java.lang.Exception
public java.lang.Long getOwner() throws java.lang.Exception
Protectable
getOwner
in interface Protectable
java.lang.Exception
public void instantiateEntity()
instantiateEntity
in class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean
public com.ibm.commerce.contract.objects.Contract getEntity()
getEntity
in class com.ibm.commerce.persistence.AbstractJpaEntityAccessBean