fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl
Class DilaStyleSheetDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.business.stylesheet.dao.impl.DilaStyleSheetDAO
All Implemented Interfaces:
IDilaStyleSheetDAO, Serializable

public class DilaStyleSheetDAO
extends Object
implements IDilaStyleSheetDAO, Serializable

The Class DilaStyleSheetDAO. Gives access to "DilaStyleSheet" data.

See Also:
Serialized Form

Constructor Summary
DilaStyleSheetDAO()
           
 
Method Summary
 void create(DilaStyleSheet stylesheet)
          Creation of an instance of a Dila Stylesheet file in the database
 void doDeleteStyleSheet(Integer nIdStyleSheet)
          Delete a styleSheet.
 DilaStyleSheet findByPrimaryKey(Integer nIdStyleSheet)
          Return the dila style sheet by his id
 List<DilaStyleSheet> getDilaStyleSheetList(Integer nContentTypeId, String strStyleSheetName)
          Returns a collection of Dila StyleSheet object
 byte[] getSourceByStyleSheetId(Integer nIdStyleSheet)
          Return the source for specific stylesheet
 Integer getStyleSheetNbPerContentType(int nContentTypeId)
          Returns the number of dila stylesheets associated to the contentType specified in parameter
 void update(DilaStyleSheet stylesheet)
          Update the dila stylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DilaStyleSheetDAO

public DilaStyleSheetDAO()
Method Detail

getDilaStyleSheetList

public List<DilaStyleSheet> getDilaStyleSheetList(Integer nContentTypeId,
                                                  String strStyleSheetName)
Description copied from interface: IDilaStyleSheetDAO
Returns a collection of Dila StyleSheet object

Specified by:
getDilaStyleSheetList in interface IDilaStyleSheetDAO
Parameters:
nContentTypeId - The contentType identifier
strStyleSheetName - The Dila StyleSheet name
Returns:
A list of Dila StyleSheet object

getStyleSheetNbPerContentType

public Integer getStyleSheetNbPerContentType(int nContentTypeId)
Description copied from interface: IDilaStyleSheetDAO
Returns the number of dila stylesheets associated to the contentType specified in parameter

Specified by:
getStyleSheetNbPerContentType in interface IDilaStyleSheetDAO
Parameters:
nContentTypeId - the contentType id
Returns:
the number of dila stylesheet associated

create

public void create(DilaStyleSheet stylesheet)
Description copied from interface: IDilaStyleSheetDAO
Creation of an instance of a Dila Stylesheet file in the database

Specified by:
create in interface IDilaStyleSheetDAO
Parameters:
stylesheet - An instance of a dila stylesheet which contains the informations to store

findByPrimaryKey

public DilaStyleSheet findByPrimaryKey(Integer nIdStyleSheet)
Description copied from interface: IDilaStyleSheetDAO
Return the dila style sheet by his id

Specified by:
findByPrimaryKey in interface IDilaStyleSheetDAO
Parameters:
nIdStyleSheet - the stylesheet id
Returns:
DilaStyleSheet

update

public void update(DilaStyleSheet stylesheet)
Description copied from interface: IDilaStyleSheetDAO
Update the dila stylesheet

Specified by:
update in interface IDilaStyleSheetDAO
Parameters:
stylesheet - the stylesheet

doDeleteStyleSheet

public void doDeleteStyleSheet(Integer nIdStyleSheet)
Description copied from interface: IDilaStyleSheetDAO
Delete a styleSheet.

Specified by:
doDeleteStyleSheet in interface IDilaStyleSheetDAO
Parameters:
nIdStyleSheet - this "dilaStyleSheet" id

getSourceByStyleSheetId

public byte[] getSourceByStyleSheetId(Integer nIdStyleSheet)
Description copied from interface: IDilaStyleSheetDAO
Return the source for specific stylesheet

Specified by:
getSourceByStyleSheetId in interface IDilaStyleSheetDAO
Parameters:
nIdStyleSheet - stylesheet id
Returns:
byte[] source


Copyright © 2014 Mairie de Paris. All Rights Reserved.