Package net.sf.basedb.core.hibernate
Class DbIndexWork
- java.lang.Object
-
- net.sf.basedb.core.hibernate.DbIndexWork
-
- All Implemented Interfaces:
org.hibernate.jdbc.Work
public class DbIndexWork extends Object implements org.hibernate.jdbc.Work
A work implementation that can create, update and drop indexes on tables.- Since:
- 3.4
- Author:
- nicklas
-
-
Field Summary
Fields Modifier and Type Field Description private DbEngine
dbEngine
private org.hibernate.dialect.Dialect
dialect
private boolean
dropIndexes
private boolean
isVerbose
private static org.slf4j.Logger
log
private org.hibernate.boot.Metadata
metadata
private boolean
silent
private org.hibernate.tool.schema.spi.ScriptTargetOutput
target
private boolean
updateIndexes
-
Constructor Summary
Constructors Constructor Description DbIndexWork(org.hibernate.boot.Metadata metadata, org.hibernate.dialect.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(org.hibernate.tool.schema.spi.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 org.hibernate.boot.Metadata metadata
-
dialect
private final org.hibernate.dialect.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 org.hibernate.tool.schema.spi.ScriptTargetOutput target
-
-
Constructor Detail
-
DbIndexWork
public DbIndexWork(org.hibernate.boot.Metadata metadata, org.hibernate.dialect.Dialect dialect, DbEngine dbEngine, boolean verbose, boolean silent, boolean dropIndexes, boolean updateIndexes)
-
-
Method Detail
-
setTarget
public void setTarget(org.hibernate.tool.schema.spi.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 interfaceorg.hibernate.jdbc.Work
- Throws:
SQLException
-
-