@Entity public class Attachment extends Object
| Constructor and Description |
|---|
Attachment() |
Attachment(String name) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getAddedOn() |
AttachmentContent |
getContent() |
String |
getFormattedSize() |
String |
getFormattedSize(Locale locale) |
Long |
getId() |
String |
getName() |
String |
getShortName()
When dealing with name this is the one you want most of the time
|
Long |
getSize() |
String |
getType() |
Attachment |
hardCopy()
will perform a deep copy of this Attachment.
|
void |
setAddedOn(Date addedOn) |
void |
setContent(AttachmentContent content) |
void |
setName(String name)
sets the full name (including extensions).
|
void |
setShortName(String shortName)
When dealing with names this is the one you want most of the time
|
void |
setSize(Long size) |
void |
setType(String strType) |
public Attachment()
public Attachment(String name)
public Long getId()
public AttachmentContent getContent()
public void setContent(AttachmentContent content)
public String getName()
public void setName(String name)
String - name@NotBlank public String getShortName()
public void setShortName(String shortName)
shortName - represents the filename without extensionpublic final void setType(String strType)
public final String getType()
public final void setAddedOn(Date addedOn)
public final Date getAddedOn()
public Long getSize()
public void setSize(Long size)
public String getFormattedSize()
public Attachment hardCopy()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.