Class TemplateStepHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.business.TemplateStepHome
-
public final class TemplateStepHome extends Object
This class provides instances management methods (create, find, ...) for Template objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(Template template)Create an instance of the template classstatic TemplatefindByPrimaryKey(int nKey)Returns an instance of a template whose identifier is specified in parameterstatic List<Template>getAllTemplates()Loads all templatesstatic voidremove(int nKey)Remove the template whose identifier is specified in parameterstatic voidupdate(Template template)Update of the template which is specified in parameter
-
-
-
Method Detail
-
create
public static void create(Template template)
Create an instance of the template class- Parameters:
template- The instance of the Template which contains the informations to store
-
update
public static void update(Template template)
Update of the template which is specified in parameter- Parameters:
template- The instance of the Template which contains the data to store
-
remove
public static void remove(int nKey)
Remove the template whose identifier is specified in parameter- Parameters:
nKey- The template Id
-
findByPrimaryKey
public static Template findByPrimaryKey(int nKey)
Returns an instance of a template whose identifier is specified in parameter- Parameters:
nKey- The template primary key- Returns:
- an instance of Template
-
-