Class DropIndex
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.DropIndex
-
- All Implemented Interfaces:
IDatabaseStatement
public class DropIndex extends java.lang.Object implements IDatabaseStatement
Drop an index from a given schema by name
-
-
Constructor Summary
Constructors Constructor Description DropIndex(java.lang.String schemaName, java.lang.String indexName)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndexName()
java.lang.String
getSchemaName()
void
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection.
-
-
-
Method Detail
-
run
public void run(IDatabaseTranslator translator, java.sql.Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
getSchemaName
public java.lang.String getSchemaName()
- Returns:
- the schemaName
-
getIndexName
public java.lang.String getIndexName()
- Returns:
- the indexNames
-
-