private static class AttachmentColumnInfoImpl.AttachmentImpl extends ComplexColumnInfoImpl.ComplexValueImpl implements Attachment
ComplexValue.Id| Modifier and Type | Field and Description |
|---|---|
private byte[] |
_data |
private byte[] |
_encodedData |
private java.lang.Integer |
_flags |
private java.lang.String |
_name |
private java.util.Date |
_timeStamp |
private java.lang.String |
_type |
private java.lang.String |
_url |
| Modifier | Constructor and Description |
|---|---|
private |
AttachmentImpl(ComplexValue.Id id,
ComplexValueForeignKey complexValueFk,
java.lang.String url,
java.lang.String name,
java.lang.String type,
byte[] data,
java.util.Date timeStamp,
java.lang.Integer flags,
byte[] encodedData) |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
decodeData()
Decodes the raw attachment file data to get the _actual_ content.
|
void |
delete()
Deletes the data for this complex value from the database.
|
private byte[] |
encodeData()
Encodes the actual attachment file data to get the raw, stored format.
|
byte[] |
getEncodedFileData() |
byte[] |
getFileData() |
java.lang.Integer |
getFileFlags() |
java.lang.String |
getFileName() |
java.util.Date |
getFileTimeStamp() |
java.lang.String |
getFileType() |
java.lang.String |
getFileUrl() |
void |
setEncodedFileData(byte[] data) |
void |
setFileData(byte[] data) |
void |
setFileFlags(java.lang.Integer fileFlags) |
void |
setFileName(java.lang.String fileName) |
void |
setFileTimeStamp(java.util.Date fileTimeStamp) |
void |
setFileType(java.lang.String fileType) |
void |
setFileUrl(java.lang.String fileUrl) |
java.lang.String |
toString() |
void |
update()
Writes any updated data for this complex value to the database.
|
equals, getColumn, getComplexValueForeignKey, getId, hashCode, setComplexValueForeignKey, setIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetColumn, getComplexValueForeignKey, getId, setComplexValueForeignKey, setIdprivate java.lang.String _url
private java.lang.String _name
private java.lang.String _type
private byte[] _data
private java.util.Date _timeStamp
private java.lang.Integer _flags
private byte[] _encodedData
private AttachmentImpl(ComplexValue.Id id, ComplexValueForeignKey complexValueFk, java.lang.String url, java.lang.String name, java.lang.String type, byte[] data, java.util.Date timeStamp, java.lang.Integer flags, byte[] encodedData)
public byte[] getFileData()
throws java.io.IOException
getFileData in interface Attachmentjava.io.IOExceptionpublic void setFileData(byte[] data)
setFileData in interface Attachmentpublic byte[] getEncodedFileData()
throws java.io.IOException
getEncodedFileData in interface Attachmentjava.io.IOExceptionpublic void setEncodedFileData(byte[] data)
setEncodedFileData in interface Attachmentpublic java.lang.String getFileName()
getFileName in interface Attachmentpublic void setFileName(java.lang.String fileName)
setFileName in interface Attachmentpublic java.lang.String getFileUrl()
getFileUrl in interface Attachmentpublic void setFileUrl(java.lang.String fileUrl)
setFileUrl in interface Attachmentpublic java.lang.String getFileType()
getFileType in interface Attachmentpublic void setFileType(java.lang.String fileType)
setFileType in interface Attachmentpublic java.util.Date getFileTimeStamp()
getFileTimeStamp in interface Attachmentpublic void setFileTimeStamp(java.util.Date fileTimeStamp)
setFileTimeStamp in interface Attachmentpublic java.lang.Integer getFileFlags()
getFileFlags in interface Attachmentpublic void setFileFlags(java.lang.Integer fileFlags)
setFileFlags in interface Attachmentpublic void update()
throws java.io.IOException
ComplexValueupdate in interface ComplexValuejava.io.IOExceptionpublic void delete()
throws java.io.IOException
ComplexValuedelete in interface ComplexValuejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprivate byte[] decodeData()
throws java.io.IOException
java.io.IOExceptionprivate byte[] encodeData()
throws java.io.IOException
java.io.IOException