- All Implemented Interfaces:
IFileDAO
This class provides Data Access methods for Field objects
-
Constructor Summary
Constructors
-
Method Summary
void
Delete a record from the table
int
Insert a new record in the table.
Load the data of the File from the table
void
Update the file in the table
-
-
Method Details
-
insert
public int insert(File file)
Insert a new record in the table.
- Specified by:
insert in interface IFileDAO
- Parameters:
file - instance of the File object to insert
- Returns:
- the id of the new file
-
load
public File load(int nId)
Load the data of the File from the table
- Specified by:
load in interface IFileDAO
- Parameters:
nId - The identifier of the file
- Returns:
- the instance of the File
-
delete
public void delete(int nIdFile)
Delete a record from the table
- Specified by:
delete in interface IFileDAO
- Parameters:
nIdFile - The identifier of the file
-
store
public void store(File file)
Update the file in the table
- Specified by:
store in interface IFileDAO
- Parameters:
file - instance of the File object to update