fr.paris.lutece.plugins.document.business.autopublication
Class DocumentAutoPublicationDAO

java.lang.Object
  extended by 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
DocumentAutoPublicationDAO()
           
 
Method Summary
 void delete(int nPortletId, int nSpaceId)
          Deletes records from a Document Auto Publication object identifier in the table document_auto_publication
 void deleteAllSpaces(int nPortletId)
          Delete records from a portlet
 void insert(DocumentAutoPublication documentAutoPublication)
          Insert a new record in the table document_auto_publication
 java.util.Collection<DocumentAutoPublication> load()
          Loads all data Document Auto Publication
 DocumentAutoPublication load(int nPortletId, int nSpaceId)
          Loads the data of Document Auto Publication whose identifier is specified in parameter
 java.util.Collection<DocumentAutoPublication> selectByPortletId(int nPortletId)
          Load the list of Document Auto Publication whose portlet identifier is specified in parameter
 java.util.Collection<DocumentAutoPublication> selectBySpaceId(int nSpaceId)
          Load the list of Document Auto Publication whose DocumentSpace identifier is specified in parameter
 void store(DocumentAutoPublication documentAutoPublication)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentAutoPublicationDAO

public DocumentAutoPublicationDAO()
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:
delete in interface IDocumentAutoPublicationDAO
Parameters:
nPortletId - the portlet identifier
nSpaceId - the DocumentSpace identifier

deleteAllSpaces

public void deleteAllSpaces(int nPortletId)
Delete records from a portlet

Specified by:
deleteAllSpaces in interface IDocumentAutoPublicationDAO
Parameters:
nPortletId - the portlet identifier

insert

public void insert(DocumentAutoPublication documentAutoPublication)
Insert a new record in the table document_auto_publication

Specified by:
insert in interface IDocumentAutoPublicationDAO
Parameters:
portlet - 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:
load in interface IDocumentAutoPublicationDAO
Parameters:
nPortletId - The Portlet identifier
nSpaceId - The DocumentSpace identifier
Returns:
The DocumentAutoPublication object

load

public java.util.Collection<DocumentAutoPublication> load()
Loads all data Document Auto Publication

Specified by:
load in interface IDocumentAutoPublicationDAO
Returns:
The Collection of DocumentAutoPublication object

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:
selectByPortletId in interface IDocumentAutoPublicationDAO
Parameters:
nPortletId - The Portlet identifier
Returns:
The DocumentAutoPublication object

selectBySpaceId

public java.util.Collection<DocumentAutoPublication> selectBySpaceId(int nSpaceId)
Load the list of Document Auto Publication whose DocumentSpace identifier is specified in parameter

Specified by:
selectBySpaceId in interface IDocumentAutoPublicationDAO
Parameters:
nSpaceId - The DocumentSpace identifier
Returns:
The DocumentAutoPublication object

store

public void store(DocumentAutoPublication documentAutoPublication)
Update the record in the table

Specified by:
store in interface IDocumentAutoPublicationDAO
Parameters:
The - DocumentAutoPublication to update


Copyright © 2010 Mairie de Paris. All Rights Reserved.