Class StyleDAO
java.lang.Object
fr.paris.lutece.portal.business.style.StyleDAO
- All Implemented Interfaces:
IStyleDAO
This class provides Data Access methods for style objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckStylePortalComponent(int nPortalComponentId) Checks if a style has been created in the database with the given portal componenetvoiddelete(int nStyleId) Delete a record from the tablevoidInsert a new record in the table.load(int nStyleId) load the data of the Style whose identifier is specified in parameter from the tableReturns the list of the portal component in form of a ReferenceListselectStyleSheetList(int nStyleId) load the data of the StyleSheet which re associated to the given styleLoad the list of styles stored in the databasevoidUpdate the record in the table
-
Constructor Details
-
StyleDAO
public StyleDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
load the data of the Style whose identifier is specified in parameter from the table -
delete
public void delete(int nStyleId) Delete a record from the table -
store
Update the record in the table -
selectStylesList
Load the list of styles stored in the database- Specified by:
selectStylesListin interfaceIStyleDAO- Returns:
- The styles list in form of a Collection object
-
selectPortalComponentList
Returns the list of the portal component in form of a ReferenceList- Specified by:
selectPortalComponentListin interfaceIStyleDAO- Returns:
- the list of the portal component
-
selectStyleSheetList
load the data of the StyleSheet which re associated to the given style- Specified by:
selectStyleSheetListin interfaceIStyleDAO- Parameters:
nStyleId- The identifier of the Style- Returns:
- an instance of the Style which has been created
-
checkStylePortalComponent
public boolean checkStylePortalComponent(int nPortalComponentId) Checks if a style has been created in the database with the given portal componenet- Specified by:
checkStylePortalComponentin interfaceIStyleDAO- Parameters:
nPortalComponentId- The identifier of the portal component- Returns:
- true if a style has been created for this portal component, false otherwise
-