|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mypage.business.WidgetDAO
public final class WidgetDAO
This class provides Data Access methods for Widget objects
| Constructor Summary | |
|---|---|
WidgetDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nWidgetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
insert(Widget widget,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
Widget |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the widget from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.List<Widget> |
selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the widgets and returns them as a List |
void |
store(Widget widget,
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 |
|---|
public WidgetDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(Widget widget,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IWidgetDAOwidget - instance of the Widget object to insertplugin - The plugin
public Widget load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IWidgetDAOnId - The identifier of the widgetplugin - The plugin
public void delete(int nWidgetId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IWidgetDAOnWidgetId - The identifier of the widgetplugin - The plugin
public void store(Widget widget,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IWidgetDAOwidget - The reference of the widgetplugin - The pluginpublic java.util.List<Widget> selectWidgetsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWidgetsList in interface IWidgetDAOplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||