com.ibm.commerce.registry
Class StoreCopy

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.common.objects.StoreAccessBean
              |
              +--com.ibm.commerce.registry.StoreCopy

public class StoreCopy
extends StoreAccessBean

This class is for internal use by the StoreRegistry.

See Also:
Serialized Form

Constructor Summary
StoreCopy()
          Constructor for StoreCopy.
 
Method Summary
 java.lang.String getDefaultContractId()
          Gets the default contract id
 java.lang.Long getDefaultContractIdInEJBType()
          Gets the default contract id
 java.lang.Integer[] getRelatedStores(java.lang.String storeRelationshipTypeName)
          Returns the stores related to this store by the given store relationship type.
 java.util.ResourceBundle getResourceBundle(java.lang.String resourceName, java.util.Locale locale)
          Gets a property resource bundle from this store's properties directory.
  StoreDefaultAccessBean getStoreDefault()
          Gets the StoreDefaultAccessBean
 java.lang.Integer[] getStorePath(java.lang.String storeRelationshipTypeName)
          Returns the stores related to this store by the given store relationship type.
 java.lang.Integer[] getStoresForRelatedStore(java.lang.String storeRelationshipTypeName)
          Returns the stores where this store is the related store by the given store relationship type.
 java.lang.Integer[] getSupportedLanguageIds()
          Gets the supported languages.
 java.util.Enumeration getTaxCategory(java.lang.Integer taxType)
          Gets an enumeration of all tax category for a given tax type.
 boolean publicFileExists(java.lang.String filename)
          Caches a snapshot of the store directory under the webapp doc root, and returns true if the given file exists in the cache.
 void refreshCopyHelper()
          Refreshes copy helper.
 
Methods inherited from class com.ibm.commerce.common.objects. StoreAccessBean
commitCopyHelper, defaultJNDIName, fetchAssociatedObjects, findAll, findByAdministrator, findByAdministratorAndMemberGroup, findByCatalog, findByCreatedByContract, findByDistinguishedName, findByStatus, findByStoreCategory, findByStoreType, fulfills, getAllocationGoodFor, getAllocationGoodForInEJBType, getAvailableMaxPrecedenceOffers, getAvailableMaxPrecedenceOffers, getAvailableMaxPrecedenceOffers, getAvsAcceptCodes, getBopmpadFactor, getBopmpadFactorInEJBType, getCatalogs, getCreatedByContract, getCurrency, getCurrency, getDefaultBoOffset, getDefaultBoOffsetInEJBType, getDefaultCurrency, getDescription, getDirectory, getField1, getField2, getFulfillmentCenter, getFulfillmentCenterId, getFulfillmentCenterIdInEJBType, getFulfillmentCenterSelectionFlags, getFulfillmentCenterSelectionFlagsInEJBType, getGroupingAttributeValue, getIdentifier, getLanguageId, getLanguageIdInEJBType, getLastUpdateStatus, getMarkForDelete, getMasterCatalog, getMaxBoOffset, getMaxBoOffsetInEJBType, getMemberId, getMemberIdInEJBType, getOID, getOwner, getPriceList, getPriceLists, getPriceRefFlags, getPriceRefFlagsInEJBType, getQuoteGoodFor, getQuoteGoodForInEJBType, getRejectedOrderExpiry, getRejectedOrderExpiryInEJBType, getReturnFFMCenterId, getReturnFFMCenterIdInEJBType, getRMAGoodFor, getRMAGoodForInEJBType, getStatus, getStatusInEJBType, getStoreCategoryId, getStoreCategoryIdInEJBType, getStoreEntityId, getStoreEntityIdInEJBType, getStoreGroup, getStoreGroupId, getStoreGroupIdInEJBType, getStoreLevel, getStoreType, getType, instantiateEJB, instantiateEJBByPrimaryKey, setAllocationGoodFor, setAllocationGoodFor, setAvsAcceptCodes, setBopmpadFactor, setBopmpadFactor, setCreatedByContract, setDefaultBoOffset, setDefaultBoOffset, setDefaultCurrency, setDirectory, setField1, setField2, setFulfillmentCenterId, setFulfillmentCenterId, setFulfillmentCenterSelectionFlags, setFulfillmentCenterSelectionFlags, setIdentifier, setInitKey_storeEntityId, setLanguageId, setLanguageId, setLastUpdateStatus, setMarkForDelete, setMaxBoOffset, setMaxBoOffset, setMemberId, setMemberId, setOID, setPriceRefFlags, setPriceRefFlags, setQuoteGoodFor, setQuoteGoodFor, setRejectedOrderExpiry, setRejectedOrderExpiry, setReturnFFMCenterId, setReturnFFMCenterId, setRMAGoodFor, setRMAGoodFor, setStatus, setStatus, setStoreCategoryId, setStoreCategoryId, setStoreGroupId, setStoreGroupId, setStoreLevel, setStoreType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreCopy

public StoreCopy()
Constructor for StoreCopy.
Method Detail

getRelatedStores

public java.lang.Integer[] getRelatedStores(java.lang.String storeRelationshipTypeName)
                                     throws FinderException,
                                            javax.naming.NamingException,
                                            java.rmi.RemoteException,
                                            java.sql.SQLException
Returns the stores related to this store by the given store relationship type. The related store ids are sorted in ascending order of the store relationship sequence.
Overrides:
getRelatedStores in class StoreAccessBean
Parameters:
storeRelationshipTypeName - the store relationship type name
Returns:
an Integer array of store ids
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.sql.SQLException - The java.sql.SQLException exception
javax.naming.NamingException - The javax.naming.NamingException exception
FinderException
See Also:
com.ibm.commerce.common.objects.StoreRelationshipJDBCHelperAccessBean#findRelatedStores(java.lang.Integer, java.lang.String)

getStoreDefault

public StoreDefaultAccessBean getStoreDefault()
                                       throws javax.naming.NamingException,
                                              javax.ejb.CreateException,
                                              java.rmi.RemoteException,
                                              javax.ejb.FinderException
Gets the StoreDefaultAccessBean
Overrides:
getStoreDefault in class StoreAccessBean
Returns:
a StoreDefaultAccessBean for this store
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException

getStoresForRelatedStore

public java.lang.Integer[] getStoresForRelatedStore(java.lang.String storeRelationshipTypeName)
                                             throws javax.naming.NamingException,
                                                    javax.ejb.FinderException,
                                                    javax.ejb.CreateException,
                                                    java.rmi.RemoteException,
                                                    java.sql.SQLException
Returns the stores where this store is the related store by the given store relationship type. The related store ids are sorted in ascending order of the store relationship sequence.
Overrides:
getStoresForRelatedStore in class StoreAccessBean
Parameters:
storeRelationshipTypeName - the store relationship type name
Returns:
an Integer array of store ids
Throws:
javax.naming.NamingException
java.sql.SQLException
java.rmi.RemoteException
FinderException
CreateException
See Also:
com.ibm.commerce.common.objects.StoreRelationshipJDBCHelperAccessBean#findStoresByRelatedStoreAndStoreRelType(java.lang.Integer, java.lang.String)

getStorePath

public java.lang.Integer[] getStorePath(java.lang.String storeRelationshipTypeName)
                                 throws CreateException,
                                        FinderException,
                                        javax.naming.NamingException,
                                        java.rmi.RemoteException,
                                        java.sql.SQLException
Returns the stores related to this store by the given store relationship type. The related store ids are sorted in ascending order of the store relationship sequence. When there are no related stores, this store's id is returned. This method returns the same value as getRelatedStores, with the additional semantic that if there are no related stores, this store's id is returned.
Overrides:
getStorePath in class StoreAccessBean
Parameters:
storeRelationshipTypeName - the store relationship type name
Returns:
an Integer array of store ids
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.sql.SQLException - The java.sql.SQLException exception
CreateException
FinderException
See Also:
com.ibm.commerce.common.objects.StoreRelationshipJDBCHelperAccessBean#findRelatedStores(java.lang.Integer, java.lang.String)

getTaxCategory

public java.util.Enumeration getTaxCategory(java.lang.Integer taxType)
                                     throws javax.naming.NamingException,
                                            java.rmi.RemoteException,
                                            javax.ejb.FinderException
Gets an enumeration of all tax category for a given tax type.
Overrides:
getTaxCategory in class StoreAccessBean
Parameters:
taxType - tax type
Returns:
an enumeration of tax catagory
Throws:
javax.naming.NamingException, - java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.FinderException
See Also:
TaxCategoryAccessBean.findByStoreAndTaxType(java.lang.Integer, java.lang.Integer)

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Refreshes copy helper.
Overrides:
refreshCopyHelper in class StoreAccessBean
Returns:
void
Throws:
javax.naming.NamingException, - java.rmi.RemoteException, javax.ejb.FinderException
java.rmi.RemoteException
javax.naming.NamingException
javax.ejb.CreateException
javax.ejb.FinderException

getResourceBundle

public java.util.ResourceBundle getResourceBundle(java.lang.String resourceName,
                                                  java.util.Locale locale)
                                           throws ECException
Gets a property resource bundle from this store's properties directory. The search consists of searching for ".properties" files for with the given locale. If the file with the locale cannot be found, then a file with no locale is searched for. eg. For a given locale of "en_US", the search order is: storeDir/resourceName_en_US.properties storeDir/resourceName
Parameters:
resourceName - the name of the resource
locale - the locale
Returns:
a property resource bundle
Throws:
ECException

publicFileExists

public boolean publicFileExists(java.lang.String filename)
                         throws ECException
Caches a snapshot of the store directory under the webapp doc root, and returns true if the given file exists in the cache. The filename separator is "/".
Parameters:
filename - the name of a file under the store directory
Returns:
true if the file exists, false otherwise
Throws:
ECException

getDefaultContractIdInEJBType

public java.lang.Long getDefaultContractIdInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException
Gets the default contract id
Overrides:
getDefaultContractIdInEJBType in class StoreAccessBean
Returns:
the default contract id for this store
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException

getDefaultContractId

public java.lang.String getDefaultContractId()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException
Gets the default contract id
Overrides:
getDefaultContractId in class StoreAccessBean
Returns:
the default contract id for this store
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException
See Also:
StoreDefaultAccessBean.findByStore(java.lang.Integer)

getSupportedLanguageIds

public java.lang.Integer[] getSupportedLanguageIds()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException
Gets the supported languages. The supported languages include the set of languages supported by this store, plus the languages supported by this store's store group
Overrides:
getSupportedLanguageIds in class StoreAccessBean
Returns:
an Integer array of language ids
Throws:
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
java.rmi.RemoteException
See Also:
SupportedLanguageAccessBean.findByStore(java.lang.Integer)