Class AttributeRequirementDAO

    • Constructor Detail

      • AttributeRequirementDAO

        public AttributeRequirementDAO()
    • Method Detail

      • insert

        public void insert​(AttributeRequirement attributeRequirement,
                           int serviceContractId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IAttributeRequirementDAO
        Parameters:
        attributeRequirement - instance of the AttributeRequirement object to insert
        plugin - the Plugin
      • load

        public Optional<AttributeRequirement> load​(int nKey,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IAttributeRequirementDAO
        Parameters:
        nKey - The identifier of the attributeRequirement
        plugin - the Plugin
        Returns:
        The instance of the attributeRequirement
      • delete

        public void delete​(int nKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IAttributeRequirementDAO
        Parameters:
        nKey - The identifier of the AttributeRequirement to delete
        plugin - the Plugin
      • store

        public void store​(AttributeRequirement attributeRequirement,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IAttributeRequirementDAO
        Parameters:
        attributeRequirement - the reference of the AttributeRequirement
        plugin - the Plugin
      • selectAttributeRequirementsList

        public List<AttributeRequirement> selectAttributeRequirementsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the attributeRequirement objects and returns them as a list
        Specified by:
        selectAttributeRequirementsList in interface IAttributeRequirementDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the attributeRequirement objects
      • selectIdAttributeRequirementsList

        public List<Integer> selectIdAttributeRequirementsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the attributeRequirement objects and returns them as a list
        Specified by:
        selectIdAttributeRequirementsList in interface IAttributeRequirementDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the attributeRequirement objects
      • selectAttributeRequirementsReferenceList

        public fr.paris.lutece.util.ReferenceList selectAttributeRequirementsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the attributeRequirement objects and returns them as a referenceList
        Specified by:
        selectAttributeRequirementsReferenceList in interface IAttributeRequirementDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the attributeRequirement objects