com.softslate.commerce.daos.product
Class AttributeDAOHibernate

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

public class AttributeDAOHibernate
extends BaseDAO
implements DAOInterface, AttributeDAO

Generic DAO to manage the sscAttribute table of the database.

Author:
David Tobey

Field Summary
private  Attribute attribute
           
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
AttributeDAOHibernate()
           
 
Method Summary
 void deleteAttribute()
           
 void deleteAttribute(boolean commit)
           
 boolean deleteObject(java.lang.Object object, boolean commit)
           
 Attribute getAttribute()
           
 void insertAttribute()
           
 void insertAttribute(boolean commit)
           
 java.lang.Object insertObject(java.lang.Object object, boolean commit)
           
 void loadAttributeFromCode()
           
 void loadAttributeFromID()
           
 java.lang.Object loadObject(java.lang.Object object)
           
 void setAttribute(Attribute attribute)
           
 void updateAttribute()
           
 void updateAttribute(boolean commit)
           
 java.lang.Object updateObject(java.lang.Object object, 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
 

Field Detail

log

static org.apache.commons.logging.Log log

attribute

private Attribute attribute
Constructor Detail

AttributeDAOHibernate

public AttributeDAOHibernate()
Method Detail

getAttribute

public Attribute getAttribute()
Specified by:
getAttribute in interface AttributeDAO

setAttribute

public void setAttribute(Attribute attribute)
Specified by:
setAttribute in interface AttributeDAO

loadAttributeFromID

public void loadAttributeFromID()
                         throws java.lang.Exception
Specified by:
loadAttributeFromID in interface AttributeDAO
Throws:
java.lang.Exception

insertAttribute

public void insertAttribute()
                     throws DataAccessException
Specified by:
insertAttribute in interface AttributeDAO
Throws:
DataAccessException

insertAttribute

public void insertAttribute(boolean commit)
                     throws DataAccessException
Specified by:
insertAttribute in interface AttributeDAO
Throws:
DataAccessException

updateAttribute

public void updateAttribute()
                     throws DataAccessException
Specified by:
updateAttribute in interface AttributeDAO
Throws:
DataAccessException

updateAttribute

public void updateAttribute(boolean commit)
                     throws DataAccessException
Specified by:
updateAttribute in interface AttributeDAO
Throws:
DataAccessException

deleteAttribute

public void deleteAttribute()
                     throws DataAccessException
Specified by:
deleteAttribute in interface AttributeDAO
Throws:
DataAccessException

deleteAttribute

public void deleteAttribute(boolean commit)
                     throws DataAccessException
Specified by:
deleteAttribute in interface AttributeDAO
Throws:
DataAccessException

loadAttributeFromCode

public void loadAttributeFromCode()
                           throws DataAccessException
Specified by:
loadAttributeFromCode in interface AttributeDAO
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