|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.dbpage.business.DbPageDatabaseSectionDAO
public final class DbPageDatabaseSectionDAO
This class provides Data Access methods for DbPageDatabaseSection objects
Constructor Summary | |
---|---|
DbPageDatabaseSectionDAO()
|
Method Summary | |
---|---|
int |
countSections(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculates the number of sections in a page |
void |
delete(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
getModifySectionOrder(int nPageId,
int nNewOrder,
int nIdSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a section |
void |
insert(DbPageDatabaseSection dbPageDatabaseSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
boolean |
isSectionInPage(java.lang.String strPageName,
java.lang.String strSectionTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculates the number of section having the same title |
DbPageDatabaseSection |
load(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DbPageDatabaseSection from the table |
java.util.List<DbPageDatabaseSection> |
loadSectionsByPageId(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the sections related to a page |
java.util.Collection<DbPageDatabaseSection> |
loadSectionsByRoleKey(java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
This method is used to find the sections of a dbpage |
void |
reorderSections(int nIdSection1,
int nOrderSection1,
int nIdSection2,
int nOrderSection2,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.util.List<DbPageDatabaseSection> |
selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of dbPageDatabaseSections by page |
int |
selectIdByOrder(int nPageId,
int nSectionOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the identifier of a section in a distinct order |
int |
selectMaxIdOrder(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the highest order on a page |
fr.paris.lutece.util.ReferenceList |
selectOrderList(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of orders |
void |
store(DbPageDatabaseSection dbPageDatabaseSection,
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 DbPageDatabaseSectionDAO()
Method Detail |
---|
public void insert(DbPageDatabaseSection dbPageDatabaseSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IDbPageDatabaseSectionDAO
dbPageDatabaseSection
- The dbPageDatabaseSection objectplugin
- The pluginpublic DbPageDatabaseSection load(int nDbPageDatabaseSectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageDatabaseSectionId
- The identifier of DbPageDatabaseSection
public java.util.List<DbPageDatabaseSection> loadSectionsByPageId(int nDbPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadSectionsByPageId
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageId
- The identifier of DbPageDatabase
public java.util.Collection<DbPageDatabaseSection> loadSectionsByRoleKey(java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadSectionsByRoleKey
in interface IDbPageDatabaseSectionDAO
strRoleKey
- The role keyplugin
- The plugin object
public void delete(int nDbPageDatabaseSectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageDatabaseSectionId
- The DbPageDatabaseSection Idpublic void store(DbPageDatabaseSection dbPageDatabaseSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IDbPageDatabaseSectionDAO
plugin
- The plugindbPageDatabaseSection
- The reference of dbPageDatabaseSectionpublic java.util.List<DbPageDatabaseSection> selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDbPageDatabaseSectionList
in interface IDbPageDatabaseSectionDAO
plugin
- The plugin
public int countSections(int nDbPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countSections
in interface IDbPageDatabaseSectionDAO
nDbPageId
- The id of the pageplugin
- The plugin
public boolean isSectionInPage(java.lang.String strPageName, java.lang.String strSectionTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isSectionInPage
in interface IDbPageDatabaseSectionDAO
nDbPageId
- The id of the pageplugin
- The plugin
public fr.paris.lutece.util.ReferenceList selectOrderList(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOrderList
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnPageId
- The identifier of the page
public void getModifySectionOrder(int nPageId, int nNewOrder, int nIdSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getModifySectionOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The Page identifiernNewOrder
- The order numbernIdSection
- The Section identifierplugin
- The pluginpublic int selectIdByOrder(int nPageId, int nSectionOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdByOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The identifier of the pagenSectionOrder
- The order numberplugin
- The plugin
public int selectMaxIdOrder(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxIdOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The identifier of the pageplugin
- The plugin
public void reorderSections(int nIdSection1, int nOrderSection1, int nIdSection2, int nOrderSection2, fr.paris.lutece.portal.service.plugin.Plugin plugin)
reorderSections
in interface IDbPageDatabaseSectionDAO
nIdSection1
- the section ordernOrderSection1
- the section ordernIdSection2
- the section ordernOrderSection2
- the section orderplugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |