Class IndexDef
- java.lang.Object
- 
- com.ibm.fhir.database.utils.model.IndexDef
 
- 
 public class IndexDef extends Object Definition of an index on a table
- 
- 
Constructor SummaryConstructors Constructor Description IndexDef(String indexName, Collection<OrderedColumnDef> indexColumns, boolean unique)IndexDef(String indexName, Collection<OrderedColumnDef> indexColumns, Collection<String> includeColumns)Construct an index definition for a unique index with include columns.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(String schemaName, String tableName, String tenantColumnName, IDatabaseAdapter target)Apply this object to the given database targetCreateIndexStatementcreateStatement(String schemaName, String tableName, String tenantColumnName)Create a statement which can be used to create vendor-specific DDLvoiddrop(String schemaName, IDatabaseAdapter target)Drop this indexbooleanisUnique()Getter for the unique flagStringtoString()
 
- 
- 
- 
Constructor Detail- 
IndexDefpublic IndexDef(String indexName, Collection<OrderedColumnDef> indexColumns, boolean unique) 
 - 
IndexDefpublic IndexDef(String indexName, Collection<OrderedColumnDef> indexColumns, Collection<String> includeColumns) Construct an index definition for a unique index with include columns. Note that it only makes sense for an index with include columns to be unique, so the unique flag is set true- Parameters:
- indexName-
- indexColumns-
- includeColumns-
 
 
- 
 - 
Method Detail- 
isUniquepublic boolean isUnique() Getter for the unique flag- Returns:
 
 - 
applypublic void apply(String schemaName, String tableName, String tenantColumnName, IDatabaseAdapter target) Apply this object to the given database target- Parameters:
- tableName-
- target-
 
 - 
droppublic void drop(String schemaName, IDatabaseAdapter target) Drop this index- Parameters:
- schemaName-
- target-
 
 - 
createStatementpublic CreateIndexStatement createStatement(String schemaName, String tableName, String tenantColumnName) Create a statement which can be used to create vendor-specific DDL- Parameters:
- schemaName-
- tableName-
- tenantColumnName-
- Returns:
 
 
- 
 
-