com.ibm.commerce.registry
Class TradingAgreementCopy

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.contract.objects.TradingAgreementAccessBean
              |
              +--com.ibm.commerce.registry.TradingAgreementCopy
All Implemented Interfaces:
TradingAgreementAccessBeanData

public class TradingAgreementCopy
extends TradingAgreementAccessBean

An internal representation of a Trading Agreement Access Bean used for caching Trading Agreements

See Also:
Serialized Form

Constructor Summary
TradingAgreementCopy( TradingAgreementAccessBean argABTrading)
          Constructs a TradingAgreementCopy object given a TradingAgreementAccessBean
 
Method Summary
  BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId)
          Gets the business policy access beans associated with the trading agreement for a particular member
  BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType, java.lang.Long argMemberId)
          Gets the business policy access beans associated with the trading agreement for a particular member by business policy type
  BusinessPolicyAccessBean[] getReferenceTradingAgreementPolicies(java.lang.Long argMemberId)
          Gets the business policy access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement
  BusinessPolicyAccessBean[] getReferenceTradingAgreementPoliciesByType(java.lang.String argType, java.lang.Long argMemberId)
          Gets the business policy access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by business policy type
  TermConditionAccessBean[] getReferenceTradingAgreementTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId)
          Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by term and condition subtype
  TermConditionAccessBean[] getReferenceTradingAgreementTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId)
          Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by term and condition type
  TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId)
          Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement by term and condition subtype
  TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId)
          Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement by term and condition type
 boolean hasTCLevelParticipant()
          Checks if this trading agreement has term and condition level participants.
 boolean isValid()
          Checks if this trading agreement is valid.
  BusinessPolicyAccessBean[] mergeLists( BusinessPolicyAccessBean[] list1, BusinessPolicyAccessBean[] list2)
          Merge two BusinessPolicyAccessBean lists into one list
  TermConditionAccessBean[] mergeLists( TermConditionAccessBean[] list1, TermConditionAccessBean[] list2)
          Merge two TermConditionAccessBean lists into one list
 
Methods inherited from class com.ibm.commerce.contract.objects. TradingAgreementAccessBean
commitCopyHelper, defaultJNDIName, findAll, findAllActive, findAllByReferenceId, findAllByType, findDefaultAuctionTradingAgreement, findEntitledTradingAgreementByTypeForBuyerUnderStore, findEntitledTradingAgreementForBuyerUnderStore, findValidTAById, getAccountId, getAccountIdInEJBType, getAttachment, getCreditAllowedFlag, getCreditAllowedFlagInEJBType, getDescription, getDescription, getEndTime, getEndTimeInEJBType, getMarkForDelete, getMarkForDeleteInEJBType, getPolicies, getPoliciesByType, getReferenceCount, getReferenceCountInEJBType, getReferenceId, getStartTime, getStartTimeInEJBType, getState, getStateInEJBType, getTCsByTCSubType, getTCsByTCType, getTradingId, getTradingIdInEJBType, getTradingLevelParticipants, getTradingType, getTradingTypeInEJBType, instantiateEJB, instantiateEJBByPrimaryKey, markForDelete, refreshCopyHelper, setAccountId, setAccountId, setCreditAllowedFlag, setCreditAllowedFlag, setEndTime, setEndTime, setInitKey_tradingId, setMarkForDelete, setMarkForDelete, setReferenceCount, setReferenceCount, setReferenceId, setReferenceId, setStartTime, setStartTime, setState, setState, setTradingId, setTradingId, setTradingType, setTradingType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TradingAgreementCopy

public TradingAgreementCopy(TradingAgreementAccessBean argABTrading)
                     throws javax.naming.NamingException,
                            java.rmi.RemoteException,
                            javax.ejb.CreateException,
                            javax.ejb.FinderException
Constructs a TradingAgreementCopy object given a TradingAgreementAccessBean
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
Method Detail

getPolicies

public BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId)
                                       throws javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException
Gets the business policy access beans associated with the trading agreement for a particular member
Overrides:
getPolicies in class TradingAgreementAccessBean
Parameters:
argMemberId - The member identifier
Returns:
An array of business policy access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getPoliciesByType

public BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType,
                                                    java.lang.Long argMemberId)
                                             throws javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException,
                                                    javax.naming.NamingException
Gets the business policy access beans associated with the trading agreement for a particular member by business policy type
Overrides:
getPoliciesByType in class TradingAgreementAccessBean
Parameters:
argType - The policy type
argMemberId - The member identifier
Returns:
An array of business policy access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getReferenceTradingAgreementPolicies

public BusinessPolicyAccessBean[] getReferenceTradingAgreementPolicies(java.lang.Long argMemberId)
                                                                throws javax.ejb.CreateException,
                                                                       javax.ejb.FinderException,
                                                                       java.rmi.RemoteException,
                                                                       javax.naming.NamingException
Gets the business policy access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement
Parameters:
argMemberId - The member identifier
Returns:
An array of business policy access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getReferenceTradingAgreementPoliciesByType

public BusinessPolicyAccessBean[] getReferenceTradingAgreementPoliciesByType(java.lang.String argType,
                                                                             java.lang.Long argMemberId)
                                                                      throws javax.ejb.CreateException,
                                                                             javax.ejb.FinderException,
                                                                             java.rmi.RemoteException,
                                                                             javax.naming.NamingException
Gets the business policy access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by business policy type
Parameters:
argType - The policy type
argMemberId - The member identifier
Returns:
An array of business policy access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getReferenceTradingAgreementTCsByTCSubType

public TermConditionAccessBean[] getReferenceTradingAgreementTCsByTCSubType(java.lang.String argTCSubType,
                                                                            java.lang.Long argMemberId)
                                                                     throws javax.ejb.CreateException,
                                                                            javax.ejb.FinderException,
                                                                            java.rmi.RemoteException,
                                                                            javax.naming.NamingException
Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by term and condition subtype
Parameters:
argTCSubType - The term and condition subtype
argMemberId - The member identifier
Returns:
An array of term and condition access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getReferenceTradingAgreementTCsByTCType

public TermConditionAccessBean[] getReferenceTradingAgreementTCsByTCType(java.lang.String argTCType,
                                                                         java.lang.Long argMemberId)
                                                                  throws javax.ejb.CreateException,
                                                                         javax.ejb.FinderException,
                                                                         java.rmi.RemoteException,
                                                                         javax.naming.NamingException
Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement referenced by this trading agreement by term and condition type
Parameters:
argTCType - The term and condition type
argMemberId - The member identifier
Returns:
An array of term and condition access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getTCsByTCSubType

public TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType,
                                                   java.lang.Long argMemberId)
                                            throws javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   java.rmi.RemoteException,
                                                   javax.naming.NamingException
Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement by term and condition subtype
Overrides:
getTCsByTCSubType in class TradingAgreementAccessBean
Parameters:
argTCSubType - The term and condition subtype
argMemberId - The member identifier
Returns:
An array of term and condition access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

getTCsByTCType

public TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType,
                                                java.lang.Long argMemberId)
                                         throws javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException,
                                                javax.naming.NamingException
Gets the term and condition access beans associated with the trading agreement for a particular member in the trading agreement by term and condition type
Overrides:
getTCsByTCType in class TradingAgreementAccessBean
Parameters:
argTCType - The term and condition type
argMemberId - The member identifier
Returns:
An array of term and condition access beans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

hasTCLevelParticipant

public boolean hasTCLevelParticipant()
                              throws javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException
Checks if this trading agreement has term and condition level participants.
Overrides:
hasTCLevelParticipant in class TradingAgreementAccessBean
Returns:
true if the trading agreement has participants, false otherwise.
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

isValid

public boolean isValid()
                throws javax.ejb.CreateException,
                       javax.ejb.FinderException,
                       java.rmi.RemoteException,
                       javax.naming.NamingException
Checks if this trading agreement is valid.
Overrides:
isValid in class TradingAgreementAccessBean
Returns:
true if the trading agreement is valid, false otherwise.
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

mergeLists

public BusinessPolicyAccessBean[] mergeLists(BusinessPolicyAccessBean[] list1,
BusinessPolicyAccessBean[] list2)
                                      throws javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             java.rmi.RemoteException,
                                             javax.naming.NamingException
Merge two BusinessPolicyAccessBean lists into one list
Parameters:
list1 - com.ibm.commerce.contract.objects.BusinessPolicyAccessBean[]
list2 - com.ibm.commerce.contract.objects.BusinessPolicyAccessBean[]
Returns:
The merged list of BusinessPolicyAccessBeans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException

mergeLists

public TermConditionAccessBean[] mergeLists(TermConditionAccessBean[] list1,
TermConditionAccessBean[] list2)
                                     throws javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            java.rmi.RemoteException,
                                            javax.naming.NamingException
Merge two TermConditionAccessBean lists into one list
Parameters:
list1 - com.ibm.commerce.contract.objects.TermConditionAccessBean[]
list2 - com.ibm.commerce.contract.objects.TermConditionAccessBean[]
Returns:
The merged list of TermConditionAccessBeans
Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException