Class TransitionDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.TransitionDAO
-
- All Implemented Interfaces:
ITransitionDAO
public final class TransitionDAO extends Object implements ITransitionDAO
This class provides Data Access methods for Transition objects
-
-
Constructor Summary
Constructors Constructor Description TransitionDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the transitions starting from or leading to a given stepTransitiongetTransitionByPriority(int nIdStep, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of a transition object from the given step and the given priorityvoidinsert(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Transitionload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Integer>selectIdTransitionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the transition objects and returns them as a listintselectMaxPriorityByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the maximum priority value of the transitions from the given starting stepList<Transition>selectTransitionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the transition objects and returns them as a listList<Transition>selectTransitionsListFromForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select the transitions list from given formList<Transition>selectTransitionsListFromStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the transition objects from given step and returns them as a listfr.paris.lutece.util.ReferenceListselectTransitionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the transition objects and returns them as a referenceListvoidstore(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceITransitionDAO- Parameters:
transition- instance of the Transition object to insertplugin- the Plugin
-
load
public Transition load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceITransitionDAO- Parameters:
nKey- The identifier of the transitionplugin- the Plugin- Returns:
- The instance of the transition
-
selectMaxPriorityByStep
public int selectMaxPriorityByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the maximum priority value of the transitions from the given starting step- Specified by:
selectMaxPriorityByStepin interfaceITransitionDAO- Parameters:
nIdStep- The identifier of the stepplugin- The Plugin- Returns:
- the Transition object if existing
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITransitionDAO- Parameters:
nKey- The identifier of the Transition to deleteplugin- the Plugin
-
store
public void store(Transition transition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceITransitionDAO- Parameters:
transition- the reference of the Transitionplugin- the Plugin
-
selectTransitionsList
public List<Transition> selectTransitionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the transition objects and returns them as a list- Specified by:
selectTransitionsListin interfaceITransitionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the transition objects
-
selectIdTransitionsList
public List<Integer> selectIdTransitionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the transition objects and returns them as a list- Specified by:
selectIdTransitionsListin interfaceITransitionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the transition objects
-
selectTransitionsReferenceList
public fr.paris.lutece.util.ReferenceList selectTransitionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the transition objects and returns them as a referenceList- Specified by:
selectTransitionsReferenceListin interfaceITransitionDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the transition objects
-
selectTransitionsListFromStep
public List<Transition> selectTransitionsListFromStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the transition objects from given step and returns them as a list- Specified by:
selectTransitionsListFromStepin interfaceITransitionDAO- Parameters:
nIdStep- The identifier of the starting stepplugin- the Plugin- Returns:
- The list which contains the data of all the transition objects
-
getTransitionByPriority
public Transition getTransitionByPriority(int nIdStep, int nPriority, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of a transition object from the given step and the given priority- Specified by:
getTransitionByPriorityin interfaceITransitionDAO- Parameters:
nIdStep- The identifier of the stepnPriority- The priority valueplugin- The Plugin- Returns:
- the Transition object if existing
-
deleteByStep
public void deleteByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove all the transitions starting from or leading to a given step- Specified by:
deleteByStepin interfaceITransitionDAO- Parameters:
nIdStep- The Step Idplugin- The Plugin
-
selectTransitionsListFromForm
public List<Transition> selectTransitionsListFromForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the transitions list from given form- Specified by:
selectTransitionsListFromFormin interfaceITransitionDAO- Parameters:
nIdForm- The Form idplugin- The plugin- Returns:
- the transitions list from given form id
-
-