com.ibm.commerce.registry
Class TradingAgreementCopy

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

public class TradingAgreementCopy
extends TradingAgreementAccessBean

TradingAgreementCopy is an internal class used by the trading agreement registry.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
TradingAgreementCopy(TradingAgreementAccessBean argABTrading)
          Constructor for TradingAgreementCopy.
 
Method Summary
 BusinessPolicyAccessBean[] getPolicies(java.lang.Long argMemberId)
          Gets business policy access beans associate with a member Id
 BusinessPolicyAccessBean[] getPoliciesByType(java.lang.String argType, java.lang.Long argMemberId)
          Gets business policy access beans associated with a member Id for a given policy type.
 TermConditionAccessBean[] getTCsByTCSubType(java.lang.String argTCSubType, java.lang.Long argMemberId)
          Gets terms and condition access bean for a member by subtype.
 TermConditionAccessBean[] getTCsByTCType(java.lang.String argTCType, java.lang.Long argMemberId)
          Gets terms and condition access bean for a member by type.
 boolean hasTCLevelParticipant()
          Checks if this trading agreement has participants.
 boolean isValid()
          Checks if this trading agreement is valid.
 
Methods inherited from class com.ibm.commerce.contract.objects.TradingAgreementAccessBean
commitCopyHelper, findAll, findAllActive, findAllByType, findDefaultAuctionTradingAgreement, findEntitledTradingAgreementByTypeForBuyerUnderStore, findEntitledTradingAgreementForBuyerUnderStore, findValidTAById, getAccountId, getAccountIdInEJBType, getAttachment, getCreditAllowedFlag, getCreditAllowedFlagInEJBType, getDescription, getDescription, getEndTime, getEndTimeInEJBType, getMarkForDelete, getMarkForDeleteInEJBType, getPolicies, getPoliciesByType, getReferenceCount, getReferenceCountInEJBType, getStartTime, getStartTimeInEJBType, getState, getStateInEJBType, getTCsByTCSubType, getTCsByTCType, getTradingId, getTradingIdInEJBType, getTradingLevelParticipants, getTradingType, getTradingTypeInEJBType, markForDelete, refreshCopyHelper, setAccountId, setAccountId, setCreditAllowedFlag, setCreditAllowedFlag, setEndTime, setEndTime, setInitKey_tradingId, setMarkForDelete, setMarkForDelete, setReferenceCount, setReferenceCount, setStartTime, setStartTime, setState, setState, setTradingId, setTradingId, setTradingType, setTradingType
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
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
Constructor for TradingAgreementCopy.

Parameters:
bean - 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 business policy access beans associate with a member Id

Overrides:
getPolicies in class TradingAgreementAccessBean
Parameters:
memberId - Long
Returns:
BusinessPolicyAccessBean[]
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException

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 business policy access beans associated with a member Id for a given policy type.

Overrides:
getPoliciesByType in class TradingAgreementAccessBean
Parameters:
memberId - Long - member id
type - String - policy type
Returns:
BusinessPolicyAccessBean[]
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException

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 terms and condition access bean for a member by subtype.

Overrides:
getTCsByTCSubType in class TradingAgreementAccessBean
Parameters:
memberId - Long - member id
subType - String - sub type
Returns:
TermConditionAccessBean[]
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException

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 terms and condition access bean for a member by type.

Overrides:
getTCsByTCType in class TradingAgreementAccessBean
Parameters:
memberId - Long - member id
type - String - type
Returns:
TermConditionAccessBean[]
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException

hasTCLevelParticipant

public boolean hasTCLevelParticipant()
                              throws javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     java.rmi.RemoteException,
                                     javax.naming.NamingException
Checks if this trading agreement has participants.

Overrides:
hasTCLevelParticipant in class TradingAgreementAccessBean
Returns:
boolean - true if trading agreement has participants. false otherwise.
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException

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:
boolean - true if trading agreement is valid. false otherwise.
Throws:
javax.ejb.CreateException, - javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException