fr.paris.lutece.plugins.workflow.business
Class StateDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.business.StateDAO
All Implemented Interfaces:
IStateDAO

public class StateDAO
extends java.lang.Object
implements IStateDAO

class StateDAO


Constructor Summary
StateDAO()
           
 
Method Summary
 void delete(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the state Object
 fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object from the given resource
 void insert(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 fr.paris.lutece.portal.business.workflow.State load(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object
 java.util.List<fr.paris.lutece.portal.business.workflow.State> selectStatesByFilter(StateFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          select all states by filter
 void store(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateDAO

public StateDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.workflow.State state,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
Insert a new record in the table.

Specified by:
insert in interface IStateDAO
Parameters:
state - instance of the State object to insert
plugin - the plugin

store

public void store(fr.paris.lutece.portal.business.workflow.State state,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
update record in the table.

Specified by:
store in interface IStateDAO
Parameters:
state - instance of the State object to update
plugin - the plugin

load

public fr.paris.lutece.portal.business.workflow.State load(int nIdState,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
Load the state Object

Specified by:
load in interface IStateDAO
Parameters:
nIdState - the state id
plugin - the plugin
Returns:
the state Object

findByResource

public fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource,
                                                                     java.lang.String strResourceType,
                                                                     int nIdWorkflow,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
Load the state Object from the given resource

Specified by:
findByResource in interface IStateDAO
Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the state Object

delete

public void delete(int nIdState,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
Delete the state Object

Specified by:
delete in interface IStateDAO
Parameters:
nIdState - the state id
plugin - the plugin

selectStatesByFilter

public java.util.List<fr.paris.lutece.portal.business.workflow.State> selectStatesByFilter(StateFilter filter,
                                                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IStateDAO
select all states by filter

Specified by:
selectStatesByFilter in interface IStateDAO
Parameters:
filter - StateFilter Object
plugin - the plugin
Returns:
a list of state


Copyright © 2012 Mairie de Paris. All Rights Reserved.