net.sourceforge.datagenerator
Class GenerateEntityDef

java.lang.Object
  extended bynet.sourceforge.jdbcimporter.EntityDef
      extended bynet.sourceforge.datagenerator.GenerateEntityDef

public class GenerateEntityDef
extends EntityDef

The GenerateEntityDef defines an entity (table) that the DataGenerator will generate values for.

Version:
0.6
Author:
Chris Nagy

Field Summary
 
Fields inherited from class net.sourceforge.jdbcimporter.EntityDef
columns
 
Constructor Summary
GenerateEntityDef()
           
 
Method Summary
 GenerateColumnDef[] getColumns()
          Returns the list of columns whose values should be generated.
 int getCount()
          Returns the number of rows to generate.
 DelimiterFormatter getDelimiterFormatter()
          Returns the delimiter formatter used to format the output file.
 java.io.File getTarget()
          Returns the file containing the data generated.
 java.lang.String getTargetEncoding()
          Returns the target file's encoding (may be null).
 void setCount(int newCount)
          Sets the number of rows to generate.
 void setDelimiterFormatter(DelimiterFormatter newFormatter)
          Sets the delimiter formatter used to format rows and columns into the output file.
 void setTarget(java.io.File newTarget)
          Sets the target of the generated data.
 void setTargetEncoding(java.lang.String newTargetEncoding)
          Set the target file's encoding.
 java.lang.String toString()
          Overrides Object.toString()
 
Methods inherited from class net.sourceforge.jdbcimporter.EntityDef
addColumn, addProperty, getCatalog, getColumnCount, getColumnIterator, getProperty, getSchema, getTable, setCatalog, setSchema, setTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenerateEntityDef

public GenerateEntityDef()
Method Detail

setTarget

public void setTarget(java.io.File newTarget)
Sets the target of the generated data.

Parameters:
newTarget - the file containing the data generated.

getTarget

public java.io.File getTarget()
Returns the file containing the data generated.

Returns:
target file

setTargetEncoding

public void setTargetEncoding(java.lang.String newTargetEncoding)
Set the target file's encoding.

Parameters:
newTargetEncoding - target file's encoding charset
Since:
0.71

getTargetEncoding

public java.lang.String getTargetEncoding()
Returns the target file's encoding (may be null).

Returns:
target file's encoding charset
Since:
0.71

setCount

public void setCount(int newCount)
Sets the number of rows to generate.

Parameters:
newCount - the number of rows

getCount

public int getCount()
Returns the number of rows to generate.

Returns:
number of rows

setDelimiterFormatter

public void setDelimiterFormatter(DelimiterFormatter newFormatter)
Sets the delimiter formatter used to format rows and columns into the output file.

Parameters:
newFormatter - the delimiter formatter

getDelimiterFormatter

public DelimiterFormatter getDelimiterFormatter()
Returns the delimiter formatter used to format the output file.

Returns:
delimiter formatter

getColumns

public GenerateColumnDef[] getColumns()
Returns the list of columns whose values should be generated.

Returns:
list of column definitions

toString

public java.lang.String toString()
Overrides Object.toString()