Class AttributeKeyHome


  • public final class AttributeKeyHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for AttributeKey objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean checkAttributeId​(int nKey)
      Check reference in other tables of the attributeKey whose identifier is specified in parameter
      static AttributeKey create​(AttributeKey attributeKey)
      Create an instance of the attributeKey class
      static AttributeKey findByKey​(java.lang.String strKey, boolean loadValues)
      Find the attribute by its key
      static AttributeKey findByPrimaryKey​(int nKey, boolean loadValues)
      Returns an instance of a attributeKey whose identifier is specified in parameter
      static java.util.List<AttributeKey> getAttributeKeysList​(boolean loadValues)
      Load the data of all the attributeKey objects and returns them as a list
      static java.util.List<java.lang.String> getAttributeKeysNamesList()  
      static java.util.List<AttributeKey> getMandatoryForCreationAttributeKeyList()
      Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a list
      static java.lang.Integer getQualityBase()
      Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)
      static void remove​(int nKey)
      Remove the attributeKey whose identifier is specified in parameter
      static AttributeKey update​(AttributeKey attributeKey)
      Update of the attributeKey which is specified in parameter
      • Methods inherited from class java.lang.Object

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

      • create

        public static AttributeKey create​(AttributeKey attributeKey)
        Create an instance of the attributeKey class
        Parameters:
        attributeKey - The instance of the AttributeKey which contains the informations to store
        Returns:
        The instance of attributeKey which has been created with its primary key.
      • update

        public static AttributeKey update​(AttributeKey attributeKey)
        Update of the attributeKey which is specified in parameter
        Parameters:
        attributeKey - The instance of the AttributeKey which contains the data to store
        Returns:
        The instance of the attributeKey which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the attributeKey whose identifier is specified in parameter
        Parameters:
        nKey - The attributeKey Id
      • findByPrimaryKey

        public static AttributeKey findByPrimaryKey​(int nKey,
                                                    boolean loadValues)
        Returns an instance of a attributeKey whose identifier is specified in parameter
        Parameters:
        nKey - The attributeKey primary key
        Returns:
        an instance of AttributeKey
      • findByKey

        public static AttributeKey findByKey​(java.lang.String strKey,
                                             boolean loadValues)
        Find the attribute by its key
        Parameters:
        strKey - The key The key
        Returns:
        the AttributeKey
      • getAttributeKeysList

        public static java.util.List<AttributeKey> getAttributeKeysList​(boolean loadValues)
        Load the data of all the attributeKey objects and returns them as a list
        Returns:
        the list which contains the data of all the attributeKey objects
      • getAttributeKeysNamesList

        public static java.util.List<java.lang.String> getAttributeKeysNamesList()
      • checkAttributeId

        public static boolean checkAttributeId​(int nKey)
        Check reference in other tables of the attributeKey whose identifier is specified in parameter
        Parameters:
        nKey - The attributeKey Id
        Returns:
        true if reference exists
      • getQualityBase

        public static java.lang.Integer getQualityBase()
        Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)
        Returns:
        the base
      • getMandatoryForCreationAttributeKeyList

        public static java.util.List<AttributeKey> getMandatoryForCreationAttributeKeyList()
        Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a list
        Returns:
        the list which contains the data of all the mandatory attributeKey objects