fr.paris.lutece.plugins.mylutece.modules.notification.business.folder
Class FolderHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.notification.business.folder.FolderHome

public final class FolderHome
extends Object

NotificationHome


Method Summary
static int create(IFolder folder)
          Insert a new record in the table.
static List<IFolder> findAll()
          Find all folders
static IFolder findByPrimaryKey(int nIdFolder)
          Load the data from the table
static List<IFolder> findByUserGuid(String strUserGuid)
          Find folders associated to the given user guid
static int newPrimaryKey()
          Generates a new primary key
static void remove(int nIdFolder)
          Delete a record from the table
static void update(IFolder folder)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

public static int newPrimaryKey()
Generates a new primary key

Returns:
The new primary key

create

public static int create(IFolder folder)
Insert a new record in the table.

Parameters:
folder - instance of the IFolder object to insert
Returns:
the key of the newly created folder

update

public static void update(IFolder folder)
Update the record in the table

Parameters:
folder - the folder

remove

public static void remove(int nIdFolder)
Delete a record from the table

Parameters:
nIdFolder - int identifier of the folder to delete

findByPrimaryKey

public static IFolder findByPrimaryKey(int nIdFolder)
Load the data from the table

Parameters:
nIdFolder - The identifier of the folder
Returns:
The instance of the folder

findAll

public static List<IFolder> findAll()
Find all folders

Returns:
a list of IFolder

findByUserGuid

public static List<IFolder> findByUserGuid(String strUserGuid)
Find folders associated to the given user guid

Parameters:
strUserGuid - the user guid
Returns:
a list of IFolder


Copyright © 2013 Mairie de Paris. All Rights Reserved.