Class MapTemplateHome

java.lang.Object
fr.paris.lutece.plugins.carto.business.MapTemplateHome

public final class MapTemplateHome extends Object
This class provides instances management methods (create, find, ...) for MapTemplate objects
  • Method Details

    • create

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

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

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

      public static Optional<MapTemplate> findByPrimaryKey(int nKey)
      Returns an instance of a mapTemplate whose identifier is specified in parameter
      Parameters:
      nKey - The mapTemplate primary key
      Returns:
      an instance of MapTemplate
    • findXpageFrontOffice

      public static Optional<MapTemplate> findXpageFrontOffice()
      Returns an instance of a mapTemplate whose identifier is specified in parameter
      Returns:
      an instance of MapTemplate
    • getMapTemplatesList

      public static List<MapTemplate> getMapTemplatesList()
      Load the data of all the mapTemplate objects and returns them as a list
      Returns:
      the list which contains the data of all the mapTemplate objects
    • getIdMapTemplatesList

      public static List<Integer> getIdMapTemplatesList()
      Load the id of all the mapTemplate objects and returns them as a list
      Returns:
      the list which contains the id of all the mapTemplate objects
    • getMapTemplatesReferenceList

      public static fr.paris.lutece.util.ReferenceList getMapTemplatesReferenceList()
      Load the data of all the mapTemplate objects and returns them as a referenceList
      Returns:
      the referenceList which contains the data of all the mapTemplate objects
    • getMapTemplatesListByIds

      public static List<MapTemplate> getMapTemplatesListByIds(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects