com.softslate.commerce.daos.product
Class AttributeGatewayDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
          extended by com.softslate.commerce.daos.product.AttributeGatewayDAOHibernate
All Implemented Interfaces:
DAOInterface, AttributeGatewayDAO

public class AttributeGatewayDAOHibernate
extends BaseAdminGatewayDAOHibernate
implements AttributeGatewayDAO

Generic DAO that runs miscellaneous queries related to attributes.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
AttributeGatewayDAOHibernate()
           
 
Method Summary
 void editDeleteAttributes(java.util.Map parameters, BusinessObjectFactory bof)
           
 void insertProductAttribute(ProductAttribute pa)
           
 void insertProductAttribute(ProductAttribute pa, boolean commit)
           
 java.util.Collection loadAllAttributes()
           
 java.util.Collection loadAllAttributesInRange(int firstID, int lastID)
           
 java.util.Map loadAttributesAndCount(java.util.Map parameters)
           
 int loadMaxAttributeID()
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseAdminGatewayDAOHibernate
editDeleteAssignments, editDeleteItems, loadItems, loadItemsAndCount, loadItemsCount, loadItemsFromIDs, processCommonCriteria, setPropertiesDynamically
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setSettings, setSqlMap, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap, updateObject
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

AttributeGatewayDAOHibernate

public AttributeGatewayDAOHibernate()
Method Detail

loadAttributesAndCount

public java.util.Map loadAttributesAndCount(java.util.Map parameters)
                                     throws java.lang.Exception
Specified by:
loadAttributesAndCount in interface AttributeGatewayDAO
Throws:
java.lang.Exception

editDeleteAttributes

public void editDeleteAttributes(java.util.Map parameters,
                                 BusinessObjectFactory bof)
                          throws java.lang.Exception
Specified by:
editDeleteAttributes in interface AttributeGatewayDAO
Throws:
java.lang.Exception

loadAllAttributes

public java.util.Collection loadAllAttributes()
                                       throws DataAccessException
Specified by:
loadAllAttributes in interface AttributeGatewayDAO
Throws:
DataAccessException

insertProductAttribute

public void insertProductAttribute(ProductAttribute pa)
                            throws DataAccessException
Specified by:
insertProductAttribute in interface AttributeGatewayDAO
Throws:
DataAccessException

insertProductAttribute

public void insertProductAttribute(ProductAttribute pa,
                                   boolean commit)
                            throws DataAccessException
Specified by:
insertProductAttribute in interface AttributeGatewayDAO
Throws:
DataAccessException

loadMaxAttributeID

public int loadMaxAttributeID()
                       throws java.lang.Exception
Specified by:
loadMaxAttributeID in interface AttributeGatewayDAO
Throws:
java.lang.Exception

loadAllAttributesInRange

public java.util.Collection loadAllAttributesInRange(int firstID,
                                                     int lastID)
                                              throws java.lang.Exception
Specified by:
loadAllAttributesInRange in interface AttributeGatewayDAO
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2005