Class DataLayerMapTemplateHome

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

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

    • create

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

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

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

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

      public static List<DataLayerMapTemplate> getDataLayerMapTemplatesList()
      Load the data of all the dataLayerMapTemplate objects and returns them as a list
      Returns:
      the list which contains the data of all the dataLayerMapTemplate objects
    • getIdDataLayerMapTemplatesList

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

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

      public static List<DataLayerMapTemplate> getDataLayerMapTemplatesListByIds(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
    • getDataLayerListByMapTemplateId

      public static List<DataLayer> getDataLayerListByMapTemplateId(int nKey)
      Load all the DataLayer attached to the MapTemplate id
      Parameters:
      nkey - : id of the mapTemplate
      Returns:
      The list of DataLayer
    • getDataLayerListByMapTemplateId

      public static List<DataLayer> getDataLayerListByMapTemplateId(int nKey, boolean isSearchableByOther)
      Load all the DataLayer attached to the MapTemplate id
      Parameters:
      nkey - : id of the mapTemplate
      isSearchableByOther - : is viewable by others users
      Returns:
      The list of DataLayer
    • findByIdMapKeyIdDataLayerKey

      public static Optional<DataLayerMapTemplate> findByIdMapKeyIdDataLayerKey(int nMapKey, int nDataLayerKey)
      Returns an instance of a dataLayerMapTemplate whose identifier is specified in parameter
      Parameters:
      nMapKey - The MapTemplate primary key
      nDataLayerKey - The dataLayer primary key
      Returns:
      an instance of DataLayerMapTemplate
    • findByIdDataLayerKey

      public static Optional<DataLayerMapTemplate> findByIdDataLayerKey(int nDataLayerKey)
      Returns an instance of a dataLayerMapTemplate whose identifier is specified in parameter
      Parameters:
      nDataLayerKey - The dataLayer primary key
      Returns:
      an instance of DataLayerMapTemplate