Interface ISecurityHeaderDAO
- All Known Implementing Classes:
SecurityHeaderDAO
public interface ISecurityHeaderDAO
ISecurityHeaderDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nSecurityHeaderId) Delete a record from the table.voidinsert(SecurityHeader securityheader) Insert a new record in the table.load(int nKey) load the data of the security header from the tableselectActiveByType(String strType) Returns all active security headers from a specified type (page or rest api)Loads the data of all the security headers and returns them in form of a collectionvoidstore(SecurityHeader securityheader) Update the record in the table.voidupdateIsActive(int nSecurityHeaderId, boolean isActiveValue) Update of the is_active column value of securityHeader which is specified in parameter.
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
securityheader- instance of the SecurityHeader object to insert
-
store
Update the record in the table.- Parameters:
securityheader- the reference of the SecurityHeader
-
delete
void delete(int nSecurityHeaderId) Delete a record from the table.- Parameters:
nSecurityHeaderId- int identifier of the SecurityHeader to delete
-
updateIsActive
void updateIsActive(int nSecurityHeaderId, boolean isActiveValue) Update of the is_active column value of securityHeader which is specified in parameter.- Parameters:
nSecurityHeaderId- The securityHeader IdisActiveValue- The value to set to is_active column
-
load
load the data of the security header from the table- Parameters:
nKey- The identifier of the securityHeader- Returns:
- The instance of the securityHeader
-
selectAll
Collection<SecurityHeader> selectAll()Loads the data of all the security headers and returns them in form of a collection- Returns:
- the collection which contains the data of all the security headers
-
selectActiveByType
Returns all active security headers from a specified type (page or rest api)- Parameters:
strType- The type- Returns:
- the collection which contains the data of all the securityHeaders
-