|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.projtrack.Bug
Bug or Project Incident
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static short |
ClassId
|
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
Bug()
Create empty bug |
|
Bug(JDCConnection oConn,
java.lang.String sIdBug)
Load Bug from database. |
|
| Method Summary | |
void |
attachFile(JDCConnection oConn,
java.lang.String sFilePath)
Insert attachment into k_bugs_attach table |
BugAttachment[] |
attachments(JDCConnection oConn)
Get array of attachments |
boolean |
delete(JDCConnection oConn)
Delete Bug. |
static boolean |
delete(JDCConnection oConn,
java.lang.String sBugGUID)
Delete Bug. |
static java.lang.String |
getIdFromPg(JDCConnection oConn,
int iBugPg,
java.lang.String sWorkArea)
Get Bug Unique Identifier from its numeric identifier. |
static int |
getPgFromId(JDCConnection oConn,
java.lang.String sBugId)
Get Bug Numeric Identifier from Global Unique Identifier. |
void |
removeAttachment(JDCConnection oConn,
java.lang.String sFileName)
Remove attachment from k_bugs_attach table |
boolean |
store(JDCConnection oConn)
Store Bug and write its change log |
| Methods inherited from class com.knowgate.dataobjs.DBPersist |
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDecimal, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getItemMap, getItems, getShort, getString, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, load, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, setAuditTransact, setAuditUser, size, toLowerCase, toUpperCase, toXML, toXML, toXML, values |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
public static final short ClassId
| Constructor Detail |
public Bug()
public Bug(JDCConnection oConn,
java.lang.String sIdBug)
throws java.sql.SQLException
oConn - Database ConnectionsIdBug - GUID of Bug to be loaded.
java.sql.SQLException| Method Detail |
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
Delete Bug.
Calls k_sp_del_bug stored procedure.
delete in class DBPersistoConn - Database Connection
java.sql.SQLException
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
Store Bug and write its change log
This method automatically assigns a new bug number (pg_bug) if one is not supplied by calling seq_k_bugs sequence It also updates last modified date (dt_modified) and sinve v2.2 writes changes to k_bugs_changelog if that table exists
store in class DBPersistoConn - JDCConnection
java.sql.SQLException
public void attachFile(JDCConnection oConn,
java.lang.String sFilePath)
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException,
java.lang.NullPointerException
oConn - JDCConnectionsFilePath - String Full path to local file
java.sql.SQLException
java.io.FileNotFoundException
java.io.IOException
java.lang.NullPointerException
public void removeAttachment(JDCConnection oConn,
java.lang.String sFileName)
throws java.sql.SQLException
oConn - JDCConnectionsFileName - String
java.sql.SQLException
public BugAttachment[] attachments(JDCConnection oConn)
throws java.sql.SQLException
oConn - JDCConnection
java.sql.SQLException
public static boolean delete(JDCConnection oConn,
java.lang.String sBugGUID)
throws java.sql.SQLException
Delete Bug.
Typically, bugs are never deleted, but their status is changed to some definitive solved or archived condition.
oConn - Database ConnectionsBugGUID - GUID of Bug to be deleted.
java.sql.SQLException
public static int getPgFromId(JDCConnection oConn,
java.lang.String sBugId)
throws java.sql.SQLException
Get Bug Numeric Identifier from Global Unique Identifier.
Each Bug is assigned a GUID. But, as GUID are 32 characters hexadecimals string very difficult to remember, each bug is also automatically assigned to an integer identifier. The bug numeric identifier is an alternative primary key.
oConn - Database ConnectionsBugId - Bug GUID
java.sql.SQLException
public static java.lang.String getIdFromPg(JDCConnection oConn,
int iBugPg,
java.lang.String sWorkArea)
throws java.sql.SQLException
Get Bug Unique Identifier from its numeric identifier.
Each Bug is assigned a GUID. But, as GUID are 32 characters hexadecimals string very difficult to remember, each bug is also automatically assigned to an integer identifier. The bug numeric identifier is an alternative primary key.
oConn - Database ConnectioniBugPg - Bug numeric identifiersWorkArea - GUID
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||