public interface IDocumentPublicationDAO
Modifier and Type | Method and Description |
---|---|
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 |
void insert(DocumentPublication documentPublication)
documentPublication
- The document Publication objectvoid store(DocumentPublication documentPublication)
DocumentPublication
objectdocumentPublication
- The DocumentPublication
objectvoid delete(int nPortletId, int nDocumentId)
nPortletId
- the portlet identifiernDocumentId
- the document identifiervoid deleteFromPortletId(int nPortletId)
nPortletId
- the portlet identifiervoid deleteFromDocumentId(int nDocumentId)
nDocumentId
- the document identifierDocumentPublication select(int nPortletId, int nDocumentId)
DocumentPublication
object specified by the portlet id and document idnPortletId
- The portlet identifiernDocumentId
- The document identifierDocumentPublication
object or null if the object does not existsCollection<DocumentPublication> selectByPortletId(int nPortletId)
DocumentPublication
objects specified by the portlet idnPortletId
- The portlet identifierDocumentPublication
objects list (empty list if no objects found)Collection<DocumentPublication> selectByDocumentId(int nDocumentId)
DocumentPublication
objects specified by the document idnDocumentId
- The document identifierDocumentPublication
objects list (empty list if no objects found)Collection<DocumentPublication> selectByPortletIdAndStatus(int nPortletId, int nStatus)
DocumentPublication
objects specified by the portlet id and the statusnPortletId
- The portlet identifiernStatus
- The statusDocumentPublication
objects list (empty list if no objects found)Collection<DocumentPublication> selectByDocumentIdAndStatus(int nDocumentId, int nStatus)
DocumentPublication
objects specified by the document id and the statusnDocumentId
- The document identifiernStatus
- The statusDocumentPublication
objects list (empty list if no objects found)Collection<DocumentPublication> selectSinceDatePublishingAndStatus(Date datePublishing, int nStatus)
DocumentPublication
objects specified the status and published at or after the specified datedatePublishing
- The publication datenStatus
- The statusDocumentPublication
objects Collection
ordered by documentOrder ascending. The list is empty if no objects found.int selectMaxDocumentOrder(int nPortletId)
DocumentPublication
specified by portlet idnPortletId
- the portlet identiferint selectDocumentIdByOrder(int nDocumentOrder, int nPortletId)
nDocumentOrder
- The order numbernPortletId
- the portlet identifierCopyright © 2020 City of Paris. All rights reserved.