fr.paris.lutece.plugins.myapps.business
Class MyAppsDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.myapps.business.MyAppsDAO
All Implemented Interfaces:
IMyAppsDAO

public final class MyAppsDAO
extends java.lang.Object
implements IMyAppsDAO

This class provides Data Access methods for MyApps objects


Constructor Summary
MyAppsDAO()
           
 
Method Summary
 void delete(int nMyAppsId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.portal.service.image.ImageResource getIconResource(int nIdMyApps, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Method to fetch the icon from the database
 void insert(MyApps myApps, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 MyApps load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the myApps from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<MyApps> selectMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the myApps and returns them in form of a collection
 java.util.List<MyApps> selectMyAppsListByUser(java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the myApps belonging to a user and returns them in form of a list
 void store(MyApps myApps, 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

MyAppsDAO

public MyAppsDAO()
Method Detail

newPrimaryKey

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

Returns:
Plugin plugin

insert

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

Specified by:
insert in interface IMyAppsDAO
Parameters:
myApps - instance of the MyApps object to insert
Plugin - plugin

load

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

Specified by:
load in interface IMyAppsDAO
Parameters:
nId - The identifier of the myApps
Plugin - plugin
Returns:
the instance of the MyApps

delete

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

Specified by:
delete in interface IMyAppsDAO
Parameters:
nMyAppsId - The identifier of the myApps
Plugin - plugin

store

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

Specified by:
store in interface IMyAppsDAO
Parameters:
myApps - The reference of the myApps
Plugin - plugin

selectMyAppsList

public java.util.List<MyApps> selectMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the myApps and returns them in form of a collection

Specified by:
selectMyAppsList in interface IMyAppsDAO
Parameters:
Plugin - plugin
Returns:
The List which contains the data of all the myApps

selectMyAppsListByUser

public java.util.List<MyApps> selectMyAppsListByUser(java.lang.String strUserName,
                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the myApps belonging to a user and returns them in form of a list

Specified by:
selectMyAppsListByUser in interface IMyAppsDAO
Parameters:
strUserName - The name of the user
Plugin - plugin
Returns:
The List which contains the myApps of a user

getIconResource

public fr.paris.lutece.portal.service.image.ImageResource getIconResource(int nIdMyApps,
                                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Method to fetch the icon from the database

Specified by:
getIconResource in interface IMyAppsDAO
Parameters:
nIdMyApps - The identifier of the application
plugin - Plugin plugin
Returns:
The image resource of the icon


Copyright © 2009 Mairie de Paris. All Rights Reserved.