Class AttributeDAO

    • Constructor Detail

      • AttributeDAO

        public AttributeDAO()
    • Method Detail

      • load

        public IAttribute load​(int nIdAttribute,
                               Locale locale)
        Load attribute
        Specified by:
        load in interface IAttributeDAO
        Parameters:
        nIdAttribute - ID
        locale - Locale
        Returns:
        Attribute
      • insert

        public int insert​(IAttribute attribute)
        Insert a new attribute
        Specified by:
        insert in interface IAttributeDAO
        Parameters:
        attribute - the attribute
        Returns:
        new PK
      • store

        public void store​(IAttribute attribute)
        Update an attribute
        Specified by:
        store in interface IAttributeDAO
        Parameters:
        attribute - the attribute
      • delete

        public void delete​(int nIdAttribute)
        Delete an attribute
        Specified by:
        delete in interface IAttributeDAO
        Parameters:
        nIdAttribute - The Id of the attribute
      • updateAttributeAnonymization

        public void updateAttributeAnonymization​(int nIdAttribute,
                                                 boolean bAnonymize)
        Update the anonymization status of the attribute.
        Specified by:
        updateAttributeAnonymization in interface IAttributeDAO
        Parameters:
        nIdAttribute - Id of the attribute
        bAnonymize - New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.