Class DbIndexWork

java.lang.Object
net.sf.basedb.core.hibernate.DbIndexWork
All Implemented Interfaces:
Work

public class DbIndexWork extends Object implements Work
A work implementation that can create, update and drop indexes on tables.
Since:
3.4
Author:
nicklas
  • Field Details

    • log

      private static final Logger log
    • metadata

      private final Metadata metadata
    • dialect

      private final Dialect dialect
    • dbEngine

      private final DbEngine dbEngine
    • isVerbose

      private final boolean isVerbose
    • silent

      private final boolean silent
    • dropIndexes

      private final boolean dropIndexes
    • updateIndexes

      private final boolean updateIndexes
    • target

      private ScriptTargetOutput target
  • Constructor Details

    • DbIndexWork

      public DbIndexWork(Metadata metadata, Dialect dialect, DbEngine dbEngine, boolean verbose, boolean silent, boolean dropIndexes, boolean updateIndexes)
  • Method Details

    • setTarget

      public void setTarget(ScriptTargetOutput target)
      Set a target for receiving information about SQL statements that are needed to create missing foreign keys and indexes.
      Since:
      3.8 and 3.11
    • execute

      public void execute(Connection connection) throws SQLException
      Specified by:
      execute in interface Work
      Throws:
      SQLException