com.rational.test.vp
Class DatabaseVPDataProvider
java.lang.Object
|
+--com.rational.test.vp.DatabaseVPDataProvider
- All Implemented Interfaces:
- VerificationPointDataProvider
- public class DatabaseVPDataProvider
- extends java.lang.Object
- implements VerificationPointDataProvider
DatabaseVPDataProvider
provides the link between the
DatabaseVP
class and the DatabaseVPData
class.
This class can create and populate a
DatabaseVPData
object based on the metadata
in the DatabaseVP
object. It does so by:
- Connecting to the database
- Creating a statement and connection (if necessary)
- Executing the specified SQL statement
- Building the
DatabaseVPData
object from the
resulting recordset
This class is used with static
verification points (for building expected and actual data objects)
and with dynamic verification
points (for building actual data objects only).
- Since:
- QualityArchitect 0.1
- See Also:
DatabaseVP
,
DatabaseVPData
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseVPDataProvider
public DatabaseVPDataProvider()
captureData
public VerificationPointData captureData(java.lang.Object theObject,
VerificationPoint VP)
This method builds a VerificationPointData
object.
The method builds the object according to
the metadata in the VerificationPoint
class.
- Specified by:
captureData
in interface VerificationPointDataProvider
- Parameters:
theObject
- For database verification points,
pass null
in this parameter.theVP
- The Verification Point object that contains
the verification point's metadata.
Rational QualityArchitect/Java Support Home Page
Copyright (c) 2000, Rational Software Corporation