Interface IStyleDAO
- All Known Implementing Classes:
StyleDAO
public interface IStyleDAO
- Author:
- LEVY
-
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
-
Method Details
-
checkStylePortalComponent
boolean checkStylePortalComponent(int nPortalComponentId) Checks if a style has been created in the database with the given portal componenet- Parameters:
nPortalComponentId- The identifier of the portal component- Returns:
- true if a style has been created for this portal component, false otherwise
-
delete
void delete(int nStyleId) Delete a record from the table- Parameters:
nStyleId- the identifier of the style to delete
-
insert
Insert a new record in the table.- Parameters:
style- The Instance of the object Style
-
load
load the data of the Style whose identifier is specified in parameter from the table- Parameters:
nStyleId- The identifier of the Style- Returns:
- an instance of the Style which has been created
-
selectPortalComponentList
ReferenceList selectPortalComponentList()Returns the list of the portal component in form of a ReferenceList- Returns:
- the list of the portal component
-
selectStyleSheetList
load the data of the StyleSheet which re associated to the given style- Parameters:
nStyleId- The identifier of the Style- Returns:
- an instance of the Style which has been created
-
selectStylesList
Collection<Style> selectStylesList()Load the list of styles stored in the database- Returns:
- The styles list in form of a Collection object
-
store
Update the record in the table- Parameters:
style- The instance of the Style to update
-