@Entity
public class BinaryData
extends com.whitestein.lsps.common.VersionedAbstractEntity
Modifier and Type | Field and Description |
---|---|
static String |
DELETE_WITH_IDS
query name
|
static String |
FIND_FOR_DOCUMENT
query name
|
static String |
FIND_FOR_TODO
query name
|
Modifier | Constructor and Description |
---|---|
protected |
BinaryData()
Instantiates a new binary data entry.
|
|
BinaryData(String filename,
String description,
Blob content)
Instantiates a new binary data entry.
|
|
BinaryData(String filename,
String description,
String mime,
Blob content)
Instantiates a new binary data entry.
|
|
BinaryData(String filename,
String description,
String mime,
Blob content,
List<BinaryDataMetadata> metadata)
Instantiates a new binary data entry.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(String name,
String value)
Adds metadata.
|
Blob |
getContent()
Returns the content.
|
String |
getDescription()
Returns the description.
|
String |
getFilename()
Returns the filename.
|
Map<String,String> |
getMetadata()
Returns an unmodifiable map of binary data metadata.
|
String |
getMime()
Returns the MIME type.
|
long |
getSize()
Returns the content size.
|
void |
setDescription(String description) |
void |
setFilename(String filename) |
void |
setMime(String mime) |
public static final String DELETE_WITH_IDS
public static final String FIND_FOR_TODO
public static final String FIND_FOR_DOCUMENT
public BinaryData(String filename, String description, String mime, Blob content, List<BinaryDataMetadata> metadata)
filename
- content
- description
- mime
- metadata
- public BinaryData(String filename, String description, String mime, Blob content)
filename
- content
- description
- mime
- public BinaryData(String filename, String description, Blob content)
filename
- content
- description
- protected BinaryData()
public void addMetadata(String name, String value)
name
- value
- public Blob getContent()
public String getFilename()
public String getDescription()
public String getMime()
public long getSize()
public void setFilename(String filename)
filename
- the filename to setpublic void setDescription(String description)
description
- the description to setpublic void setMime(String mime)
mime
- the mime to setCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.