Package net.sf.basedb.core.hibernate
Class DbIndexWork
java.lang.Object
net.sf.basedb.core.hibernate.DbIndexWork
- All Implemented Interfaces:
Work
A work implementation that can create, update and drop indexes
on tables.
- Since:
- 3.4
- Author:
- nicklas
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DbEngine
private final Dialect
private final boolean
private final boolean
private static final Logger
private final Metadata
private final boolean
private ScriptTargetOutput
private final boolean
-
Constructor Summary
ConstructorDescriptionDbIndexWork
(Metadata metadata, Dialect dialect, DbEngine dbEngine, boolean verbose, boolean silent, boolean dropIndexes, boolean updateIndexes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Connection connection) void
setTarget
(ScriptTargetOutput target) Set a target for receiving information about SQL statements that are needed to create missing foreign keys and indexes.
-
Field Details
-
log
-
metadata
-
dialect
-
dbEngine
-
isVerbose
private final boolean isVerbose -
silent
private final boolean silent -
dropIndexes
private final boolean dropIndexes -
updateIndexes
private final boolean updateIndexes -
target
-
-
Constructor Details
-
DbIndexWork
-
-
Method Details
-
setTarget
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
- Specified by:
execute
in interfaceWork
- Throws:
SQLException
-