Package ru.bgcrm.model
Class FileData
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.model.base.IdTitle
ru.bgcrm.model.FileData
DB table entity with file metadata: ID, title, upload time.
Files themselves are persisted in filestorage directory.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
getTime()
static String
void
setData
(byte[] data) void
setOutputStream
(OutputStream outputStream) void
void
-
Constructor Details
-
FileData
public FileData() -
FileData
-
FileData
-
-
Method Details
-
getSecret
-
setSecret
-
getTime
-
setTime
-
getData
public byte[] getData() -
setData
public void setData(byte[] data) -
getOutputStream
- Returns:
- output stream to the stored file.
-
setOutputStream
-
serialize
-
parse
-