Class CreateIndex.Builder
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.CreateIndex.Builder
-
- Enclosing class:
- CreateIndex
public static class CreateIndex.Builder extends Object
Builder to implement fluent construction ofCreateIndex
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateIndex.Builder
addColumn(String column)
Add the named column to the list of columnsCreateIndex
build()
Build an instance ofCreateIndex
using the current state of this Builder.CreateIndex.Builder
setIndexName(String indexName)
CreateIndex.Builder
setSchemaName(String schemaName)
CreateIndex.Builder
setTableName(String tableName)
CreateIndex.Builder
setTenantColumnName(String name)
Sets the tenantColumnName propertyCreateIndex.Builder
setUnique(boolean unique)
CreateIndex.Builder
setVersion(int version)
-
-
-
Method Detail
-
setSchemaName
public CreateIndex.Builder setSchemaName(String schemaName)
- Parameters:
schemaName
- the schemaName to set
-
setTableName
public CreateIndex.Builder setTableName(String tableName)
- Parameters:
tableName
- the tableName to set
-
setIndexName
public CreateIndex.Builder setIndexName(String indexName)
- Parameters:
indexName
- the indexName to set
-
setVersion
public CreateIndex.Builder setVersion(int version)
- Parameters:
version
- the version to set
-
setUnique
public CreateIndex.Builder setUnique(boolean unique)
- Parameters:
unique
- the unique to set
-
addColumn
public CreateIndex.Builder addColumn(String column)
Add the named column to the list of columns- Parameters:
column
-- Returns:
-
build
public CreateIndex build()
Build an instance ofCreateIndex
using the current state of this Builder.- Returns:
-
setTenantColumnName
public CreateIndex.Builder setTenantColumnName(String name)
Sets the tenantColumnName property- Parameters:
name
-- Returns:
-
-