com.softslate.commerce.daos.product
Class ProductDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.product.ProductDAOHibernate
All Implemented Interfaces:
DAOInterface, ProductDAO

public class ProductDAOHibernate
extends BaseDAO
implements ProductDAO

Generic DAO to manage the sscProduct table of the database.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private  Product product
           
 
Constructor Summary
ProductDAOHibernate()
           
 
Method Summary
 boolean deleteObject(java.lang.Object object, boolean commit)
           
 void deleteProduct()
           
 void deleteProduct(boolean commit)
           
 Product getProduct()
           
 java.lang.Object insertObject(java.lang.Object object, boolean commit)
           
 void insertProduct()
           
 void insertProduct(boolean commit)
           
 void insertProductWithID()
           
 void insertProductWithID(boolean commit)
           
 void loadAttributesAndOptions()
           
 java.lang.Object loadObject(java.lang.Object object)
           
 void loadProduct()
           
 void loadProductFromCode()
           
 void loadProductFromID()
           
 java.util.Collection loadSettings()
           
 void prepareInsertOrUpdate(java.sql.PreparedStatement preparedStatement1)
           
 void setProduct(Product product)
           
 java.lang.Object updateObject(java.lang.Object object, boolean commit)
           
 void updateProduct()
           
 void updateProduct(boolean commit)
           
 void updateProductByCode()
           
 void updateProductByCode(boolean commit)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, loadAll, loadAll, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setSettings, setSqlMap
 
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
getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getSettings, getSqlMap, initialize, loadAll, loadAll, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setSettings, setSqlMap
 

Field Detail

log

static org.apache.commons.logging.Log log

product

private Product product
Constructor Detail

ProductDAOHibernate

public ProductDAOHibernate()
Method Detail

getProduct

public Product getProduct()
Specified by:
getProduct in interface ProductDAO

setProduct

public void setProduct(Product product)
Specified by:
setProduct in interface ProductDAO

loadProduct

public void loadProduct()
                 throws DataAccessException
Specified by:
loadProduct in interface ProductDAO
Throws:
DataAccessException

loadProductFromCode

public void loadProductFromCode()
                         throws DataAccessException
Specified by:
loadProductFromCode in interface ProductDAO
Throws:
DataAccessException

loadProductFromID

public void loadProductFromID()
                       throws java.lang.Exception
Specified by:
loadProductFromID in interface ProductDAO
Throws:
java.lang.Exception

loadAttributesAndOptions

public void loadAttributesAndOptions()
                              throws java.lang.Exception
Specified by:
loadAttributesAndOptions in interface ProductDAO
Throws:
java.lang.Exception

insertProduct

public void insertProduct()
                   throws DataAccessException
Specified by:
insertProduct in interface ProductDAO
Throws:
DataAccessException

insertProduct

public void insertProduct(boolean commit)
                   throws DataAccessException
Specified by:
insertProduct in interface ProductDAO
Throws:
DataAccessException

insertProductWithID

public void insertProductWithID()
                         throws java.lang.Exception
Specified by:
insertProductWithID in interface ProductDAO
Throws:
java.lang.Exception

insertProductWithID

public void insertProductWithID(boolean commit)
                         throws java.lang.Exception
Specified by:
insertProductWithID in interface ProductDAO
Throws:
java.lang.Exception

updateProduct

public void updateProduct()
                   throws DataAccessException
Specified by:
updateProduct in interface ProductDAO
Throws:
DataAccessException

updateProduct

public void updateProduct(boolean commit)
                   throws DataAccessException
Specified by:
updateProduct in interface ProductDAO
Throws:
DataAccessException

updateProductByCode

public void updateProductByCode()
                         throws java.lang.Exception
Specified by:
updateProductByCode in interface ProductDAO
Throws:
java.lang.Exception

updateProductByCode

public void updateProductByCode(boolean commit)
                         throws java.lang.Exception
Specified by:
updateProductByCode in interface ProductDAO
Throws:
java.lang.Exception

prepareInsertOrUpdate

public void prepareInsertOrUpdate(java.sql.PreparedStatement preparedStatement1)
                           throws java.lang.Exception
Throws:
java.lang.Exception

deleteProduct

public void deleteProduct()
                   throws DataAccessException
Specified by:
deleteProduct in interface ProductDAO
Throws:
DataAccessException

deleteProduct

public void deleteProduct(boolean commit)
                   throws DataAccessException
Specified by:
deleteProduct in interface ProductDAO
Throws:
DataAccessException

loadSettings

public java.util.Collection loadSettings()
                                  throws DataAccessException
Specified by:
loadSettings in interface ProductDAO
Throws:
DataAccessException

loadObject

public java.lang.Object loadObject(java.lang.Object object)
                            throws java.lang.Exception
Specified by:
loadObject in interface DAOInterface
Overrides:
loadObject in class BaseDAO
Throws:
java.lang.Exception

deleteObject

public boolean deleteObject(java.lang.Object object,
                            boolean commit)
                     throws java.lang.Exception
Specified by:
deleteObject in interface DAOInterface
Overrides:
deleteObject in class BaseDAO
Throws:
java.lang.Exception

insertObject

public java.lang.Object insertObject(java.lang.Object object,
                                     boolean commit)
                              throws java.lang.Exception
Specified by:
insertObject in interface DAOInterface
Overrides:
insertObject in class BaseDAO
Throws:
java.lang.Exception

updateObject

public java.lang.Object updateObject(java.lang.Object object,
                                     boolean commit)
                              throws java.lang.Exception
Specified by:
updateObject in interface DAOInterface
Overrides:
updateObject in class BaseDAO
Throws:
java.lang.Exception


Copyright ? SoftSlate, LLC 2003?2005