Interface IFileDAO
-
- All Known Implementing Classes:
FileDAO
public interface IFileDAOIFileDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdFile)Delete a record from the tableintinsert(File file)Insert a new record in the table.Fileload(int nId)Load the data of the File from the tablevoidstore(File file)Update the file in the table
-
-
-
Method Detail
-
insert
int insert(File file)
Insert a new record in the table.- Parameters:
file- instance of the File object to insert- Returns:
- the id of the new file
-
load
File load(int nId)
Load the data of the File from the table- Parameters:
nId- The identifier of the file- Returns:
- the instance of the File
-
delete
void delete(int nIdFile)
Delete a record from the table- Parameters:
nIdFile- The identifier of the file
-
store
void store(File file)
Update the file in the table- Parameters:
file- instance of the File object to update
-
-