|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.ManufacturerMgr
public class ManufacturerMgr
Manufacturers Manager
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
protected static java.lang.String |
mutex
Mutex |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
ManufacturerMgr(KKEngIf eng)
Constructor |
|
| Method Summary | |
|---|---|
Address[] |
getAddressesPerManufacturer(int manufacturerId)
Returns all of the addresses for the given manufacturer. |
Manufacturer[] |
getAllManufacturers()
Returns an array of all manufacturers |
Manufacturer |
getManufacturer(int manufacturerId,
int languageId)
Gets the manufacturer referenced by the manufacturer id |
Manufacturer |
getManufacturerPerProduct(int productId,
int languageId)
Returns an array of manufacturers for a product |
Manufacturer[] |
getManufacturersFromIds(java.util.ArrayList<java.lang.Integer> manuIdList)
Return an array of manufacturers for the ids passed in through the manuIdList parameter. |
Manufacturer[] |
getManufacturersPerCategory(int categoryId)
Returns an array of manufacturers for a category |
protected void |
setCriteriaWithStandardAttributes(org.apache.torque.util.Criteria c,
boolean allCustom)
Sets the criteria with the standard attributes so as not to have to repeat this code many times. |
void |
UpdateManufacturerViewedCount(int manufacturerId,
int languageId)
Whenever a user clicks on a manufacturer to view the home page, we update the click count and the date of the last click. |
| 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
protected static java.lang.String mutex
| Constructor Detail |
|---|
public ManufacturerMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public Manufacturer[] getAllManufacturers()
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
ManufacturerMgrIf
getAllManufacturers in interface ManufacturerMgrIfcom.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
public Manufacturer[] getManufacturersPerCategory(int categoryId)
throws java.lang.Exception
ManufacturerMgrIf
getManufacturersPerCategory in interface ManufacturerMgrIfcategoryId -
java.lang.Exception
public Manufacturer getManufacturerPerProduct(int productId,
int languageId)
throws java.lang.Exception
ManufacturerMgrIf
getManufacturerPerProduct in interface ManufacturerMgrIfproductId - languageId -
java.lang.Exception
public Manufacturer getManufacturer(int manufacturerId,
int languageId)
throws java.lang.Exception
ManufacturerMgrIf
getManufacturer in interface ManufacturerMgrIfmanufacturerId - languageId -
java.lang.Exception
public void UpdateManufacturerViewedCount(int manufacturerId,
int languageId)
throws java.lang.Exception
UpdateManufacturerViewedCount in interface ManufacturerMgrIfmanufacturerId - languageId -
java.lang.Exception
protected void setCriteriaWithStandardAttributes(org.apache.torque.util.Criteria c,
boolean allCustom)
c - allCustom - If true we add all of the custom fields, if not we only add 2.
public Address[] getAddressesPerManufacturer(int manufacturerId)
throws java.lang.Exception
getAddressesPerManufacturer in interface ManufacturerMgrIfmanufacturerId -
java.lang.Exception
public Manufacturer[] getManufacturersFromIds(java.util.ArrayList<java.lang.Integer> manuIdList)
throws java.lang.Exception
getManufacturersFromIds in interface ManufacturerMgrIfmanuIdList - An array list containing ids of manufacturers
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||