fr.paris.lutece.plugins.document.business
Interface IDocumentTypeDAO

All Known Implementing Classes:
DocumentTypeDAO

public interface IDocumentTypeDAO

Interface for DocumentType DAO


Method Summary
 boolean checkDocuments(java.lang.String strCode)
          Check if type has document
 void delete(java.lang.String strCode)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getDocumentTypeList()
          Load the Referencelist of documentTypes
 void insert(DocumentType documentType)
          Insert a new record in the table.
 DocumentType load(java.lang.String strDocumentTypeCode)
          Load the data of DocumentType from the table
 void reorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)
          Reorder attributes
 java.util.Collection<DocumentType> selectDocumentTypeList()
          Load the list of documentTypes
 void store(DocumentType documentType)
          Update the record in the table
 

Method Detail

checkDocuments

boolean checkDocuments(java.lang.String strCode)
Check if type has document

Parameters:
strCode - The code type
Returns:
bCheck the boolean

delete

void delete(java.lang.String strCode)
Delete a record from the table

Parameters:
strCode - the code type

getDocumentTypeList

fr.paris.lutece.util.ReferenceList getDocumentTypeList()
Load the Referencelist of documentTypes

Returns:
listDocumentTypes

insert

void insert(DocumentType documentType)
Insert a new record in the table.

Parameters:
documentType - The documentType object

load

DocumentType load(java.lang.String strDocumentTypeCode)
Load the data of DocumentType from the table

Parameters:
strDocumentTypeCode - the code
Returns:
the instance of the DocumentType

reorderAttributes

void reorderAttributes(int nIdAttribute1,
                       int nOrderAttribute1,
                       int nIdAttribute2,
                       int nOrderAttribute2)
Reorder attributes

Parameters:
nIdAttribute1 - the attribute order
nOrderAttribute1 - the attribute order
nIdAttribute2 - the attribute order
nOrderAttribute2 - the attribute order

selectDocumentTypeList

java.util.Collection<DocumentType> selectDocumentTypeList()
Load the list of documentTypes

Returns:
The Collection of the DocumentTypes

store

void store(DocumentType documentType)
Update the record in the table

Parameters:
documentType - The reference of documentType


Copyright © 2007 Mairie de Paris. All Rights Reserved.