Java Doc for Bug.java in  » Groupware » hipergate » com » knowgate » projtrack » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » hipergate » com.knowgate.projtrack 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.knowgate.dataobjs.DBPersist
      com.knowgate.projtrack.Bug

Bug
public class Bug extends DBPersist (Code)

Bug or Project Incident


author:
   Sergio Montoro Ten
version:
   3.0


Field Summary
final public static  shortClassId
    

Constructor Summary
public  Bug()
    
public  Bug(JDCConnection oConn, String sIdBug)
     Load Bug from database.
public  Bug(JDCConnection oConn, int iPgBug, String sWorkArea)
     Load Bug from database.

Method Summary
public  voidattachFile(JDCConnection oConn, String sFilePath)
    
public  BugAttachment[]attachments(JDCConnection oConn)
    
public  BugChangeLog[]changeLog(JDCConnection oConn)
    
public  BugChangeLog[]changeLog(JDCConnection oConn, String sColumnName)
    
public  booleandelete(JDCConnection oConn)
    

Delete Bug

Calls k_sp_del_bug stored procedure.
public  booleandelete(JDCConnection oConn, Properties oCnf)
    
public static  booleandelete(JDCConnection oConn, String sBugGUID)
    

Delete Bug.

Typically, bugs are never deleted, but their status is changed to some definitive solved or archived condition.
Calls k_sp_del_bug stored procedure.
public static  booleandelete(JDCConnection oConn, String sBugGUID, Properties oCnf)
    
public static  StringgetIdFromPg(JDCConnection oConn, int iBugPg, String sWorkArea)
    

Get Bug Unique Identifier from its numeric identifier.

Each Bug is assigned a GUID.
public static  intgetPgFromId(JDCConnection oConn, String sBugId)
    

Get Bug Numeric Identifier from Global Unique Identifier.

Each Bug is assigned a GUID.
public  voidreIndex(JDCConnection oConn, Properties oCnf)
    
public  voidremoveAttachment(JDCConnection oConn, String sFileName)
    
public  booleanstore(JDCConnection oConn)
    
public  booleanstoreAndIndex(JDCConnection oConn, Properties oCnf)
    

Field Detail
ClassId
final public static short ClassId(Code)




Constructor Detail
Bug
public Bug()(Code)
Create empty bug



Bug
public Bug(JDCConnection oConn, String sIdBug) throws SQLException(Code)
Load Bug from database.
Parameters:
  oConn - Database Connection
Parameters:
  sIdBug - GUID of Bug to be loaded.
throws:
  SQLException -



Bug
public Bug(JDCConnection oConn, int iPgBug, String sWorkArea) throws SQLException(Code)
Load Bug from database.
Parameters:
  oConn - Database Connection
Parameters:
  iPgBug - int Numeric identifier of bug to be loaded
Parameters:
  sWorkArea - String GUID of WorkArea to which Bug belongs
throws:
  SQLException -
since:
   3.0




Method Detail
attachFile
public void attachFile(JDCConnection oConn, String sFilePath) throws SQLException, FileNotFoundException, IOException, NullPointerException(Code)
Insert attachment into k_bugs_attach table
Parameters:
  oConn - JDCConnection
Parameters:
  sFilePath - String Full path to local file
throws:
  SQLException -
throws:
  FileNotFoundException -
throws:
  IOException -
throws:
  NullPointerException -
since:
   3.0



attachments
public BugAttachment[] attachments(JDCConnection oConn) throws SQLException(Code)
Get array of attachments
Parameters:
  oConn - JDCConnection BugAttachment[] Array of BugAttachment objects or null if this Bug has no attachments
throws:
  SQLException -
since:
   3.0



changeLog
public BugChangeLog[] changeLog(JDCConnection oConn) throws SQLException(Code)
Get change log for all the values of a bug
Parameters:
  oConn - JDCConnection BugChangeLog[]
throws:
  SQLException -
since:
   3.0



changeLog
public BugChangeLog[] changeLog(JDCConnection oConn, String sColumnName) throws SQLException(Code)
Get change log for a column of a bug
Parameters:
  oConn - JDCConnection
Parameters:
  sColumnName - String BugChangeLog[]
throws:
  SQLException -
since:
   3.0



delete
public boolean delete(JDCConnection oConn) throws SQLException(Code)

Delete Bug

Calls k_sp_del_bug stored procedure.
Parameters:
  oConn - Database Connection boolean
throws:
  SQLException -



delete
public boolean delete(JDCConnection oConn, Properties oCnf) throws SQLException, IOException, NoSuchFieldException, IllegalAccessException(Code)

Delete Bug from database and from lucene index


Parameters:
  oConn - Database Connection
Parameters:
  oCnf - Properties containing luceneindex path boolean
throws:
  SQLException -
throws:
  IOException -
throws:
  NoSuchFieldException -
throws:
  IllegalAccessException -
since:
   3.0



delete
public static boolean delete(JDCConnection oConn, String sBugGUID) throws SQLException(Code)

Delete Bug.

Typically, bugs are never deleted, but their status is changed to some definitive solved or archived condition.
Calls k_sp_del_bug stored procedure.
Parameters:
  oConn - Database Connection
Parameters:
  sBugGUID - GUID of Bug to be deleted.
throws:
  SQLException -



delete
public static boolean delete(JDCConnection oConn, String sBugGUID, Properties oCnf) throws SQLException, IOException, NoSuchFieldException, IllegalAccessException(Code)
Delete bug from database and from Lucene index
Parameters:
  oConn - JDCConnection
Parameters:
  sBugGUID - String Bug GUID
Parameters:
  oCnf - Properties containing luceneindex path boolean
throws:
  SQLException -
throws:
  IOException -
throws:
  NoSuchFieldException -
throws:
  IllegalAccessException -
since:
   3.0



getIdFromPg
public static String getIdFromPg(JDCConnection oConn, int iBugPg, String sWorkArea) throws SQLException(Code)

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.
Parameters:
  oConn - Database Connection
Parameters:
  iBugPg - Bug numeric identifier
Parameters:
  sWorkArea - GUID Bug GUID or null if no bug with such numeric identifier is found at given WorkArea
throws:
  SQLException -
since:
   2.2



getPgFromId
public static int getPgFromId(JDCConnection oConn, String sBugId) throws SQLException(Code)

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.
Parameters:
  oConn - Database Connection
Parameters:
  sBugId - Bug GUID Bug Integer Identifier
throws:
  SQLException -



reIndex
public void reIndex(JDCConnection oConn, Properties oCnf) throws SQLException, IOException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code)
Re-index bug
Parameters:
  oConn - JDCConnection
Parameters:
  oCnf - Properties
throws:
  SQLException -
throws:
  IOException -
throws:
  ClassNotFoundException -
throws:
  NoSuchFieldException -
throws:
  IllegalAccessException -
throws:
  InstantiationException -
since:
   3.0



removeAttachment
public void removeAttachment(JDCConnection oConn, String sFileName) throws SQLException(Code)
Remove attachment from k_bugs_attach table
Parameters:
  oConn - JDCConnection
Parameters:
  sFileName - String
throws:
  SQLException -



store
public boolean store(JDCConnection oConn) throws SQLException(Code)

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
Parameters:
  oConn - JDCConnection boolean
throws:
  SQLException -



storeAndIndex
public boolean storeAndIndex(JDCConnection oConn, Properties oCnf) throws SQLException, IOException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException(Code)
Store bug and add it to a Lucene index
Parameters:
  oConn - JDCConnection
Parameters:
  oCnf - Properties containing luceneindex path boolean
throws:
  SQLException -
throws:
  IOException -
throws:
  ClassNotFoundException -
throws:
  NoSuchFieldException -
throws:
  IllegalAccessException -
throws:
  InstantiationException -
since:
   3.0



Fields inherited from com.knowgate.dataobjs.DBPersist
protected HashMap AllVals(Code)(Java Doc)
protected String sAuditCls(Code)(Java Doc)
protected String sAuditUsr(Code)(Java Doc)
protected String sTransactId(Code)(Java Doc)

Methods inherited from com.knowgate.dataobjs.DBPersist
public void allcaps(boolean bAllValuesUpperCase)(Code)(Java Doc)
public boolean allcaps()(Code)(Java Doc)
protected HashMap changelog(DBPersist oOldInstance)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public void clone(DBPersist oSource)(Code)(Java Doc)
public boolean containsKey(Object oKey) throws NullPointerException(Code)(Java Doc)
public boolean containsValue(Object oKey)(Code)(Java Doc)
public boolean delete(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public Set entrySet()(Code)(Java Doc)
public boolean exists(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public Object get(String sKey)(Code)(Java Doc)
public Object get(Object oKey) throws NullPointerException(Code)(Java Doc)
public String getAuditClassName()(Code)(Java Doc)
public Date getCreationDate(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public java.util.Date getDate(String sKey) throws ClassCastException(Code)(Java Doc)
public String getDateFormated(String sKey, String sFormat) throws ClassCastException(Code)(Java Doc)
public String getDateShort(String sKey) throws ClassCastException(Code)(Java Doc)
public String getDateTime(String sKey)(Code)(Java Doc)
public String getDateTime24(String sKey)(Code)(Java Doc)
public BigDecimal getDecimal(String sKey) throws ClassCastException, NumberFormatException(Code)(Java Doc)
public String getDecimalFormated(String sKey, String sPattern) throws ClassCastException, NumberFormatException, NullPointerException, IllegalArgumentException(Code)(Java Doc)
public double getDouble(String sKey) throws NullPointerException, NumberFormatException(Code)(Java Doc)
public String getDoubleFormated(String sKey, String sPattern) throws ClassCastException, NumberFormatException, NullPointerException, IllegalArgumentException(Code)(Java Doc)
public float getFloat(String sKey) throws NullPointerException, NumberFormatException(Code)(Java Doc)
public String getFloatFormated(String sKey, String sPattern) throws ClassCastException, NumberFormatException, NullPointerException, IllegalArgumentException(Code)(Java Doc)
public int getInt(String sKey) throws NullPointerException, NumberFormatException(Code)(Java Doc)
public Integer getInteger(String sKey) throws NumberFormatException(Code)(Java Doc)
public int getIntervalPart(String sKey, String sPart) throws NullPointerException, NumberFormatException, IllegalArgumentException(Code)(Java Doc)
public HashMap getItemMap()(Code)(Java Doc)
public Set getItems()(Code)(Java Doc)
public Money getMoney(String sKey) throws NumberFormatException(Code)(Java Doc)
public java.sql.Date getSQLDate(String sKey) throws ClassCastException(Code)(Java Doc)
public Time getSQLTime(String sKey) throws ClassCastException(Code)(Java Doc)
public short getShort(String sKey) throws java.lang.NullPointerException(Code)(Java Doc)
public String getString(String sKey) throws NullPointerException(Code)(Java Doc)
public String getStringNull(String sKey, String sDefault)(Code)(Java Doc)
public DBTable getTable()(Code)(Java Doc)
public DBTable getTable(JDCConnection oConn) throws SQLException, IllegalStateException(Code)(Java Doc)
public String getTableName()(Code)(Java Doc)
public String getTime(String sKey) throws ClassCastException(Code)(Java Doc)
public Time getTimeOfDay(String sKey)(Code)(Java Doc)
public Timestamp getTimestamp(String sKey)(Code)(Java Doc)
protected static String getUIdFromName(JDCConnection oConn, Integer iDomainId, String sInstanceNm, String sStoredProc) throws SQLException(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public boolean isNull(String sKey)(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
public Set keySet()(Code)(Java Doc)
public boolean load(JDCConnection oConn, Object[] PKVals) throws SQLException(Code)(Java Doc)
public boolean load(JDCConnection oConn, String sKey) throws SQLException(Code)(Java Doc)
public void parseXML(String sXMLFilePath) throws SAXException, SAXNotRecognizedException, SAXNotSupportedException, SAXParseException, IOException, ClassNotFoundException, IllegalAccessException, InstantiationException(Code)(Java Doc)
public void put(String sKey, String sVal) throws NullPointerException(Code)(Java Doc)
public void put(String sKey, Object oObj) throws NullPointerException(Code)(Java Doc)
public Object put(Object sKey, Object oObj) throws NullPointerException(Code)(Java Doc)
public void put(String sKey, int iVal)(Code)(Java Doc)
public void put(String sKey, short iVal)(Code)(Java Doc)
public void put(String sKey, Date dtVal)(Code)(Java Doc)
public void put(String sKey, Time tmVal)(Code)(Java Doc)
public void put(String sKey, String sDate, SimpleDateFormat oPattern) throws ParseException(Code)(Java Doc)
public void put(String sKey, double dVal)(Code)(Java Doc)
public void put(String sKey, BigDecimal oDecVal)(Code)(Java Doc)
public void put(String sKey, String sDecVal, DecimalFormat oPattern) throws ParseException(Code)(Java Doc)
public void put(String sKey, float fVal)(Code)(Java Doc)
public void put(String sKey, Money mVal)(Code)(Java Doc)
public void put(String sKey, File oFile) throws FileNotFoundException(Code)(Java Doc)
public void put(String sKey, byte[] aBytes)(Code)(Java Doc)
public void put(String sKey, char[] aChars)(Code)(Java Doc)
public void put(String sKey, String sData, int iSQLType) throws FileNotFoundException, IllegalArgumentException, NullPointerException(Code)(Java Doc)
public void putAll(Properties oPropsCollection) throws FileNotFoundException(Code)(Java Doc)
public void putAll(Map oMap)(Code)(Java Doc)
public void remove(String sKey)(Code)(Java Doc)
public Object remove(Object oKey)(Code)(Java Doc)
public void replace(String sKey, Object oObj)(Code)(Java Doc)
public void replace(String sKey, int iVal)(Code)(Java Doc)
public void replace(String sKey, short iVal)(Code)(Java Doc)
public void replace(String sKey, float fVal)(Code)(Java Doc)
public void setAuditTransact(String sAuditTransact)(Code)(Java Doc)
public void setAuditUser(String sAuditUser)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public boolean store(JDCConnection oConn) throws SQLException(Code)(Java Doc)
public void toLowerCase(String sKey)(Code)(Java Doc)
public void toUpperCase(String sKey)(Code)(Java Doc)
protected String toXML(String sIdent, String sDelim, HashMap oAttrs) throws IllegalStateException(Code)(Java Doc)
public String toXML(String sIdent, String sDelim) throws IllegalStateException(Code)(Java Doc)
public String toXML(String sIdent)(Code)(Java Doc)
public String toXML()(Code)(Java Doc)
public Collection values()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.