businesslogic
Class DefectFactory
java.lang.Object
|
+--businesslogic.DefectFactory
- public class DefectFactory
- extends java.lang.Object
- implements _DefectFactoryIntfOperations
Implementation of the _DefectFactoryIntfOperations interface, which is used by the
tie class generated by idltojava.
The DefectFactory, as the name implies, provides a single distributed object
through which client applications can access existing and create new defect objects
Constructor Summary |
DefectFactory(DefectPolicy thePolicy)
constructor accepts a single argument that
identifies the defect policy object |
Method Summary |
DefectIntf |
getDefect(int defectid)
Attempt to reconstitute a stored defect. |
DefectIntf |
NewDefect(java.lang.String userid)
This method provides a means of creating new defects. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
m_DefectPolicy
public DefectPolicy m_DefectPolicy
DefectFactory
public DefectFactory(DefectPolicy thePolicy)
- constructor accepts a single argument that
identifies the defect policy object
- Parameters:
thePolicy
- the defect policy object
NewDefect
public DefectIntf NewDefect(java.lang.String userid)
- This method provides a means of creating new defects.
- Specified by:
- NewDefect in interface _DefectFactoryIntfOperations
- Parameters:
userid
- identifies the id of the user; this is used by the policy object- Returns:
- returns the newly created Defect object
getDefect
public DefectIntf getDefect(int defectid)
throws NotFoundException
- Attempt to reconstitute a stored defect.
- Specified by:
- getDefect in interface _DefectFactoryIntfOperations
- Parameters:
defectid
- unique id for the defect- Throws:
- NotFoundException - thrown if the defect with the specified ID doesn't exist