Class MapTemplateHome
- java.lang.Object
-
- fr.paris.lutece.plugins.carto.business.MapTemplateHome
-
public final class MapTemplateHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for MapTemplate objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MapTemplatecreate(MapTemplate mapTemplate)Create an instance of the mapTemplate classstatic java.util.Optional<MapTemplate>findByPrimaryKey(int nKey)Returns an instance of a mapTemplate whose identifier is specified in parameterstatic java.util.Optional<MapTemplate>findXpageFrontOffice()Returns an instance of a mapTemplate whose identifier is specified in parameterstatic java.util.List<java.lang.Integer>getIdMapTemplatesList()Load the id of all the mapTemplate objects and returns them as a liststatic java.util.List<MapTemplate>getMapTemplatesList()Load the data of all the mapTemplate objects and returns them as a liststatic java.util.List<MapTemplate>getMapTemplatesListByIds(java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetMapTemplatesReferenceList()Load the data of all the mapTemplate objects and returns them as a referenceListstatic voidremove(int nKey)Remove the mapTemplate whose identifier is specified in parameterstatic MapTemplateupdate(MapTemplate mapTemplate)Update of the mapTemplate which is specified in parameter
-
-
-
Method Detail
-
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 java.util.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 java.util.Optional<MapTemplate> findXpageFrontOffice()
Returns an instance of a mapTemplate whose identifier is specified in parameter- Returns:
- an instance of MapTemplate
-
getMapTemplatesList
public static java.util.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 java.util.List<java.lang.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 java.util.List<MapTemplate> getMapTemplatesListByIds(java.util.List<java.lang.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
-
-