public final class FileHome extends Object
Modifier and Type | Method and Description |
---|---|
static File |
create(File file)
Create an instance of the file class
|
static File |
findByPrimaryKey(int nKey)
Returns an instance of a file whose identifier is specified in parameter
|
static File |
findFile(int nIdFile,
int nIdDirectory)
Returns an instance of a file
|
static Collection<File> |
getFilesList()
Load the data of all the file objects and returns them in form of a collection
|
static Collection<Integer> |
getIdFilesList()
Load the id of all the file objects and returns them in form of a collection
|
static void |
remove(int nKey)
Remove the file whose identifier is specified in parameter
|
static File |
update(File file)
Update of the file which is specified in parameter
|
public static File create(File file)
file
- The instance of the File which contains the informations to storepublic static File update(File file)
file
- The instance of the File which contains the data to storepublic static void remove(int nKey)
nKey
- The file Idpublic static File findByPrimaryKey(int nKey)
nKey
- The file primary keypublic static File findFile(int nIdFile, int nIdDirectory)
nIdFile
- nIdDirectory
- public static Collection<File> getFilesList()
public static Collection<Integer> getIdFilesList()
Copyright © 2016 City of Paris. All rights reserved.