public class BugAttachment
extends java.lang.Object
Bug Attachment
This class represents objects stored as blobs at k_bugs_attach tableModifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
BugAttachment() |
BugAttachment(java.lang.String sIdBug,
java.lang.String sNameFile,
int iSizeFile) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
bugId() |
static void |
createFromFile(JDCConnection oConn,
java.lang.String sBugId,
java.lang.String sFilePath)
Insert attachment into k_bugs_attach table
|
void |
delete(JDCConnection oConn)
Remove attachment from k_bugs_attach table
|
static void |
delete(JDCConnection oConn,
java.lang.String sBugId,
java.lang.String sFileName)
Remove attachment from k_bugs_attach table
|
java.lang.String |
fileName() |
byte[] |
getBytes(JDCConnection oConn) |
int |
size() |
public static final short ClassId
public BugAttachment()
public BugAttachment(java.lang.String sIdBug, java.lang.String sNameFile, int iSizeFile)
public int size()
public java.lang.String fileName()
public java.lang.String bugId()
public byte[] getBytes(JDCConnection oConn) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public void delete(JDCConnection oConn) throws java.sql.SQLException
oConn
- JDCConnectionjava.sql.SQLException
public static void delete(JDCConnection oConn, java.lang.String sBugId, java.lang.String sFileName) throws java.sql.SQLException
oConn
- JDCConnectionsBugId
- StringsFileName
- Stringjava.sql.SQLException
public static void createFromFile(JDCConnection oConn, java.lang.String sBugId, java.lang.String sFilePath) throws java.sql.SQLException, java.io.FileNotFoundException, java.io.IOException, java.lang.NullPointerException
oConn
- JDCConnectionsBugId
- String GUID of Bug to which attachment belongssFilePath
- String Full path to local filejava.sql.SQLException
java.io.FileNotFoundException
java.io.IOException
java.lang.NullPointerException