|
||||||||||
| 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. |
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 IDbPageDatabaseSectionDAOdbPageDatabaseSection - The dbPageDatabaseSection object
public DbPageDatabaseSection load(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDbPageDatabaseSectionDAOnDbPageDatabaseSectionId - The identifier of DbPageDatabaseSection
public java.util.List<DbPageDatabaseSection> loadSectionsByPageId(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadSectionsByPageId in interface IDbPageDatabaseSectionDAOnDbPageId - 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 IDbPageDatabaseSectionDAOstrRoleKey - The role keyplugin - The plugin object
public void delete(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDbPageDatabaseSectionDAOnDbPageDatabaseSectionId - The DbPageDatabaseSection Id
public void store(DbPageDatabaseSection dbPageDatabaseSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDbPageDatabaseSectionDAOdbPageDatabaseSection - The reference of dbPageDatabaseSectionpublic java.util.List<DbPageDatabaseSection> selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDbPageDatabaseSectionList in interface IDbPageDatabaseSectionDAO
public int countSections(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countSections in interface IDbPageDatabaseSectionDAOnDbPageId - The id of the page
public fr.paris.lutece.util.ReferenceList selectOrderList(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOrderList in interface IDbPageDatabaseSectionDAOnPageId - 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 IDbPageDatabaseSectionDAOnPageId - The Page identifiernNewOrder - The order numbernIdSection - The Section identifier
public int selectIdByOrder(int nPageId,
int nSectionOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdByOrder in interface IDbPageDatabaseSectionDAOnPageId - The identifier of the pagenSectionOrder - The order number
public int selectMaxIdOrder(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxIdOrder in interface IDbPageDatabaseSectionDAOnPageId - The identifier of the page
public void reorderSections(int nIdSection1,
int nOrderSection1,
int nIdSection2,
int nOrderSection2,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
reorderSections in interface IDbPageDatabaseSectionDAOnIdSection1 - the section ordernOrderSection1 - the section ordernIdSection2 - the section ordernOrderSection2 - the section order
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||