Class SecurityHeaderDAO

  • All Implemented Interfaces:
    ISecurityHeaderDAO

    public final class SecurityHeaderDAO
    extends java.lang.Object
    implements ISecurityHeaderDAO
    This class provides Data Access methods for SecurityHeader objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nSecurityHeaderId)
      Delete a record from the table
      void insert​(SecurityHeader securityHeader)
      Insert a new record in the table.
      SecurityHeader load​(int nId)
      Loads the data of the security header from the table
      java.util.List<SecurityHeader> selectAll()
      Loads the data of all the security headers and returns them in form of a collection
      void store​(SecurityHeader securityHeader)
      Update the record in the table
      void updateIsActive​(int nSecurityHeaderId, boolean isActiveValue)
      Update of "is_active" column value of security header which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecurityHeaderDAO

        public SecurityHeaderDAO()
    • Method Detail

      • 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 java.util.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