Class SecurityHeaderDAO

java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeaderDAO
All Implemented Interfaces:
ISecurityHeaderDAO

public final class SecurityHeaderDAO extends Object implements ISecurityHeaderDAO
This class provides Data Access methods for SecurityHeader objects
  • Constructor Details

    • SecurityHeaderDAO

      public SecurityHeaderDAO()
  • Method Details

    • insert

      public void insert(SecurityHeader securityHeader)
      Insert a new record in the table.
      Specified by:
      insert in interface ISecurityHeaderDAO
      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:
      load in interface ISecurityHeaderDAO
      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:
      delete in interface ISecurityHeaderDAO
      Parameters:
      nSecurityHeaderId - The identifier of the security header
    • store

      public void store(SecurityHeader securityHeader)
      Update the record in the table
      Specified by:
      store in interface ISecurityHeaderDAO
      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:
      updateIsActive in interface ISecurityHeaderDAO
      Parameters:
      nSecurityHeaderId - The securityHeader Id
      isActiveValue - The value to set to is_active column
    • selectAll

      public List<SecurityHeader> selectAll()
      Loads the data of all the security headers and returns them in form of a collection
      Specified by:
      selectAll in interface ISecurityHeaderDAO
      Returns:
      The Collection which contains the data of all the security headers