Class SecurityHeaderDAO
java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeaderDAO
- All Implemented Interfaces:
ISecurityHeaderDAO
This class provides Data Access methods for SecurityHeader objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nSecurityHeaderId) Delete a record from the tablevoidinsert(SecurityHeader securityHeader) Insert a new record in the table.load(int nId) Loads the data of the security header from the tableLoads 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
-
Constructor Details
-
SecurityHeaderDAO
public SecurityHeaderDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceISecurityHeaderDAO- Parameters:
securityHeader- instance of the SecurityHeader object to insert
-
load
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
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
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
-