Class SecurityHeaderDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.securityheader.SecurityHeaderDAO
-
- All Implemented Interfaces:
ISecurityHeaderDAO
public final class SecurityHeaderDAO extends java.lang.Object implements ISecurityHeaderDAO
This class provides Data Access methods for SecurityHeader objects
-
-
Constructor Summary
Constructors Constructor Description SecurityHeaderDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nSecurityHeaderId)Delete a record from the tablevoidinsert(SecurityHeader securityHeader)Insert a new record in the table.SecurityHeaderload(int nId)Loads the data of the security header from the tablejava.util.List<SecurityHeader>selectAll()Loads the data of all the security headers and returns them in form of a collectionvoidstore(SecurityHeader securityHeader)Update the record in the tablevoidupdateIsActive(int nSecurityHeaderId, boolean isActiveValue)Update of "is_active" column value of security header which is specified in parameter
-
-
-
Method Detail
-
insert
public void insert(SecurityHeader securityHeader)
Insert a new record in the table.- Specified by:
insertin interfaceISecurityHeaderDAO- Parameters:
securityHeader- instance of the SecurityHeader object to insert
-
load
public SecurityHeader load(int nId)
Loads the data of the security header from the table- Specified by:
loadin interfaceISecurityHeaderDAO- Parameters:
nId- The identifier of the security header- Returns:
- the instance of the Security header
-
delete
public void delete(int nSecurityHeaderId)
Delete a record from the table- Specified by:
deletein interfaceISecurityHeaderDAO- Parameters:
nSecurityHeaderId- The identifier of the security header
-
store
public void store(SecurityHeader securityHeader)
Update the record in the table- Specified by:
storein interfaceISecurityHeaderDAO- Parameters:
securityHeader- The reference of the security header
-
updateIsActive
public void updateIsActive(int nSecurityHeaderId, boolean isActiveValue)Update of "is_active" column value of security header which is specified in parameter- Specified by:
updateIsActivein interfaceISecurityHeaderDAO- Parameters:
nSecurityHeaderId- The securityHeader IdisActiveValue- The value to set to is_active column
-
selectAll
public java.util.List<SecurityHeader> selectAll()
Loads the data of all the security headers and returns them in form of a collection- Specified by:
selectAllin interfaceISecurityHeaderDAO- Returns:
- The Collection which contains the data of all the security headers
-
-