|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.business.publication.DocumentPublicationDAO
public class DocumentPublicationDAO
This class provides Data Access methods for DocumentPublication objects
| Constructor Summary | |
|---|---|
DocumentPublicationDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nPortletId,
int nDocumentId)
Delete records for table document_published specified by portlet id and document id |
void |
deleteFromDocumentId(int nDocumentId)
Delete records for table document_published specified by portlet id |
void |
deleteFromPortletId(int nPortletId)
Delete records for table document_published specified by portlet id |
void |
insert(DocumentPublication documentPublication)
Insert the documentsPublication object |
DocumentPublication |
select(int nPortletId,
int nDocumentId)
Select the DocumentPublication object specified by the portlet id and document id |
Collection<DocumentPublication> |
selectByDocumentId(int nDocumentId)
Select the list of DocumentPublication objects specified by the document id |
Collection<DocumentPublication> |
selectByDocumentIdAndStatus(int nDocumentId,
int nStatus)
Select the list of DocumentPublication objects specified by the document id and the status |
Collection<DocumentPublication> |
selectByPortletId(int nPortletId)
Select the list of DocumentPublication objects specified by the portlet id |
Collection<DocumentPublication> |
selectByPortletIdAndStatus(int nPortletId,
int nStatus)
Select the list of DocumentPublication objects specified by the portlet id and the status |
int |
selectDocumentIdByOrder(int nDocumentOrder,
int nPortletId)
Return a document identifier in a distinct order |
int |
selectMaxDocumentOrder(int nPortletId)
Select the max order from a list of DocumentPublication specified by portlet id |
Collection<DocumentPublication> |
selectSinceDatePublishingAndStatus(Date datePublishing,
int nStatus)
Find the list of DocumentPublication objects specified the status and published at or after the specified date |
void |
store(DocumentPublication documentPublication)
Update the DocumentPublication object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentPublicationDAO()
| Method Detail |
|---|
public void insert(DocumentPublication documentPublication)
insert in interface IDocumentPublicationDAOdocumentPublication - The document Publication objectpublic void store(DocumentPublication documentPublication)
DocumentPublication object
store in interface IDocumentPublicationDAOdocumentPublication - The DocumentPublication object
public void delete(int nPortletId,
int nDocumentId)
delete in interface IDocumentPublicationDAOnPortletId - the portlet identifiernDocumentId - the document identifierpublic void deleteFromPortletId(int nPortletId)
deleteFromPortletId in interface IDocumentPublicationDAOnPortletId - the portlet identifierpublic void deleteFromDocumentId(int nDocumentId)
deleteFromDocumentId in interface IDocumentPublicationDAOnDocumentId - the document identifier
public DocumentPublication select(int nPortletId,
int nDocumentId)
DocumentPublication object specified by the portlet id and document id
select in interface IDocumentPublicationDAOnPortletId - The portlet identifiernDocumentId - The document identifier
DocumentPublication object or null if the object does not existspublic Collection<DocumentPublication> selectByPortletId(int nPortletId)
DocumentPublication objects specified by the portlet id
selectByPortletId in interface IDocumentPublicationDAOnPortletId - The portlet identifier
DocumentPublication objects list (empty list if no objects found)public Collection<DocumentPublication> selectByDocumentId(int nDocumentId)
DocumentPublication objects specified by the document id
selectByDocumentId in interface IDocumentPublicationDAOnDocumentId - The document identifier
DocumentPublication objects list (empty list if no objects found)
public Collection<DocumentPublication> selectByPortletIdAndStatus(int nPortletId,
int nStatus)
DocumentPublication objects specified by the portlet id and the status
selectByPortletIdAndStatus in interface IDocumentPublicationDAOnPortletId - The portlet identifiernStatus - The status
DocumentPublication objects list (empty list if no objects found)
public Collection<DocumentPublication> selectByDocumentIdAndStatus(int nDocumentId,
int nStatus)
DocumentPublication objects specified by the document id and the status
selectByDocumentIdAndStatus in interface IDocumentPublicationDAOnDocumentId - The document identifiernStatus - The status
DocumentPublication objects list (empty list if no objects found)
public Collection<DocumentPublication> selectSinceDatePublishingAndStatus(Date datePublishing,
int nStatus)
DocumentPublication objects specified the status and published at or after the specified date
selectSinceDatePublishingAndStatus in interface IDocumentPublicationDAOdatePublishing - The publication datenStatus - The status
DocumentPublication objects Collection ordered by documentOrder ascending. The list is empty if no objects found.public int selectMaxDocumentOrder(int nPortletId)
DocumentPublication specified by portlet id
selectMaxDocumentOrder in interface IDocumentPublicationDAOnPortletId - the portlet identifer
public int selectDocumentIdByOrder(int nDocumentOrder,
int nPortletId)
selectDocumentIdByOrder in interface IDocumentPublicationDAOnDocumentOrder - The order numbernPortletId - the portlet identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||