com.softslate.commerce.daos.administrator
Class RoleDAOHibernate

java.lang.Object
  extended by com.softslate.commerce.daos.core.BaseDAO
      extended by com.softslate.commerce.daos.administrator.RoleDAOHibernate
All Implemented Interfaces:
RoleDAO, DAOInterface

public class RoleDAOHibernate
extends BaseDAO
implements RoleDAO

Generic DAO to manage the sscRole table of the database.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private  Role role
           
 
Constructor Summary
RoleDAOHibernate()
           
 
Method Summary
 void deleteRole()
           
 void deleteRole(boolean commit)
           
 Role getRole()
           
 void insertRole()
           
 void insertRole(boolean commit)
           
 void loadRoleFromCode()
           
 void loadRoleFromID()
           
 void setRole(Role role)
           
 void updateRole()
           
 void updateRole(boolean commit)
           
 
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

role

private Role role
Constructor Detail

RoleDAOHibernate

public RoleDAOHibernate()
Method Detail

getRole

public Role getRole()
Specified by:
getRole in interface RoleDAO

setRole

public void setRole(Role role)
Specified by:
setRole in interface RoleDAO

loadRoleFromID

public void loadRoleFromID()
                    throws java.lang.Exception
Specified by:
loadRoleFromID in interface RoleDAO
Throws:
java.lang.Exception

loadRoleFromCode

public void loadRoleFromCode()
                      throws DataAccessException
Specified by:
loadRoleFromCode in interface RoleDAO
Throws:
DataAccessException

insertRole

public void insertRole()
                throws DataAccessException
Specified by:
insertRole in interface RoleDAO
Throws:
DataAccessException

insertRole

public void insertRole(boolean commit)
                throws DataAccessException
Specified by:
insertRole in interface RoleDAO
Throws:
DataAccessException

updateRole

public void updateRole()
                throws DataAccessException
Specified by:
updateRole in interface RoleDAO
Throws:
DataAccessException

updateRole

public void updateRole(boolean commit)
                throws DataAccessException
Specified by:
updateRole in interface RoleDAO
Throws:
DataAccessException

deleteRole

public void deleteRole()
                throws DataAccessException
Specified by:
deleteRole in interface RoleDAO
Throws:
DataAccessException

deleteRole

public void deleteRole(boolean commit)
                throws DataAccessException
Specified by:
deleteRole in interface RoleDAO
Throws:
DataAccessException


Copyright © SoftSlate, LLC 2003–2005