Class View.Builder
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.VersionedSchemaObject
-
- com.ibm.fhir.database.utils.model.View.Builder
-
- Enclosing class:
- View
public static class View.Builder extends VersionedSchemaObject
Fluent builder forView
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.database.utils.model.VersionedSchemaObject
migrations, version
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description View.Builder
addDependency(IDatabaseObject obj)
Add theIDatabaseObject
as a dependency for this viewView.Builder
addMigration(Migration... migration)
Add migration steps to perform to upgrade from previous versions of this objectView.Builder
addPrivilege(java.lang.String groupName, Privilege p)
View.Builder
addPrivileges(java.util.Collection<GroupPrivilege> gps)
Add the collection of group privileges to this viewView.Builder
addTag(java.lang.String tagName, java.lang.String tagValue)
View
build()
Construct an immutable instance of aView
from the current state of this builderView.Builder
setSelectClause(java.lang.String selectClause)
Setter for the fromClause used to build the viewView.Builder
setVersion(int v)
Set the version-
Methods inherited from class com.ibm.fhir.database.utils.model.VersionedSchemaObject
getObjectName, getQualifiedName, getSchemaName, getVersion, setVersionValue
-
-
-
-
Method Detail
-
setSelectClause
public View.Builder setSelectClause(java.lang.String selectClause)
Setter for the fromClause used to build the view- Parameters:
fromClause
-
-
setVersion
public View.Builder setVersion(int v)
Set the version- Parameters:
v
-- Returns:
-
addTag
public View.Builder addTag(java.lang.String tagName, java.lang.String tagValue)
- Parameters:
tagName
-tagValue
-- Returns:
-
addPrivilege
public View.Builder addPrivilege(java.lang.String groupName, Privilege p)
-
addPrivileges
public View.Builder addPrivileges(java.util.Collection<GroupPrivilege> gps)
Add the collection of group privileges to this view- Parameters:
gps
-- Returns:
-
addDependency
public View.Builder addDependency(IDatabaseObject obj)
Add theIDatabaseObject
as a dependency for this view- Parameters:
obj
-- Returns:
-
addMigration
public View.Builder addMigration(Migration... migration)
Description copied from class:VersionedSchemaObject
Add migration steps to perform to upgrade from previous versions of this object- Overrides:
addMigration
in classVersionedSchemaObject
- Returns:
-
-