com.pushtotest.tool.dpl.provided
Class RDBMSDPL

java.lang.Object
  extended by com.pushtotest.tool.dpl.provided.RDBMSDPL
All Implemented Interfaces:
DataProduction

public class RDBMSDPL
extends java.lang.Object
implements DataProduction


Constructor Summary
RDBMSDPL()
           
 
Method Summary
 java.lang.String[] getData()
          Obtains the current data.
 java.lang.String[] getDataByIndex(int index)
          Returns the data at a particular position
 java.lang.String[] getNextData()
          Returns the actual pointer data, and moves the pointer to the next position.
 java.lang.String[] getRandomData()
          Returns data from a random pointer position.
 void setup()
          Non-Arguments Setup in case User calls a without arguments
 void setup(java.lang.String connector, java.lang.String url, java.lang.String login, java.lang.String password, java.lang.String query)
           
 void tearDown()
          Cleans up
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSDPL

public RDBMSDPL()
Method Detail

setup

public void setup()
           throws DPLException
Description copied from interface: DataProduction
Non-Arguments Setup in case User calls a without arguments

Specified by:
setup in interface DataProduction
Throws:
DPLException

setup

public void setup(java.lang.String connector,
                  java.lang.String url,
                  java.lang.String login,
                  java.lang.String password,
                  java.lang.String query)
           throws DPLException
Throws:
DPLException

getData

public java.lang.String[] getData()
Description copied from interface: DataProduction
Obtains the current data. It will return the data of the actual pointer without moving it.

Specified by:
getData in interface DataProduction
Returns:
Current Data

getRandomData

public java.lang.String[] getRandomData()
Description copied from interface: DataProduction
Returns data from a random pointer position.

Specified by:
getRandomData in interface DataProduction
Returns:
Data from Random position

getNextData

public java.lang.String[] getNextData()
Description copied from interface: DataProduction
Returns the actual pointer data, and moves the pointer to the next position. If the position is the last one, pointer is moved to the first position.

Specified by:
getNextData in interface DataProduction
Returns:
Current Data

getDataByIndex

public java.lang.String[] getDataByIndex(int index)
Description copied from interface: DataProduction
Returns the data at a particular position

Specified by:
getDataByIndex in interface DataProduction
Parameters:
index - Data Position to return
Returns:
Data at indicated position

tearDown

public void tearDown()
Description copied from interface: DataProduction
Cleans up

Specified by:
tearDown in interface DataProduction