public final class SQLFragmentDAO extends Object implements ISQLFragmentDAO
| Constructor and Description |
|---|
SQLFragmentDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(SQLFragment sQLFragment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
SQLFragment |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<SQLFragment> |
selectSQLFragmentsList(int nIdPage,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the sQLFragment objects and returns them as a List
|
void |
store(SQLFragment sQLFragment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
swapFragmentsOrder(SQLFragment fragment1,
SQLFragment fragment2,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Swap fragments order
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(SQLFragment sQLFragment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ISQLFragmentDAOsQLFragment - instance of the SQLFragment object to insertplugin - the Pluginpublic SQLFragment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ISQLFragmentDAOnKey - The identifier of the sQLFragmentplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ISQLFragmentDAOnKey - The identifier of the SQLFragment to deleteplugin - the Pluginpublic void store(SQLFragment sQLFragment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ISQLFragmentDAOsQLFragment - the reference of the SQLFragmentplugin - the Pluginpublic List<SQLFragment> selectSQLFragmentsList(int nIdPage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSQLFragmentsList in interface ISQLFragmentDAOnIdPage - The Page IDplugin - the Pluginpublic void swapFragmentsOrder(SQLFragment fragment1, SQLFragment fragment2, fr.paris.lutece.portal.service.plugin.Plugin plugin)
swapFragmentsOrder in interface ISQLFragmentDAOfragment1 - the fragment 1fragment2 - the fragment 2plugin - The pluginCopyright © 2017 City of Paris. All rights reserved.