Package de.xima.fc.file
Class GenericFileDao
- java.lang.Object
-
- de.xima.fc.file.GenericFileDao
-
- All Implemented Interfaces:
IGenericFileDao
public class GenericFileDao extends Object implements IGenericFileDao
-
-
Constructor Summary
Constructors Constructor Description GenericFileDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>>
byte[]getFileData(IEntityContext ec, Class<T> clazz, long id)
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>>
byte[]getFileData(IEntityContext ec, T entity)
<E extends IFileDataEntity<?>,T extends IFileEntity<?,E>>
EgetFileDataEntity(IEntityContext ec, T entity)
<T extends IFileEntity<?,?>>
byte[]getFileEntityData(IEntityContext ec, T fileEntity)
<E extends IFileDataEntity<?>,T extends IFileProviding<?,E>>
InputStreamgetFileStream(IEntityContext ec, T entity)
<E extends IFileDataEntity<?>,T extends IFileEntity<?,E>>
TupdateFileData(IEntityContext ec, T entity, byte[] data)
-
-
-
Method Detail
-
getFileData
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getFileData(IEntityContext ec, Class<T> clazz, long id)
- Specified by:
getFileData
in interfaceIGenericFileDao
-
getFileData
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> byte[] getFileData(IEntityContext ec, T entity)
- Specified by:
getFileData
in interfaceIGenericFileDao
-
getFileEntityData
public <T extends IFileEntity<?,?>> byte[] getFileEntityData(IEntityContext ec, T fileEntity)
- Specified by:
getFileEntityData
in interfaceIGenericFileDao
-
updateFileData
public <E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> T updateFileData(IEntityContext ec, T entity, byte[] data)
- Specified by:
updateFileData
in interfaceIGenericFileDao
-
getFileDataEntity
public <E extends IFileDataEntity<?>,T extends IFileEntity<?,E>> E getFileDataEntity(IEntityContext ec, T entity)
- Specified by:
getFileDataEntity
in interfaceIGenericFileDao
-
getFileStream
public <E extends IFileDataEntity<?>,T extends IFileProviding<?,E>> InputStream getFileStream(IEntityContext ec, T entity)
- Specified by:
getFileStream
in interfaceIGenericFileDao
-
-