Class AdministratorDAOHibernate
java.lang.Object
com.softslate.commerce.daos.core.BaseDAO
com.softslate.commerce.daos.administrator.AdministratorDAOHibernate
- All Implemented Interfaces:
AdministratorDAO
,DAOInterface
Generic DAO to manage the
sscAdministrator
table of the
database.- Author:
- David Tobey
-
Field Summary
Modifier and TypeFieldDescriptionprivate Administrator
(package private) static org.apache.commons.logging.Log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
administratorChangePassword
(String currentDecryptedPassword, String newDecryptedPassword, int administratorID, String passwordExpires, String previousPasswords) void
void
deleteAdministrator
(boolean commit) void
void
insertAdministrator
(boolean commit) void
loadAdministratorByUserName
(String administratorUserName) void
loadFromApiUserNameAndPassword
(String apiLoginID, String apiAuthenticationToken) void
loadFromUserNameAndPassword
(String administratorUserName, String administratorPassword) void
void
loadRoles
(Administrator administrator) void
setAdministrator
(Administrator administrator) void
void
updateAdministrator
(boolean commit) Methods inherited from class com.softslate.commerce.daos.core.BaseDAO
deleteObject, doWorkToSetConnection, editAssignment, evictCache, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getImportExportSQL, getImportExportSqlMap, getInjector, getNamedQuery, getSettings, getSQL, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setImportExportSqlMap, setInjector, 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, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Field Details
-
log
static org.apache.commons.logging.Log log -
administrator
-
-
Constructor Details
-
AdministratorDAOHibernate
public AdministratorDAOHibernate()
-
-
Method Details
-
getAdministrator
- Specified by:
getAdministrator
in interfaceAdministratorDAO
-
setAdministrator
- Specified by:
setAdministrator
in interfaceAdministratorDAO
-
loadAdministratorFromID
- Specified by:
loadAdministratorFromID
in interfaceAdministratorDAO
- Throws:
Exception
-
loadPasswordByID
- Throws:
DataAccessException
-
loadAdministratorByUserName
- Specified by:
loadAdministratorByUserName
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
loadAdministratorByUserName
public Administrator loadAdministratorByUserName(String administratorUserName) throws DataAccessException - Specified by:
loadAdministratorByUserName
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
loadFromUserNameAndPassword
- Specified by:
loadFromUserNameAndPassword
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
loadFromUserNameAndPassword
public Administrator loadFromUserNameAndPassword(String administratorUserName, String administratorPassword) throws DataAccessException - Specified by:
loadFromUserNameAndPassword
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
loadFromApiUserNameAndPassword
public Administrator loadFromApiUserNameAndPassword(String apiLoginID, String apiAuthenticationToken) throws Exception - Specified by:
loadFromApiUserNameAndPassword
in interfaceAdministratorDAO
- Throws:
Exception
-
loadRoles
- Specified by:
loadRoles
in interfaceAdministratorDAO
- Throws:
Exception
-
loadRoles
- Specified by:
loadRoles
in interfaceAdministratorDAO
- Throws:
Exception
-
insertAdministrator
- Specified by:
insertAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
insertAdministrator
- Specified by:
insertAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
updateAdministrator
- Specified by:
updateAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
updateAdministrator
- Specified by:
updateAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
deleteAdministrator
- Specified by:
deleteAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
deleteAdministrator
- Specified by:
deleteAdministrator
in interfaceAdministratorDAO
- Throws:
DataAccessException
-
administratorChangePassword
public int administratorChangePassword(String currentDecryptedPassword, String newDecryptedPassword, int administratorID, String passwordExpires, String previousPasswords) throws DataAccessException - Specified by:
administratorChangePassword
in interfaceAdministratorDAO
- Throws:
DataAccessException
-