|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminAddressMgr
public class AdminAddressMgr
The AdminAddressMgr - for Managing Address Objects for the Admin Application
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
the log |
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminAddressMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
void |
addAddressesToProduct(AdminAddress[] addresses,
int productId)
Associate an array of addresses to a product. |
protected void |
addAddressFormatOrderBy(com.konakart.bl.KKCriteria c,
AdminAddressFormatSearch search)
|
protected int |
addAddressFormatSearchCriteria(com.konakart.bl.KKCriteria c,
AdminAddressFormatSearch search)
|
protected void |
addAddressOrderBy(com.konakart.bl.KKCriteria c,
AdminAddressSearch search)
|
protected void |
addAddressSearchCriteria(com.konakart.bl.KKCriteria c,
AdminAddressSearch search)
|
void |
deleteAddress(int addressId)
Deletes an AdminAddress. |
int |
deleteAddressFormat(int id)
Delete an AddressFormat |
boolean |
doesAddressExistForId(int addrId)
Checks to see whether an address already exists with this id |
boolean |
doesAddressFormatExist(int addressFormatId)
Return true if the AddressFormat exists. |
AdminAddress |
getAddressById(int addressId)
Get Addresses defined by the search criteria |
AdminAddressSearchResult |
getAddresses(AdminAddressSearch search,
int offset,
int size)
Get Addresses defined by the search criteria |
AdminAddressFormatSearchResult |
getAddressFormats(AdminAddressFormatSearch search)
This returns an AdminAddressFormatSearchResult object. |
protected int |
getCount(org.apache.torque.util.Criteria c,
java.lang.String key)
This method is mainly used for paging. |
int |
getProductCountPerAddress(int addressId)
Returns the number of products using the address |
int |
insertAddress(AdminAddress address)
Insert an AdminAddress. |
int |
insertAddressFormat(AdminAddressFormat taxClass)
Insert an AdminAddressFormat object |
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager |
void |
removeAddressFromProduct(int addressId,
int productId)
Remove the relationship between the address and the product. |
protected void |
setAddressCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Common code to avoid duplication |
void |
updateAddress(AdminAddress address)
Updates an AdminAddress. |
int |
updateAddressFormat(AdminAddressFormat taxClass)
Update an AdminAddressFormat object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public AdminAddressMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public AdminAddressFormatSearchResult getAddressFormats(AdminAddressFormatSearch search) throws KKAdminException
getAddressFormats
in interface AdminAddressMgrIf
search
-
KKAdminException
public int deleteAddressFormat(int id) throws KKAdminException
deleteAddressFormat
in interface AdminAddressMgrIf
id
- An AddressFormat id
KKAdminException
public int insertAddressFormat(AdminAddressFormat taxClass) throws KKAdminException
insertAddressFormat
in interface AdminAddressMgrIf
taxClass
- An AdminAddressFormat object
KKAdminException
public int updateAddressFormat(AdminAddressFormat taxClass) throws KKAdminException
updateAddressFormat
in interface AdminAddressMgrIf
taxClass
- An AdminAddressFormat object
KKAdminException
protected void addAddressFormatOrderBy(com.konakart.bl.KKCriteria c, AdminAddressFormatSearch search)
protected int addAddressFormatSearchCriteria(com.konakart.bl.KKCriteria c, AdminAddressFormatSearch search)
public boolean doesAddressFormatExist(int addressFormatId) throws org.apache.torque.TorqueException, KKAdminException
doesAddressFormatExist
in interface AdminAddressMgrIf
addressFormatId
-
org.apache.torque.TorqueException
KKAdminException
public void refreshConfigs() throws java.lang.Exception
refreshConfigs
in interface AdminAddressMgrIf
refreshConfigs
in class AdminBaseMgr
java.lang.Exception
public boolean doesAddressExistForId(int addrId) throws org.apache.torque.TorqueException, KKAdminException
doesAddressExistForId
in interface AdminAddressMgrIf
addrId
-
org.apache.torque.TorqueException
KKAdminException
public AdminAddress getAddressById(int addressId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminAddressMgrIf
getAddressById
in interface AdminAddressMgrIf
addressId
- the id of the address to retrieve
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public AdminAddressSearchResult getAddresses(AdminAddressSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminAddressMgrIf
getAddresses
in interface AdminAddressMgrIf
search
- the search criteriaoffset
- the offset in the record set to start fromsize
- the maximum number of records to return
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void addAddressSearchCriteria(com.konakart.bl.KKCriteria c, AdminAddressSearch search)
protected void addAddressOrderBy(com.konakart.bl.KKCriteria c, AdminAddressSearch search)
protected int getCount(org.apache.torque.util.Criteria c, java.lang.String key) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
- key
- we have to use a key instead of just a * when there are no search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void setAddressCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
c
- public void deleteAddress(int addressId) throws KKAdminException
AdminAddressMgrIf
deleteAddress
in interface AdminAddressMgrIf
addressId
- the id of the address to delete
KKAdminException
public int insertAddress(AdminAddress address) throws java.lang.Exception
AdminAddressMgrIf
insertAddress
in interface AdminAddressMgrIf
address
- an AdminAddress object
java.lang.Exception
public void updateAddress(AdminAddress address) throws KKAdminException
AdminAddressMgrIf
updateAddress
in interface AdminAddressMgrIf
address
- the AdminAddress object to update
KKAdminException
public void addAddressesToProduct(AdminAddress[] addresses, int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addAddressesToProduct
in interface AdminAddressMgrIf
addresses
- productId
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public void removeAddressFromProduct(int addressId, int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
removeAddressFromProduct
in interface AdminAddressMgrIf
addressId
- productId
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
public int getProductCountPerAddress(int addressId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
getProductCountPerAddress
in interface AdminAddressMgrIf
addressId
-
com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |