fr.paris.lutece.plugins.document.business.publication
Interface IDocumentPublicationDAO

All Known Implementing Classes:
DocumentPublicationDAO

public interface IDocumentPublicationDAO

This class porvides Data Access methods for DocumentPublicationDAO interface


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
 java.util.Collection<DocumentPublication> selectByDocumentId(int nDocumentId)
          Select the list of DocumentPublication objects specified by the document id
 java.util.Collection<DocumentPublication> selectByDocumentIdAndStatus(int nDocumentId, int nStatus)
          Select the list of DocumentPublication objects specified by the document id and the status
 java.util.Collection<DocumentPublication> selectByPortletId(int nPortletId)
          Select the list of DocumentPublication objects specified by the portlet id
 java.util.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
 java.util.Collection<DocumentPublication> selectSinceDatePublishingAndStatus(java.util.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
 

Method Detail

insert

void insert(DocumentPublication documentPublication)
Insert the documentsPublication object

Parameters:
documentPublication - The document Publication object

store

void store(DocumentPublication documentPublication)
Update the DocumentPublication object

Parameters:
documentPublication - The DocumentPublication object

delete

void delete(int nPortletId,
            int nDocumentId)
Delete records for table document_published specified by portlet id and document id

Parameters:
nPortletId - the portlet identifier
nDocumentId - the document identifier

deleteFromPortletId

void deleteFromPortletId(int nPortletId)
Delete records for table document_published specified by portlet id

Parameters:
nPortletId - the portlet identifier

deleteFromDocumentId

void deleteFromDocumentId(int nDocumentId)
Delete records for table document_published specified by portlet id

Parameters:
nDocumentId - the document identifier

select

DocumentPublication select(int nPortletId,
                           int nDocumentId)
Select the DocumentPublication object specified by the portlet id and document id

Parameters:
nPortletId - The portlet identifier
nDocumentId - The document identifier
Returns:
The DocumentPublication object or null if the object does not exists

selectByPortletId

java.util.Collection<DocumentPublication> selectByPortletId(int nPortletId)
Select the list of DocumentPublication objects specified by the portlet id

Parameters:
nPortletId - The portlet identifier
Returns:
The DocumentPublication objects list (empty list if no objects found)

selectByDocumentId

java.util.Collection<DocumentPublication> selectByDocumentId(int nDocumentId)
Select the list of DocumentPublication objects specified by the document id

Parameters:
nDocumentId - The document identifier
Returns:
The DocumentPublication objects list (empty list if no objects found)

selectByPortletIdAndStatus

java.util.Collection<DocumentPublication> selectByPortletIdAndStatus(int nPortletId,
                                                                     int nStatus)
Select the list of DocumentPublication objects specified by the portlet id and the status

Parameters:
nPortletId - The portlet identifier
nStatus - The status
Returns:
The DocumentPublication objects list (empty list if no objects found)

selectByDocumentIdAndStatus

java.util.Collection<DocumentPublication> selectByDocumentIdAndStatus(int nDocumentId,
                                                                      int nStatus)
Select the list of DocumentPublication objects specified by the document id and the status

Parameters:
nDocumentId - The document identifier
nStatus - The status
Returns:
The DocumentPublication objects list (empty list if no objects found)

selectSinceDatePublishingAndStatus

java.util.Collection<DocumentPublication> selectSinceDatePublishingAndStatus(java.util.Date datePublishing,
                                                                             int nStatus)
Find the list of DocumentPublication objects specified the status and published at or after the specified date

Parameters:
datePublishing - The publication date
nStatus - The status
Returns:
The DocumentPublication objects Collection ordered by documentOrder ascending. The list is empty if no objects found.

selectMaxDocumentOrder

int selectMaxDocumentOrder(int nPortletId)
Select the max order from a list of DocumentPublication specified by portlet id

Parameters:
nPortletId - the portlet identifer
Returns:
The max order of document

selectDocumentIdByOrder

int selectDocumentIdByOrder(int nDocumentOrder,
                            int nPortletId)
Return a document identifier in a distinct order

Parameters:
nDocumentOrder - The order number
nPortletId - the portlet identifier
Returns:
The order of the Document


Copyright © 2009 Mairie de Paris. All Rights Reserved.