Class DocumentAutoPublicationDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.autopublication.DocumentAutoPublicationDAO
-
- All Implemented Interfaces:
IDocumentAutoPublicationDAO
public class DocumentAutoPublicationDAO extends java.lang.Object implements IDocumentAutoPublicationDAO
This class provides Data Access methods for DocumentAutoPublication objects
-
-
Constructor Summary
Constructors Constructor Description DocumentAutoPublicationDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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_publicationjava.util.Collection<DocumentAutoPublication>load()Loads all data Document Auto PublicationDocumentAutoPublicationload(int nPortletId, int nSpaceId)Loads the data of Document Auto Publication whose identifier is specified in parameterjava.util.Collection<DocumentAutoPublication>selectByPortletId(int nPortletId)Load the list of Document Auto Publication whose portlet identifier is specified in parameterjava.util.Collection<DocumentAutoPublication>selectBySpaceId(int nSpaceId)Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parametervoidstore(DocumentAutoPublication documentAutoPublication)Update the record in the table
-
-
-
Method Detail
-
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
public void insert(DocumentAutoPublication documentAutoPublication)
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
public DocumentAutoPublication load(int nPortletId, int nSpaceId)
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
public java.util.Collection<DocumentAutoPublication> load()
Loads all data Document Auto Publication- Specified by:
loadin interfaceIDocumentAutoPublicationDAO- Returns:
- The
CollectionofDocumentAutoPublicationobject
-
selectByPortletId
public java.util.Collection<DocumentAutoPublication> selectByPortletId(int nPortletId)
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
public java.util.Collection<DocumentAutoPublication> selectBySpaceId(int nSpaceId)
Load the list of Document Auto Publication whoseDocumentSpaceidentifier is specified in parameter- Specified by:
selectBySpaceIdin interfaceIDocumentAutoPublicationDAO- Parameters:
nSpaceId- TheDocumentSpaceidentifier- Returns:
- The
DocumentAutoPublicationobject
-
store
public void store(DocumentAutoPublication documentAutoPublication)
Update the record in the table- Specified by:
storein interfaceIDocumentAutoPublicationDAO- Parameters:
documentAutoPublication- The DocumentAutoPublication to update
-
-