Class CreateIndexStatement
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.CreateIndexStatement
-
- All Implemented Interfaces:
IDatabaseStatement
public class CreateIndexStatement extends java.lang.Object implements IDatabaseStatement
Create an index
-
-
Constructor Summary
Constructors Constructor Description CreateIndexStatement(java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, java.util.List<OrderedColumnDef> columns)
Public constructor.CreateIndexStatement(java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, java.util.List<OrderedColumnDef> columns, boolean unique)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection.
-
-
-
Constructor Detail
-
CreateIndexStatement
public CreateIndexStatement(java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, java.util.List<OrderedColumnDef> columns)
Public constructor. Non-unique index- Parameters:
schemaName
-indexName
-tableName
-tenantColumnName
-columns
-
-
CreateIndexStatement
public CreateIndexStatement(java.lang.String schemaName, java.lang.String indexName, java.lang.String tableName, java.util.List<OrderedColumnDef> columns, boolean unique)
Public constructor- Parameters:
schemaName
-indexName
-tableName
-tenantColumnName
-columns
-unique
-
-
-
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
-
-