Class DocumentTypeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.DocumentTypeDAO
-
- All Implemented Interfaces:
IDocumentTypeDAO
public final class DocumentTypeDAO extends Object implements IDocumentTypeDAO
This class provides Data Access methods for DocumentType objects
-
-
Constructor Summary
Constructors Constructor Description DocumentTypeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckDocuments(String strCode)Check if type has documentvoiddelete(String strCode)Delete a record from the tablefr.paris.lutece.util.ReferenceListgetDocumentTypeList()Load the Referencelist of documentTypesvoidinsert(DocumentType documentType)Insert a new record in the table.DocumentTypeload(String strDocumentTypeCode)Load the data of DocumentType from the tablevoidreorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)Reorder attributesCollection<DocumentType>selectDocumentTypeList()Load the list of documentTypesvoidsetAdminStyleSheet(byte[] baXslAdmin, String strCodeType)Sets the admin stylesheetvoidsetContentStyleSheet(byte[] baXslContent, String strCodeType)Sets the content service stylesheetvoidstore(DocumentType documentType)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(DocumentType documentType)
Insert a new record in the table.- Specified by:
insertin interfaceIDocumentTypeDAO- Parameters:
documentType- The documentType object
-
load
public DocumentType load(String strDocumentTypeCode)
Load the data of DocumentType from the table- Specified by:
loadin interfaceIDocumentTypeDAO- Parameters:
strDocumentTypeCode- the code- Returns:
- the instance of the DocumentType
-
delete
public void delete(String strCode)
Delete a record from the table- Specified by:
deletein interfaceIDocumentTypeDAO- Parameters:
strCode- the code type
-
store
public void store(DocumentType documentType)
Update the record in the table- Specified by:
storein interfaceIDocumentTypeDAO- Parameters:
documentType- The reference of documentType
-
selectDocumentTypeList
public Collection<DocumentType> selectDocumentTypeList()
Load the list of documentTypes- Specified by:
selectDocumentTypeListin interfaceIDocumentTypeDAO- Returns:
- The Collection of the DocumentTypes
-
getDocumentTypeList
public fr.paris.lutece.util.ReferenceList getDocumentTypeList()
Load the Referencelist of documentTypes- Specified by:
getDocumentTypeListin interfaceIDocumentTypeDAO- Returns:
- listDocumentTypes
-
checkDocuments
public boolean checkDocuments(String strCode)
Description copied from interface:IDocumentTypeDAOCheck if type has document- Specified by:
checkDocumentsin interfaceIDocumentTypeDAO- Parameters:
strCode- The code type- Returns:
- bCheck the boolean
-
reorderAttributes
public void reorderAttributes(int nIdAttribute1, int nOrderAttribute1, int nIdAttribute2, int nOrderAttribute2)Description copied from interface:IDocumentTypeDAOReorder attributes- Specified by:
reorderAttributesin interfaceIDocumentTypeDAO- Parameters:
nIdAttribute1- the attribute ordernOrderAttribute1- the attribute ordernIdAttribute2- the attribute ordernOrderAttribute2- the attribute order
-
setAdminStyleSheet
public void setAdminStyleSheet(byte[] baXslAdmin, String strCodeType)Sets the admin stylesheet- Specified by:
setAdminStyleSheetin interfaceIDocumentTypeDAO- Parameters:
baXslAdmin- The stylesheetstrCodeType- The code type
-
setContentStyleSheet
public void setContentStyleSheet(byte[] baXslContent, String strCodeType)Sets the content service stylesheet- Specified by:
setContentStyleSheetin interfaceIDocumentTypeDAO- Parameters:
baXslContent- The stylesheetstrCodeType- The code type
-
-