Package rife.database.queries
Class DropIndex
java.lang.Object
rife.database.queries.DropIndex
Object representation of a SQL "DROP INDEX" query.
This object may be used to dynamically construct a SQL statement in a
database-independent fashion. After it is finished, it may be executed using
DbQueryManager.executeUpdate().
Some databases, like MySQL, drop an index in the context of a table. Providing the table makes the query portable to those databases, while it simply isn't emitted for the databases that drop indexes by name alone.
- Since:
- 1.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
datasource_
-
sql_
-
excludeUnsupportedCapabilities_
protected boolean excludeUnsupportedCapabilities_
-
-
Constructor Details
-
DropIndex
-
-
Method Details
-
clear
public void clear() -
getCapabilities
public rife.database.capabilities.Capabilities getCapabilities()- Specified by:
getCapabilitiesin interfaceQuery
-
getNames
-
getTable
-
name
-
table
-
getSql
- Specified by:
getSqlin interfaceQuery- Throws:
DbQueryException
-
clone
-
getDatasource
-
getParameters
- Specified by:
getParametersin interfaceQuery
-
setExcludeUnsupportedCapabilities
public void setExcludeUnsupportedCapabilities(boolean flag) - Specified by:
setExcludeUnsupportedCapabilitiesin interfaceQuery
-
clearGenerated
protected void clearGenerated() -
toString
-