Class LabelService


  • public final class LabelService
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Label objects
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Label create​(Label label)
      Create an instance of the label class
      static Label findByPrimaryKey​(java.lang.String strKey)
      Returns an instance of a label whose identifier is specified in parameter
      static java.util.List<Label> getLabelsList()
      Load the data of all the label objects and returns them in form of a collection
      static void remove​(java.lang.String strKey)
      Remove the label whose identifier is specified in parameter
      static Label update​(Label label)
      Update of the label 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 Label create​(Label label)
        Create an instance of the label class
        Parameters:
        label - The instance of the Label which contains the informations to store
        Returns:
        The instance of label which has been created with its primary key.
      • update

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

        public static void remove​(java.lang.String strKey)
        Remove the label whose identifier is specified in parameter
        Parameters:
        strKey - The Key
      • findByPrimaryKey

        public static Label findByPrimaryKey​(java.lang.String strKey)
        Returns an instance of a label whose identifier is specified in parameter
        Parameters:
        strKey - The label primary key
        Returns:
        an instance of Label
      • getLabelsList

        public static java.util.List<Label> getLabelsList()
        Load the data of all the label objects and returns them in form of a collection
        Returns:
        the collection which contains the data of all the label objects