com.softslate.commerce.daos.product
Class AttributeDAOBasic

java.lang.Object
  extended bycom.softslate.commerce.daos.core.BaseDAO
      extended bycom.softslate.commerce.daos.product.AttributeDAOBasic
All Implemented Interfaces:
AttributeDAO, DAOInterface

public class AttributeDAOBasic
extends BaseDAO
implements DAOInterface, AttributeDAO

Generic DAO to manage the npcAttribute table of the database.

Author:
David Tobey

Field Summary
private  Attribute attribute
           
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.softslate.commerce.daos.core.BaseDAO
 
Constructor Summary
AttributeDAOBasic()
           
 
Method Summary
 void deleteAttribute()
           
 void deleteAttribute(boolean commit)
           
 Attribute getAttribute()
           
 int getMaxAttributeID()
           
 void insertAttribute()
           
 void insertAttribute(boolean commit)
           
 void loadAttributeFromID()
           
 java.util.Collection loadAttributeOptions()
           
 void setAttribute(Attribute attribute)
           
 void updateAttribute()
           
 void updateAttribute(boolean commit)
           
 
Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
formatDateTime, getConnection, getDaoFactory, getDataSource, getSettingsBean, getSQL, getSqlMap, initialize, parseDateTime, setConnection, setDaoFactory, setDataSource, setSettingsBean, 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
getConnection, getDaoFactory, getDataSource, getSettingsBean, getSqlMap, initialize, setConnection, setDaoFactory, setDataSource, setSettingsBean, setSqlMap
 

Field Detail

log

static org.apache.commons.logging.Log log

attribute

private Attribute attribute
Constructor Detail

AttributeDAOBasic

public AttributeDAOBasic()
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

getMaxAttributeID

public int getMaxAttributeID()
                      throws java.lang.Exception
Specified by:
getMaxAttributeID in interface AttributeDAO
Throws:
java.lang.Exception

insertAttribute

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

insertAttribute

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

updateAttribute

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

updateAttribute

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

deleteAttribute

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

deleteAttribute

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

loadAttributeOptions

public java.util.Collection loadAttributeOptions()
                                          throws java.lang.Exception
Specified by:
loadAttributeOptions in interface AttributeDAO
Throws:
java.lang.Exception


Copyright © SoftSlate, Inc. 2003–2005