Class TransitionDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.TransitionDAO
- All Implemented Interfaces:
ITransitionDAO
This class provides Data Access methods for Transition objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 stepgetTransitionByPriority(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectIdTransitionsList(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 stepselectTransitionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the transition objects and returns them as a listselectTransitionsListFromForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the transitions list from given formselectTransitionsListFromStep(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
-
Constructor Details
-
TransitionDAO
public TransitionDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceITransitionDAO- Parameters:
transition- instance of the Transition object to insertplugin- the Plugin
-
load
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
Update the record in the table- Specified by:
storein interfaceITransitionDAO- Parameters:
transition- the reference of the Transitionplugin- the Plugin
-
selectTransitionsList
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
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
-