fr.paris.lutece.plugins.wrapper.business
Class WrapperDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.wrapper.business.WrapperDAO
All Implemented Interfaces:
IWrapperDAO

public class WrapperDAO
extends java.lang.Object
implements IWrapperDAO

This class provides Data Access methods for Wrapper objects

Author:
lenaini

Constructor Summary
WrapperDAO()
           
 
Method Summary
 void delete(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Wrapper load(int nWrapperId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Wrapper from the table
 java.util.Collection<Wrapper> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wrappers
 Wrapper selectEnabledWrapper(int nWrapperId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load enabled wrapper
 java.util.Collection<Wrapper> selectEnabledWrapperList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wrappers
 void store(Wrapper wrapper, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperDAO

public WrapperDAO()
Method Detail

insert

public void insert(Wrapper wrapper,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IWrapperDAO
Parameters:
wrapper - The wrapper object
plugin - The plugin

load

public Wrapper load(int nWrapperId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Wrapper from the table

Specified by:
load in interface IWrapperDAO
Parameters:
nWrapperId - The identifier of Wrapper
plugin - The plugin
Returns:
the instance of the Wrapper

delete

public void delete(Wrapper wrapper,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IWrapperDAO
Parameters:
wrapper - The Wrapper object
plugin - The plugin

store

public void store(Wrapper wrapper,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IWrapperDAO
Parameters:
wrapper - The reference of wrapper
plugin - The plugin

selectAll

public java.util.Collection<Wrapper> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of wrappers

Specified by:
selectAll in interface IWrapperDAO
Parameters:
plugin - The plugin
Returns:
The Collection of the Wrappers

selectEnabledWrapper

public Wrapper selectEnabledWrapper(int nWrapperId,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load enabled wrapper

Specified by:
selectEnabledWrapper in interface IWrapperDAO
Parameters:
nWrapperId - The page id
plugin - The plugin
Returns:
The Collection of the Wrappers

selectEnabledWrapperList

public java.util.Collection<Wrapper> selectEnabledWrapperList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of wrappers

Specified by:
selectEnabledWrapperList in interface IWrapperDAO
Parameters:
plugin - The plugin
Returns:
The Collection of the Wrappers


Copyright © 2010 Mairie de Paris. All Rights Reserved.