Class DocumentAutoPublicationDAO
java.lang.Object
fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublicationDAO
- All Implemented Interfaces:
IDocumentAutoPublicationDAO
@ApplicationScoped
public class DocumentAutoPublicationDAO
extends Object
implements IDocumentAutoPublicationDAO
This class provides Data Access methods for DocumentAutoPublication objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId, int nSpaceId) Deletes records from a Document Auto Publication object identifier in the table document_auto_publicationvoiddeleteAllSpaces(int nPortletId) Delete records from a portletvoidinsert(DocumentAutoPublication documentAutoPublication) Insert a new record in the table document_auto_publicationload()Loads all data Document Auto Publicationload(int nPortletId, int nSpaceId) Loads the data of Document Auto Publication whose identifier is specified in parameterselectByPortletId(int nPortletId) Load the list of Document Auto Publication whose portlet identifier is specified in parameterselectBySpaceId(int nSpaceId) Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parametervoidstore(DocumentAutoPublication documentAutoPublication) Update the record in the table
-
Constructor Details
-
DocumentAutoPublicationDAO
public DocumentAutoPublicationDAO()
-
-
Method Details
-
delete
public void delete(int nPortletId, int nSpaceId) Deletes records from a Document Auto Publication object identifier in the table document_auto_publication- Specified by:
deletein interfaceIDocumentAutoPublicationDAO- Parameters:
nPortletId- the portlet identifiernSpaceId- theDocumentSpaceidentifier
-
deleteAllSpaces
public void deleteAllSpaces(int nPortletId) Delete records from a portlet- Specified by:
deleteAllSpacesin interfaceIDocumentAutoPublicationDAO- Parameters:
nPortletId- the portlet identifier
-
insert
Insert a new record in the table document_auto_publication- Specified by:
insertin interfaceIDocumentAutoPublicationDAO- Parameters:
documentAutoPublication- the instance of the DocumentAutoPublication object to insert
-
load
Loads the data of Document Auto Publication whose identifier is specified in parameter- Specified by:
loadin interfaceIDocumentAutoPublicationDAO- Parameters:
nPortletId- ThePortletidentifiernSpaceId- TheDocumentSpaceidentifier- Returns:
- The
DocumentAutoPublicationobject
-
load
Loads all data Document Auto Publication- Specified by:
loadin interfaceIDocumentAutoPublicationDAO- Returns:
- The
CollectionofDocumentAutoPublicationobject
-
selectByPortletId
Load the list of Document Auto Publication whose portlet identifier is specified in parameter- Specified by:
selectByPortletIdin interfaceIDocumentAutoPublicationDAO- Parameters:
nPortletId- ThePortletidentifier- Returns:
- The
DocumentAutoPublicationobject
-
selectBySpaceId
Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parameter- Specified by:
selectBySpaceIdin interfaceIDocumentAutoPublicationDAO- Parameters:
nSpaceId- TheDocumentSpaceidentifier- Returns:
- The
DocumentAutoPublicationobject
-
store
Update the record in the table- Specified by:
storein interfaceIDocumentAutoPublicationDAO- Parameters:
documentAutoPublication- The DocumentAutoPublication to update
-