Interface IDocumentPublicationDAO
-
- All Known Implementing Classes:
DocumentPublicationDAO
public interface IDocumentPublicationDAOThis class porvides Data Access methods for DocumentPublicationDAO interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nPortletId, int nDocumentId)Delete records for table document_published specified by portlet id and document idvoiddeleteFromDocumentId(int nDocumentId)Delete records for table document_published specified by portlet idvoiddeleteFromPortletId(int nPortletId)Delete records for table document_published specified by portlet idvoidinsert(DocumentPublication documentPublication)Insert the documentsPublication objectDocumentPublicationselect(int nPortletId, int nDocumentId)Select theDocumentPublicationobject specified by the portlet id and document idjava.util.Collection<DocumentPublication>selectByDocumentId(int nDocumentId)Select the list ofDocumentPublicationobjects specified by the document idjava.util.Collection<DocumentPublication>selectByDocumentIdAndStatus(int nDocumentId, int nStatus)Select the list ofDocumentPublicationobjects specified by the document id and the statusjava.util.Collection<DocumentPublication>selectByPortletId(int nPortletId)Select the list ofDocumentPublicationobjects specified by the portlet idjava.util.Collection<DocumentPublication>selectByPortletIdAndStatus(int nPortletId, int nStatus)Select the list ofDocumentPublicationobjects specified by the portlet id and the statusintselectDocumentIdByOrder(int nDocumentOrder, int nPortletId)Return a document identifier in a distinct orderintselectMaxDocumentOrder(int nPortletId)Select the max order from a list ofDocumentPublicationspecified by portlet idjava.util.Collection<DocumentPublication>selectSinceDatePublishingAndStatus(java.util.Date datePublishing, int nStatus)Find the list ofDocumentPublicationobjects specified the status and published at or after the specified datevoidstore(DocumentPublication documentPublication)Update theDocumentPublicationobject
-
-
-
Method Detail
-
insert
void insert(DocumentPublication documentPublication)
Insert the documentsPublication object- Parameters:
documentPublication- The document Publication object
-
store
void store(DocumentPublication documentPublication)
Update theDocumentPublicationobject- Parameters:
documentPublication- TheDocumentPublicationobject
-
delete
void delete(int nPortletId, int nDocumentId)Delete records for table document_published specified by portlet id and document id- Parameters:
nPortletId- the portlet identifiernDocumentId- 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 theDocumentPublicationobject specified by the portlet id and document id- Parameters:
nPortletId- The portlet identifiernDocumentId- The document identifier- Returns:
- The
DocumentPublicationobject or null if the object does not exists
-
selectByPortletId
java.util.Collection<DocumentPublication> selectByPortletId(int nPortletId)
Select the list ofDocumentPublicationobjects specified by the portlet id- Parameters:
nPortletId- The portlet identifier- Returns:
- The
DocumentPublicationobjects list (empty list if no objects found)
-
selectByDocumentId
java.util.Collection<DocumentPublication> selectByDocumentId(int nDocumentId)
Select the list ofDocumentPublicationobjects specified by the document id- Parameters:
nDocumentId- The document identifier- Returns:
- The
DocumentPublicationobjects list (empty list if no objects found)
-
selectByPortletIdAndStatus
java.util.Collection<DocumentPublication> selectByPortletIdAndStatus(int nPortletId, int nStatus)
Select the list ofDocumentPublicationobjects specified by the portlet id and the status- Parameters:
nPortletId- The portlet identifiernStatus- The status- Returns:
- The
DocumentPublicationobjects list (empty list if no objects found)
-
selectByDocumentIdAndStatus
java.util.Collection<DocumentPublication> selectByDocumentIdAndStatus(int nDocumentId, int nStatus)
Select the list ofDocumentPublicationobjects specified by the document id and the status- Parameters:
nDocumentId- The document identifiernStatus- The status- Returns:
- The
DocumentPublicationobjects list (empty list if no objects found)
-
selectSinceDatePublishingAndStatus
java.util.Collection<DocumentPublication> selectSinceDatePublishingAndStatus(java.util.Date datePublishing, int nStatus)
Find the list ofDocumentPublicationobjects specified the status and published at or after the specified date- Parameters:
datePublishing- The publication datenStatus- The status- Returns:
- The
DocumentPublicationobjectsCollectionordered by documentOrder ascending. The list is empty if no objects found.
-
selectMaxDocumentOrder
int selectMaxDocumentOrder(int nPortletId)
Select the max order from a list ofDocumentPublicationspecified 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 numbernPortletId- the portlet identifier- Returns:
- The order of the Document
-
-