fr.paris.lutece.plugins.myportal.business
Class ColumnStyleDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.myportal.business.ColumnStyleDAO
All Implemented Interfaces:
IWidgetStyleDAO

public final class ColumnStyleDAO
extends java.lang.Object
implements IWidgetStyleDAO

This class provides Data Access methods for Style objects


Constructor Summary
ColumnStyleDAO()
           
 
Method Summary
 void delete(int nStyleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Style style, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Style load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the style from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<Style> selectStylesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the styles and returns them as a List
 void store(Style style, 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

ColumnStyleDAO

public ColumnStyleDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Specified by:
newPrimaryKey in interface IWidgetStyleDAO
Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IWidgetStyleDAO
Parameters:
style - instance of the Style object to insert
plugin - The plugin

load

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

Specified by:
load in interface IWidgetStyleDAO
Parameters:
nId - The identifier of the style
plugin - The plugin
Returns:
the instance of the Style

delete

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

Specified by:
delete in interface IWidgetStyleDAO
Parameters:
nStyleId - The identifier of the style
plugin - The plugin

store

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

Specified by:
store in interface IWidgetStyleDAO
Parameters:
style - The reference of the style
plugin - The plugin

selectStylesList

public java.util.List<Style> selectStylesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the styles and returns them as a List

Specified by:
selectStylesList in interface IWidgetStyleDAO
Parameters:
plugin - The plugin
Returns:
The List which contains the data of all the styles


Copyright © 2012 Mairie de Paris. All Rights Reserved.