|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--businessmodel.Defect | +--dataabstraction.PersistentDefect
PersistentDefect is the foundation of the BugTracker application, and is the class of object that is "remoted" through CORBA to the bugtracker client and servlet. This class provides the object-relational / relational-object mapping; the clients of this class' objects need not know any details regarding the storage implementation.
Field Summary | |
static java.lang.String |
DROPBYKEY
|
static java.lang.String |
GETMAXDEFECTID
|
static java.lang.String |
INSERTDEFECT
|
static java.lang.String |
QUERYBYKEY
|
static java.lang.String |
UPDATEDEFECT
|
Fields inherited from class businessmodel.Defect |
m_assignedTo,
m_changedMailList,
m_changedModules,
m_dateLastChanged,
m_dateReported,
m_defectDetails,
m_defectID,
m_defectSummary,
m_ExternalId,
m_priority,
m_product,
m_reportedBy,
m_resolutionNotes,
m_resolvedMailList,
m_severity,
m_state,
m_subsystem,
m_versionReported,
m_versionResolved |
Constructor Summary | |
PersistentDefect()
Default constructor. |
Method Summary | |
void |
commit(java.lang.String userid)
Attempt to store updates made to a defect |
void |
drop()
Drops the defect data from the relational table(s) |
void |
fetch()
Fetch the user object from the persistent store based on the user id |
protected void |
getDatabaseConnection()
This method ensures that the JDBC driver is loaded and we have a connection to the database. |
int |
getMaxDefectID()
Determines the highest number defect in database. |
void |
insert()
Inserts the defect data into the relational tables |
boolean |
rowExists()
indicates whether the defect is stored in the database or not |
void |
setPolicy(DefectPolicy policy)
sets the policy object for this defect |
boolean |
TestUnit()
TestUnit implemented to support test harness |
java.lang.String |
toString()
|
void |
update()
Updates the defect information in the relational tables |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String QUERYBYKEY
public static final java.lang.String DROPBYKEY
public static final java.lang.String INSERTDEFECT
public static final java.lang.String UPDATEDEFECT
public static final java.lang.String GETMAXDEFECTID
Constructor Detail |
public PersistentDefect()
Method Detail |
protected void getDatabaseConnection() throws java.sql.SQLException
public int getMaxDefectID() throws java.sql.SQLException
public boolean rowExists()
public void fetch() throws java.sql.SQLException
public void drop() throws java.sql.SQLException
public void insert() throws java.sql.SQLException
public void update() throws java.sql.SQLException
public void setPolicy(DefectPolicy policy)
policy
- a DefectPolicy objectpublic void commit(java.lang.String userid) throws UpdateException, AppSecurityException
userid
- the identity of the user requesting the change to be madepublic java.lang.String toString()
public boolean TestUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |