Class DbFill

java.lang.Object
org.jumpmind.symmetric.io.data.DbFill

public class DbFill extends Object
Generate data for populating databases.
  • Field Details

  • Constructor Details

  • Method Details

    • fillTables

      public void fillTables(String... tableNames)
    • fillTables

      public void fillTables(String[] tableNames, Map<String,DmlWeight> tableProperties)
    • removeSymTables

      protected List<Table> removeSymTables(List<Table> tables)
    • toString

      protected String toString(List<Table> tables)
    • buildForeignTables

      protected void buildForeignTables(List<Table> tables)
    • buildForeignKeyReferences

      protected void buildForeignKeyReferences(List<Table> tables)
    • buildDependentColumnValues

      protected void buildDependentColumnValues(List<Table> tables)
    • buildMinColumnSizes

      protected void buildMinColumnSizes(List<Table> tables)
    • buildMinColumnSize

      protected int buildMinColumnSize(Table table, Column column, Set<String> relatedTableColumns, Integer minSize)
      For the table and column passed in, traverse all the foreign key references to find the smallest size defined for the column.
    • getForeignKeyTables

      protected List<Table> getForeignKeyTables(List<Table> tables, Set<Table> visited)
      Identify the tables not included in the given list that the initial tables have FK relationships to.
      Parameters:
      tables -
      Returns:
      The table array argument and the tables that the initial table array argument depend on.
    • getForeignKeyTablesReversed

      protected List<Table> getForeignKeyTablesReversed(List<Table> tables, Set<Table> visited)
    • createDynamicRandomInsertSql

      public String createDynamicRandomInsertSql(Table table)
    • createDynamicRandomUpdateSql

      public String createDynamicRandomUpdateSql(Table table)
    • createDynamicRandomDeleteSql

      public String createDynamicRandomDeleteSql(Table table)
    • getSchemaToUse

      public String getSchemaToUse()
    • getCatalogToUse

      public String getCatalogToUse()
    • getLocalFkRefColumns

      protected List<String> getLocalFkRefColumns(Table table)
    • getAllDbTables

      protected Map<String,Table> getAllDbTables()
    • getDbTable

      protected Table getDbTable(String catalogName, String schemaName, String tableName)
    • filterColumns

      protected Table filterColumns(Table table)
    • createInsertDmlStatement

      public DmlStatement createInsertDmlStatement(Table table)
    • createUpdateDmlStatement

      public DmlStatement createUpdateDmlStatement(Table table)
    • createDeleteDmlStatement

      public DmlStatement createDeleteDmlStatement(Table table)
    • setPlatform

      public void setPlatform(IDatabasePlatform platform)
    • getRecordCount

      public int getRecordCount()
    • setRecordCount

      public void setRecordCount(int recordCount)
    • setCatalog

      public void setCatalog(String catalog)
    • setSchema

      public void setSchema(String schema)
    • isCascading

      public boolean isCascading()
    • setCascading

      public void setCascading(boolean cascading)
    • isCascadingSelect

      public boolean isCascadingSelect()
    • setCascadingSelect

      public void setCascadingSelect(boolean cascadingSelect)
    • isTruncate

      public boolean isTruncate()
    • setTruncate

      public void setTruncate(boolean truncate)
    • getIgnore

      public String[] getIgnore()
    • setIgnore

      public void setIgnore(String[] ignore)
    • getPrefixed

      public String[] getPrefixed()
    • setPrefixed

      public void setPrefixed(String[] prefixed)
    • getInterval

      public int getInterval()
    • setInterval

      public void setInterval(int interval)
    • getRand

      public SecureRandom getRand()
    • setDebug

      public void setDebug(boolean debug)
    • setVerbose

      public void setVerbose(boolean verbose)
    • setDmlWeight

      public void setDmlWeight(DmlWeight dmlWeight)
    • setContinueOnError

      public void setContinueOnError(boolean continueOnError)
    • setPrint

      public void setPrint(boolean print)
    • getPrint

      public boolean getPrint()
    • setUseRandomCount

      public void setUseRandomCount(boolean useRandomCount)
    • setRepeat

      public void setRepeat(int repeat)
    • setMaxRowsCommit

      public void setMaxRowsCommit(int maxRowsCommit)
    • setCommitDelay

      public void setCommitDelay(int commitDelay)
    • setPercentRollback

      public void setPercentRollback(int percentRollback)
    • getInsertWeight

      public int getInsertWeight()
    • getUpdateWeight

      public int getUpdateWeight()
    • getDeleteWeight

      public int getDeleteWeight()
    • setTextColumnExpression

      public void setTextColumnExpression(String textColumnExpression)
    • getTextColumnExpression

      public String getTextColumnExpression()
    • getMaxByteSize

      public long getMaxByteSize()
    • setMaxByteSize

      public void setMaxByteSize(int maxByteSize)
    • getMaxTextSize

      public int getMaxTextSize()
    • setMaxTextSize

      public void setMaxTextSize(int maxTextSize)