net.sourceforge.datagenerator
Class GenerateDef

java.lang.Object
  extended bynet.sourceforge.datagenerator.GenerateDef

public class GenerateDef
extends java.lang.Object

The GenerateDef class defines a set of entities to generate data for. This definition includes:

Version:
0.6
Author:
Chris Nagy

Constructor Summary
GenerateDef()
           
 
Method Summary
 void addEntity(GenerateEntityDef newEntity)
          Adds an entity definition into the set that is generated.
 void addSourceEntity(EntityDef newEntity)
          Adds an entity definition into the set that will be used as source data.
 ConnectionDef getConnectionDef()
          Returns to the connection definition.
 GenerateEntityDef[] getEntities()
          Returns the set of entity definitions to generate.
 java.io.File getLogFile()
          Returns the log file to write log messages.
 EntityDef[] getSourceEntities()
          Returns the set of entity definitions used as source data.
 void setConnectionDef(ConnectionDef newDef)
          Sets the connection definition.
 void setLogFile(java.io.File newFile)
          Sets the log file to write log messages.
 java.lang.String toString()
          Overrides Object.toString()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenerateDef

public GenerateDef()
Method Detail

setConnectionDef

public void setConnectionDef(ConnectionDef newDef)
Sets the connection definition.

Parameters:
newDef - definition of connection

getConnectionDef

public ConnectionDef getConnectionDef()
Returns to the connection definition.

Returns:
definition of connection

setLogFile

public void setLogFile(java.io.File newFile)
Sets the log file to write log messages.

Parameters:
newFile - log file

getLogFile

public java.io.File getLogFile()
Returns the log file to write log messages.

Returns:
log file

addEntity

public void addEntity(GenerateEntityDef newEntity)
Adds an entity definition into the set that is generated.

Parameters:
newEntity - entity definition to be added

addSourceEntity

public void addSourceEntity(EntityDef newEntity)
Adds an entity definition into the set that will be used as source data.

Parameters:
newEntity - entity definition

getEntities

public GenerateEntityDef[] getEntities()
Returns the set of entity definitions to generate.

Returns:
set of entity definitions

getSourceEntities

public EntityDef[] getSourceEntities()
Returns the set of entity definitions used as source data.

Returns:
set of entity definitions

toString

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