Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.ashwood.dbutil
Class RandomSchema  view RandomSchema download RandomSchema.java

java.lang.Object
  extended byorg.objectstyle.ashwood.dbutil.RandomSchema

public class RandomSchema
extends java.lang.Object


Field Summary
private  boolean acyclic
           
private  java.lang.String catalog
           
private  int loopCount
           
private  int maxForeignKeysPerTable
           
private  int maxLoopsPerTable
           
private  int maxReferencesPerTable
           
private  java.util.Random randomizer
           
private  org.objectstyle.ashwood.graph.Digraph schemaGraph
           
private  java.lang.String schemaName
           
private  java.util.Map sequencesByTable
           
private  int tableCount
           
private  java.util.List tables
           
 
Constructor Summary
RandomSchema()
           
 
Method Summary
 void generate()
           
private  void generateAcyclicSchema()
           
private  int generateFkCountForLoop()
           
private  Table generateTable(java.lang.Integer vertex, org.objectstyle.ashwood.graph.Digraph graph)
           
 java.lang.String getCatalog()
           
 int getLoopCount()
           
 int getMaxForeignKeysPerTable()
           
 int getMaxLoopsPerTable()
           
 int getMaxReferencesPerTable()
           
 java.util.Random getRandomizer()
           
 org.objectstyle.ashwood.graph.Digraph getSchemaGraph()
           
 java.lang.String getSchemaName()
           
 java.util.Map getSequencesByTable()
           
 int getTableCount()
           
 java.util.List getTables()
           
 boolean isAcyclic()
           
 void setAcyclic(boolean acyclic)
           
 void setCatalog(java.lang.String catalog)
           
 void setLoopCount(int loopCount)
           
 void setMaxForeignKeysPerTable(int maxForeignKeysPerTable)
           
 void setMaxLoopsPerTable(int maxLoopsPerTable)
           
 void setMaxReferencesPerTable(int maxReferencesPerTable)
           
 void setRandomizer(java.util.Random randomizer)
           
 void setSchemaName(java.lang.String schemaName)
           
 void setTableCount(int tableCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acyclic

private boolean acyclic

schemaGraph

private org.objectstyle.ashwood.graph.Digraph schemaGraph

tableCount

private int tableCount

maxReferencesPerTable

private int maxReferencesPerTable

maxForeignKeysPerTable

private int maxForeignKeysPerTable

randomizer

private java.util.Random randomizer

tables

private java.util.List tables

schemaName

private java.lang.String schemaName

catalog

private java.lang.String catalog

sequencesByTable

private java.util.Map sequencesByTable

maxLoopsPerTable

private int maxLoopsPerTable

loopCount

private int loopCount
Constructor Detail

RandomSchema

public RandomSchema()
Method Detail

isAcyclic

public boolean isAcyclic()

setAcyclic

public void setAcyclic(boolean acyclic)

generate

public void generate()

generateAcyclicSchema

private void generateAcyclicSchema()

generateTable

private Table generateTable(java.lang.Integer vertex,
                            org.objectstyle.ashwood.graph.Digraph graph)

generateFkCountForLoop

private int generateFkCountForLoop()

getSchemaGraph

public org.objectstyle.ashwood.graph.Digraph getSchemaGraph()

setTableCount

public void setTableCount(int tableCount)

getTableCount

public int getTableCount()

setMaxReferencesPerTable

public void setMaxReferencesPerTable(int maxReferencesPerTable)

getMaxReferencesPerTable

public int getMaxReferencesPerTable()

setMaxForeignKeysPerTable

public void setMaxForeignKeysPerTable(int maxForeignKeysPerTable)

getMaxForeignKeysPerTable

public int getMaxForeignKeysPerTable()

setRandomizer

public void setRandomizer(java.util.Random randomizer)

getRandomizer

public java.util.Random getRandomizer()

getTables

public java.util.List getTables()

setSchemaName

public void setSchemaName(java.lang.String schemaName)

getSchemaName

public java.lang.String getSchemaName()

setCatalog

public void setCatalog(java.lang.String catalog)

getCatalog

public java.lang.String getCatalog()

getSequencesByTable

public java.util.Map getSequencesByTable()

setMaxLoopsPerTable

public void setMaxLoopsPerTable(int maxLoopsPerTable)

getMaxLoopsPerTable

public int getMaxLoopsPerTable()

setLoopCount

public void setLoopCount(int loopCount)

getLoopCount

public int getLoopCount()