Class CreateIndex
- java.lang.Object
- 
- com.ibm.fhir.database.utils.model.BaseObject
- 
- com.ibm.fhir.database.utils.model.CreateIndex
 
 
- 
- All Implemented Interfaces:
- IDatabaseObject
 
 public class CreateIndex extends BaseObject Index creation definition for creating new indexes after the table has been defined (e.g. in a subsequent version)
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCreateIndex.BuilderBuilder to implement fluent construction ofCreateIndexobjects.
 - 
Field Summary- 
Fields inherited from class com.ibm.fhir.database.utils.model.BaseObjectmigrations, version
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedCreateIndex(String schemaName, String indexName, int version, IndexDef indexDef, String tenantColumnName)Protected constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(IDatabaseAdapter target)Apply the DDL for this object to the target databasevoidapply(Integer priorVersion, IDatabaseAdapter target)Apply migration logic to bring the target database to the current level of this objectstatic CreateIndex.Builderbuilder()Return a new Builder instance for creating instances of CreateIndexvoiddrop(IDatabaseAdapter target)DROP this object from the target databasevoidvisit(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.voidvisitReverse(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.- 
Methods inherited from class com.ibm.fhir.database.utils.model.BaseObjectaddDependencies, addDependency, addPrivilege, addTag, addTags, applyTx, applyVersion, collect, equals, fetchDependenciesTo, getName, getObjectName, getObjectType, getQualifiedName, getSchemaName, getTags, getTypeNameVersion, getVersion, grant, grantGroupPrivileges, hashCode, safeSleep, toString, visit
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static CreateIndex.Builder builder() Return a new Builder instance for creating instances of CreateIndex- Returns:
 
 - 
applypublic void apply(IDatabaseAdapter target) Description copied from interface:IDatabaseObjectApply the DDL for this object to the target database- Parameters:
- target- the database target
 
 - 
applypublic void apply(Integer priorVersion, IDatabaseAdapter target) Description copied from interface:IDatabaseObjectApply migration logic to bring the target database to the current level of this object- target- the database target
 
 - 
droppublic void drop(IDatabaseAdapter target) Description copied from interface:IDatabaseObjectDROP this object from the target database
 - 
visitpublic void visit(DataModelVisitor v) Description copied from interface:IDatabaseObjectVisit thisIDatabaseObjectwith the givenDataModelVisitor. Any sub-objects should be visited in creation order.
 - 
visitReversepublic void visitReverse(DataModelVisitor v) Description copied from interface:IDatabaseObjectVisit thisIDatabaseObjectwith the givenDataModelVisitor. Any sub-objects should be visited in reverse order.
 
- 
 
-