java.lang.Object
org.objectstyle.ashwood.dbutil.RandomSchema
- public class RandomSchema
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RandomSchema
public RandomSchema()
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()