Class ObjectGroup
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.BaseObject
-
- com.ibm.fhir.database.utils.model.ObjectGroup
-
- All Implemented Interfaces:
IDatabaseObject
public class ObjectGroup extends BaseObject
A collection ofIDatabaseObjectwhich are applied in order within one transaction
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.database.utils.model.BaseObject
migrations, version
-
-
Constructor Summary
Constructors Constructor Description ObjectGroup(java.lang.String schemaName, java.lang.String name, java.util.Collection<IDatabaseObject> groupIn)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(IDatabaseAdapter target)Apply the DDL for this object to the target databasevoidapply(java.lang.Integer priorVersion, IDatabaseAdapter target)Apply migration logic to bring the target database to the current level of this objectvoidapplyVersion(IDatabaseAdapter target, IVersionHistoryService vhs)Apply the change, but only if it has a newer version than we already have recorded in the databasevoiddrop(IDatabaseAdapter target)DROP this object from the target databasevoidgrant(IDatabaseAdapter target, java.lang.String groupName, java.lang.String toUser)Grant the given privileges to the uservoidvisit(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.voidvisit(java.util.function.Consumer<IDatabaseObject> c)Visit this object, calling the consumer for itself, or its children if anyvoidvisitReverse(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.-
Methods inherited from class com.ibm.fhir.database.utils.model.BaseObject
addDependencies, addDependency, addPrivilege, addTag, addTags, applyTx, collect, equals, fetchDependenciesTo, getName, getObjectName, getObjectType, getQualifiedName, getSchemaName, getTags, getTypeNameVersion, getVersion, grantGroupPrivileges, hashCode, toString
-
-
-
-
Constructor Detail
-
ObjectGroup
public ObjectGroup(java.lang.String schemaName, java.lang.String name, java.util.Collection<IDatabaseObject> groupIn)Public constructor- Parameters:
schemaName-name-groupIn-
-
-
Method Detail
-
applyVersion
public void applyVersion(IDatabaseAdapter target, IVersionHistoryService vhs)
Description copied from class:BaseObjectApply the change, but only if it has a newer version than we already have recorded in the database- Specified by:
applyVersionin interfaceIDatabaseObject- Overrides:
applyVersionin classBaseObjectvhs- the service used to manage the version history table
-
drop
public void drop(IDatabaseAdapter target)
Description copied from interface:IDatabaseObjectDROP this object from the target database
-
grant
public void grant(IDatabaseAdapter target, java.lang.String groupName, java.lang.String toUser)
Description copied from interface:IDatabaseObjectGrant the given privileges to the user- Specified by:
grantin interfaceIDatabaseObject- Overrides:
grantin classBaseObject
-
apply
public void apply(IDatabaseAdapter target)
Description copied from interface:IDatabaseObjectApply the DDL for this object to the target database- Parameters:
target- the database target
-
apply
public void apply(java.lang.Integer priorVersion, IDatabaseAdapter target)Description copied from interface:IDatabaseObjectApply migration logic to bring the target database to the current level of this objecttarget- the database target
-
visit
public void visit(java.util.function.Consumer<IDatabaseObject> c)
Description copied from interface:IDatabaseObjectVisit this object, calling the consumer for itself, or its children if any- Specified by:
visitin interfaceIDatabaseObject- Overrides:
visitin classBaseObject
-
visit
public void visit(DataModelVisitor v)
Description copied from interface:IDatabaseObjectVisit thisIDatabaseObjectwith the givenDataModelVisitor. Any sub-objects should be visited in creation order.
-
visitReverse
public void visitReverse(DataModelVisitor v)
Description copied from interface:IDatabaseObjectVisit thisIDatabaseObjectwith the givenDataModelVisitor. Any sub-objects should be visited in reverse order.
-
-