public final class StyleSheetHome extends Object
Modifier and Type | Method and Description |
---|---|
static StyleSheet |
create(StyleSheet stylesheet)
Creation of an instance of a Stylesheet file in the database
|
static StyleSheet |
findByPrimaryKey(int nKey)
Returns an instance of a stylesheet file whose identifier is specified in parameter
|
static Collection<StyleSheet> |
getStyleSheetList(int nModeId)
Returns a collection of StyleSheet objet
|
static int |
getStyleSheetNbPerStyleMode(int nStyleId,
int nModeId)
Returns the number of stylesheets associated to the style and the mode specified in parameter
|
static void |
remove(int nId)
Deletes the StylesSheet whose identifier is specified in parameter
|
static void |
update(StyleSheet stylesheet)
Update the StylesSheet whose identifier is specified in parameter
|
public static StyleSheet create(StyleSheet stylesheet)
stylesheet
- An instance of a stylesheet which contains the informations to storepublic static void remove(int nId)
nId
- the identifier of the stylesheet to deletepublic static void update(StyleSheet stylesheet)
stylesheet
- the stylesheet to updatepublic static StyleSheet findByPrimaryKey(int nKey)
nKey
- the stylesheet primary keypublic static int getStyleSheetNbPerStyleMode(int nStyleId, int nModeId)
nStyleId
- the style idnModeId
- the mode idpublic static Collection<StyleSheet> getStyleSheetList(int nModeId)
nModeId
- The mode identifierCopyright © 2020 City of Paris. All rights reserved.