Package net.sf.basedb.core.hibernate
Class DbIndexWork
- java.lang.Object
-
- net.sf.basedb.core.hibernate.DbIndexWork
-
-
Field Summary
Fields Modifier and Type Field Description private DbEngine
dbEngine
private Dialect
dialect
private boolean
dropIndexes
private boolean
isVerbose
private static org.slf4j.Logger
log
private Metadata
metadata
private boolean
silent
private ScriptTargetOutput
target
private boolean
updateIndexes
-
Constructor Summary
Constructors Constructor Description DbIndexWork(Metadata metadata, Dialect dialect, DbEngine dbEngine, boolean verbose, boolean silent, boolean dropIndexes, boolean updateIndexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
log
private static final org.slf4j.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
-
-
Method Detail
-
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 interfaceWork
- Throws:
SQLException
-
-