Package lumis.portal.principal
Class PrincipalDaoJdbc
- java.lang.Object
-
- lumis.portal.principal.PrincipalDaoJdbc
-
- All Implemented Interfaces:
IPrincipalDao
public class PrincipalDaoJdbc extends Object implements IPrincipalDao
Class resposible for executing database operations on the Principal entity.- Since:
- 4.0.0
- Version:
- $Revision: 23034 $ $Date: 2019-08-05 16:52:47 -0300 (Mon, 05 Aug 2019) $
-
-
Constructor Summary
Constructors Constructor Description PrincipalDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PrincipalConfig principal, ITransaction transaction)
Adds a new principalCollection<PrincipalConfig>
bulkLoad(String principalId, int numOfElements, ITransaction transaction)
Bulk loads principals and return them.void
delete(String principalId, ITransaction transaction)
Delets a principalPrincipalConfig
get(String principalId, ITransaction transaction)
Get the principal.PrincipalConfig
getByShortId(String shortId, ITransaction transaction)
Get the principal by his's short Idvoid
update(PrincipalConfig principal, ITransaction transaction)
Updates a principal
-
-
-
Method Detail
-
add
public void add(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPrincipalDao
Adds a new principal- Specified by:
add
in interfaceIPrincipalDao
- Throws:
DaoException
PortalException
-
delete
public void delete(String principalId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPrincipalDao
Delets a principal- Specified by:
delete
in interfaceIPrincipalDao
- Throws:
DaoException
PortalException
-
update
public void update(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPrincipalDao
Updates a principal- Specified by:
update
in interfaceIPrincipalDao
- Throws:
DaoException
PortalException
-
get
public PrincipalConfig get(String principalId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPrincipalDao
Get the principal.- Specified by:
get
in interfaceIPrincipalDao
- Returns:
- Throws:
DaoException
PortalException
-
getByShortId
public PrincipalConfig getByShortId(String shortId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPrincipalDao
Get the principal by his's short Id- Specified by:
getByShortId
in interfaceIPrincipalDao
- Returns:
- Throws:
DaoException
PortalException
-
bulkLoad
public Collection<PrincipalConfig> bulkLoad(String principalId, int numOfElements, ITransaction transaction) throws PortalException
Description copied from interface:IPrincipalDao
Bulk loads principals and return them.- Specified by:
bulkLoad
in interfaceIPrincipalDao
- Parameters:
principalId
- the identifier of principal that must be returned if it exists.numOfElements
- optimal number of principals to be returned. The actual number returned may not be exactly this, but there will be a best effort, without performance hit, to return the nearest possible.transaction
- the transaction for persistence access.- Returns:
- the principals.
- Throws:
PortalException
-
-