public class PrincipalDaoJdbc extends Object implements IPrincipalDao
Constructor and Description |
---|
PrincipalDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
void |
add(PrincipalConfig principal,
ITransaction transaction)
Adds a new principal
|
Collection<PrincipalConfig> |
bulkLoad(String principalId,
int numOfElements,
ITransaction transaction)
Bulk loads principals and return them.
|
void |
delete(String principalId,
ITransaction transaction)
Delets a principal
|
PrincipalConfig |
get(String principalId,
ITransaction transaction)
Get the principal.
|
PrincipalConfig |
getByShortId(String shortId,
ITransaction transaction)
Get the principal by his's short Id
|
void |
update(PrincipalConfig principal,
ITransaction transaction)
Updates a principal
|
public void add(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
IPrincipalDao
add
in interface IPrincipalDao
DaoException
PortalException
public void delete(String principalId, ITransaction transaction) throws DaoException, PortalException
IPrincipalDao
delete
in interface IPrincipalDao
DaoException
PortalException
public void update(PrincipalConfig principal, ITransaction transaction) throws DaoException, PortalException
IPrincipalDao
update
in interface IPrincipalDao
DaoException
PortalException
public PrincipalConfig get(String principalId, ITransaction transaction) throws DaoException, PortalException
IPrincipalDao
get
in interface IPrincipalDao
DaoException
PortalException
public PrincipalConfig getByShortId(String shortId, ITransaction transaction) throws DaoException, PortalException
IPrincipalDao
getByShortId
in interface IPrincipalDao
DaoException
PortalException
public Collection<PrincipalConfig> bulkLoad(String principalId, int numOfElements, ITransaction transaction) throws PortalException
IPrincipalDao
bulkLoad
in interface IPrincipalDao
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.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.