|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.projtrack.DutyAttachment
public class DutyAttachment
Duty Attachment
This class represents objects stored as blobs at k_duties_attach table
| Field Summary | |
|---|---|
static short |
ClassId
|
| Constructor Summary | |
|---|---|
DutyAttachment()
Default constructor |
|
DutyAttachment(java.lang.String sIdDuty,
java.lang.String sNameFile,
int iSizeFile)
Constructor |
|
| Method Summary | |
|---|---|
static void |
createFromFile(JDCConnection oConn,
java.lang.String sDutyId,
java.lang.String sFilePath)
Insert attachment into k_duties_attach table |
void |
delete(JDCConnection oConn)
Remove attachment from k_duties_attach table |
static void |
delete(JDCConnection oConn,
java.lang.String sDutyId,
java.lang.String sFileName)
Remove attachment from k_dutys_attach table |
java.lang.String |
dutyId()
|
java.lang.String |
fileName()
|
byte[] |
getBytes(JDCConnection oConn)
Get stored attachment as byte array |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short ClassId
| Constructor Detail |
|---|
public DutyAttachment()
public DutyAttachment(java.lang.String sIdDuty,
java.lang.String sNameFile,
int iSizeFile)
sIdDuty - String GUID of DutysNameFile - String File NameiSizeFile - int File size in bytes| Method Detail |
|---|
public int size()
public java.lang.String fileName()
public java.lang.String dutyId()
public byte[] getBytes(JDCConnection oConn)
throws java.sql.SQLException,
java.io.IOException
oConn - JDCConnection
java.sql.SQLException
java.io.IOException
public void delete(JDCConnection oConn)
throws java.sql.SQLException
oConn - JDCConnection
java.sql.SQLException
public static void delete(JDCConnection oConn,
java.lang.String sDutyId,
java.lang.String sFileName)
throws java.sql.SQLException
oConn - JDCConnectionsDutyId - StringsFileName - String
java.sql.SQLException
public static void createFromFile(JDCConnection oConn,
java.lang.String sDutyId,
java.lang.String sFilePath)
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException,
java.lang.NullPointerException
oConn - JDCConnectionsDutyId - String GUID of Duty to which attachment belongssFilePath - String Full path to local file
java.sql.SQLException
java.io.FileNotFoundException
java.io.IOException
java.lang.NullPointerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||