Serializable
, Cloneable
, Comparable<Entity>
, Entity
public class IssueAttachment extends AbstractEntity implements Comparable<Entity>
An IssueAttachment can only belong to 1 Issue (composition).
Modifier and Type | Class | Description |
---|---|---|
static class |
IssueAttachment.OriginalFilenameComparator |
Compares 2 attachments by original filename
|
static class |
IssueAttachment.SizeComparator |
Compares 2 attachments by file size.
|
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
Modifier and Type | Field | Description |
---|---|---|
static Comparator<IssueAttachment> |
ORIGIINAL_FILENAME_COMPARATOR |
Compares 2 attachments by original filename.
|
static Comparator<IssueAttachment> |
SIZE_COMPARATOR |
Compares 2 attachments by file size.
|
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
Constructor | Description |
---|---|
IssueAttachment() |
Default constructor (required by Hibernate).
|
IssueAttachment(Issue issue,
String originalFileName) |
|
IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size) |
Convenience constructor.
|
IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size,
User user) |
Convenience constructor.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getDescription() |
|
byte[] |
getFileData() |
|
String |
getFileExtension() |
|
String |
getFileName() |
|
Issue |
getIssue() |
|
String |
getOriginalFileName() |
|
long |
getSize() |
|
String |
getType() |
|
User |
getUser() |
|
void |
setDescription(String value) |
|
void |
setFileData(byte[] value) |
|
void |
setFileName(String value) |
|
void |
setIssue(Issue issue) |
|
void |
setOriginalFileName(String fileName) |
|
void |
setSize(long size) |
|
void |
setType(String mimeType) |
|
void |
setUser(User user) |
|
String |
toString() |
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
compareTo
public static final Comparator<IssueAttachment> SIZE_COMPARATOR
public static final Comparator<IssueAttachment> ORIGIINAL_FILENAME_COMPARATOR
public IssueAttachment()
PENDING: should be private
so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
public IssueAttachment(Issue issue, String origFileName, String type, String description, long size)
public Issue getIssue()
public void setIssue(Issue issue)
public String getOriginalFileName()
public void setOriginalFileName(String fileName)
public String getType()
public void setType(String mimeType)
public String getFileName()
public void setFileName(String value)
public String getFileExtension()
public byte[] getFileData()
public void setFileData(byte[] value)
public String getDescription()
public void setDescription(String value)
public long getSize()
public void setSize(long size)
public User getUser()
public void setUser(User user)
Copyright © 2002–2019 itracker. All rights reserved.