fr.paris.lutece.plugins.links.business
Interface ILinkDAO

All Known Implementing Classes:
LinkDAO

public interface ILinkDAO


Method Summary
 void delete(int nLinkId)
          Delete a record from the table
 void insert(Link link)
          Insert a new record in the table.
 Link load(int nLinkId)
          Load the data of link from the table
 fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nIdLink)
          Load a image corresponding to an Link
 int newPrimaryKey()
          Calculate a new primary key to add a new record
 java.util.Collection<Link> selectByPortlet(int nIdPortlet)
          load all the links registered in a specified portlet
 java.util.Collection<Link> selectList()
          Returns a list of all the links
 void store(Link link)
          Update the record in the table
 

Method Detail

insert

void insert(Link link)
Insert a new record in the table.

Parameters:
link - The instance of link object

delete

void delete(int nLinkId)
Delete a record from the table

Parameters:
nLinkId - The indentifier of the link object

load

Link load(int nLinkId)
Load the data of link from the table

Parameters:
nLinkId - The indentifier of the link object
Returns:
An instance of link object

store

void store(Link link)
Update the record in the table

Parameters:
link - The instance of link object

newPrimaryKey

int newPrimaryKey()
Calculate a new primary key to add a new record

Returns:
The new key.

selectList

java.util.Collection<Link> selectList()
Returns a list of all the links

Returns:
A collection of links objects

selectByPortlet

java.util.Collection<Link> selectByPortlet(int nIdPortlet)
load all the links registered in a specified portlet

Parameters:
nIdPortlet - The identifier of the portlet
Returns:
A collection of Links objects

loadImageResource

fr.paris.lutece.portal.service.image.ImageResource loadImageResource(int nIdLink)
Load a image corresponding to an Link

Parameters:
nIdLink - The Link Id
Returns:
the instance of the ImageContent


Copyright © 2008 Mairie de Paris. All Rights Reserved.