com.ricebridge.xmlman.test
Class PerformanceTestFileMaker.RandomValueRecordProvider

java.lang.Object
  extended bycom.ricebridge.xmlman.RecordProviderSupport
      extended bycom.ricebridge.xmlman.test.PerformanceTestFileMaker.RandomValueRecordProvider
All Implemented Interfaces:
RecordProvider
Enclosing class:
PerformanceTestFileMaker

public static class PerformanceTestFileMaker.RandomValueRecordProvider
extends RecordProviderSupport

Provides random values as data for saving.


Field Summary
static char[] sChars
           
 
Fields inherited from class com.ricebridge.xmlman.RecordProviderSupport
iFieldNames
 
Constructor Summary
PerformanceTestFileMaker.RandomValueRecordProvider(long pNumRecords)
           
 
Method Summary
protected  void endProcessImpl()
          Implement this method to receive notification that the saving of XML data has ended.
protected  boolean hasNextRecordImpl()
          Return true if there are more data records to save.
 char makeRandomChar()
           
 String makeRandomString()
           
 String[] nextRecordImpl()
          Indicates that the next data record is to be saved.
protected  void startProcessImpl()
          Implement this method to receive notification that the saving of XML data is about to start.
 
Methods inherited from class com.ricebridge.xmlman.RecordProviderSupport
endProcess, hasNextRecord, nextRecord, setFieldNames, setFieldNamesImpl, setXmlSpec, setXmlSpecImpl, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sChars

public static final char[] sChars
Constructor Detail

PerformanceTestFileMaker.RandomValueRecordProvider

public PerformanceTestFileMaker.RandomValueRecordProvider(long pNumRecords)
Method Detail

startProcessImpl

protected void startProcessImpl()
Description copied from class: RecordProviderSupport
Implement this method to receive notification that the saving of XML data is about to start.

This method is optional for subclasses, as an empty implementation is provided here.

Overrides:
startProcessImpl in class RecordProviderSupport
See Also:
RecordProviderSupport.startProcess(), RecordProvider.startProcess()

endProcessImpl

protected void endProcessImpl()
Description copied from class: RecordProviderSupport
Implement this method to receive notification that the saving of XML data has ended.

This method is optional for subclasses, as an empty implementation is provided here.

Overrides:
endProcessImpl in class RecordProviderSupport
See Also:
RecordProviderSupport.endProcess(), RecordProvider.endProcess()

hasNextRecordImpl

protected boolean hasNextRecordImpl()
Description copied from class: RecordProviderSupport
Return true if there are more data records to save.

This method must be implemented by subclasses.

Specified by:
hasNextRecordImpl in class RecordProviderSupport
See Also:
RecordProviderSupport.hasNextRecord(), RecordProvider.hasNextRecord()

nextRecordImpl

public String[] nextRecordImpl()
Description copied from class: RecordProviderSupport
Indicates that the next data record is to be saved.

This method must be implemented by subclasses.

Specified by:
nextRecordImpl in class RecordProviderSupport
See Also:
RecordProviderSupport.nextRecord(), RecordProvider.nextRecord()

makeRandomChar

public char makeRandomChar()

makeRandomString

public String makeRandomString()


Copyright © 2004-2005 Ricebridge