com.softslate.commerce.daos.administrator
Class RoleDAOBasic

java.lang.Object
  extended bycom.softslate.commerce.daos.core.BaseDAO
      extended bycom.softslate.commerce.daos.administrator.RoleDAOBasic
All Implemented Interfaces:
DAOInterface, RoleDAO

public class RoleDAOBasic
extends BaseDAO
implements RoleDAO

Generic DAO to manage the npcRole table of the database.

Author:
David Tobey

Field Summary
(package private) static org.apache.commons.logging.Log log
           
private  Role role
           
 
Fields inherited from class com.softslate.commerce.daos.core.BaseDAO
 
Constructor Summary
RoleDAOBasic()
           
 
Method Summary
 void deleteRole()
           
 void deleteRole(boolean commit)
           
 int getMaxRoleID()
           
 Role getRole()
           
 void insertRole()
           
 void insertRole(boolean commit)
           
 void loadRole()
           
 void loadRoleFromID()
           
 void setRole(Role role)
           
 void updateRole()
           
 void updateRole(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

role

private Role role
Constructor Detail

RoleDAOBasic

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

loadRole

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

getMaxRoleID

public int getMaxRoleID()
                 throws java.lang.Exception
Specified by:
getMaxRoleID in interface RoleDAO
Throws:
java.lang.Exception

insertRole

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

insertRole

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

updateRole

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

updateRole

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

deleteRole

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

deleteRole

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


Copyright © SoftSlate, Inc. 2003–2005