Class JPAFilePersistor
×News: XavaPro 7.7 released - March 11 · Read more
java.lang.Object
org.openxava.web.editors.JPAFilePersistor
- All Implemented Interfaces:
IFilePersistor
An implementation of
IFilePersistor - Author:
- Jeromy Altuna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind AttachedFile by primary key.findLibrary(String libraryId) Find files belonging to a library.voidRemove the file from the storage container.voidremoveLibrary(String libraryId) Removes files belonging to a library.voidsave(AttachedFile file) Persist a File (stored somewhere).
-
Constructor Details
-
JPAFilePersistor
public JPAFilePersistor()
-
-
Method Details
-
save
Description copied from interface:IFilePersistorPersist a File (stored somewhere).This method should generate a unique identifier for the file.
- Specified by:
savein interfaceIFilePersistor- Parameters:
file- Object of classAttachedFileto be persisted- See Also:
-
remove
Description copied from interface:IFilePersistorRemove the file from the storage container.- Specified by:
removein interfaceIFilePersistor- Parameters:
id- unique identifier of the file- See Also:
-
removeLibrary
Description copied from interface:IFilePersistorRemoves files belonging to a library.- Specified by:
removeLibraryin interfaceIFilePersistor- Parameters:
libraryId- Unique identifier of the files library- See Also:
-
findLibrary
Description copied from interface:IFilePersistorFind files belonging to a library.- Specified by:
findLibraryin interfaceIFilePersistor- Parameters:
libraryId- Unique identifier of the files library- Returns:
- Collection of objects of the class
AttachedFile - See Also:
-
find
Description copied from interface:IFilePersistorFind AttachedFile by primary key.- Specified by:
findin interfaceIFilePersistor- Parameters:
id- unique identifier of the file- Returns:
- An instance of the file found or null if the file does not exist
- See Also:
-