Class Tablespace
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.model.DatabaseObject
-
- org.linuxforhealth.fhir.database.utils.model.Tablespace
-
- All Implemented Interfaces:
IDatabaseObject
public class Tablespace extends DatabaseObject
Used to create and drop tablespaces within a database
-
-
Constructor Summary
Constructors Constructor Description Tablespace(java.lang.String tablespaceName, int version, int extentSizeKB)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependencies(java.util.Collection<IDatabaseObject> deps)Add the collection of dependencies to this objectvoidapply(java.lang.Integer priorVersion, ISchemaAdapter target, SchemaApplyContext context)Apply migration logic to bring the target database to the current level of this objectvoidapply(ISchemaAdapter target, SchemaApplyContext context)Apply the DDL for this object to the target databaseITaskGroupcollect(ITaskCollector tc, ISchemaAdapter target, SchemaApplyContext context, ITransactionProvider tp, IVersionHistoryService vhs)Collect the tasks into a dependency tree so that they can be executed concurrently (but in the right order)voiddrop(ISchemaAdapter target)DROP this object from the target databasevoidfetchDependenciesTo(java.util.Collection<IDatabaseObject> out)Fetch dependencies from this into the given out listvoidgrant(ISchemaAdapter target, java.lang.String groupName, java.lang.String toUser)Grant the given privileges to the uservoidvisit(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.voidvisitReverse(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.-
Methods inherited from class org.linuxforhealth.fhir.database.utils.model.DatabaseObject
addTag, addTags, applyDistributionRules, applyTx, applyVersion, equals, getDependencies, getName, getObjectName, getObjectType, getTags, getTypeNameVersion, getVersion, hashCode, toString, visit
-
-
-
-
Method Detail
-
apply
public void apply(ISchemaAdapter target, SchemaApplyContext context)
Description copied from interface:IDatabaseObjectApply the DDL for this object to the target database- Parameters:
target- the database targetcontext- context to control the schema apply process
-
apply
public void apply(java.lang.Integer priorVersion, ISchemaAdapter target, SchemaApplyContext context)Description copied from interface:IDatabaseObjectApply migration logic to bring the target database to the current level of this objecttarget- the database targetcontext- to control the schema apply process
-
drop
public void drop(ISchemaAdapter target)
Description copied from interface:IDatabaseObjectDROP this object from the target database
-
collect
public ITaskGroup collect(ITaskCollector tc, ISchemaAdapter target, SchemaApplyContext context, ITransactionProvider tp, IVersionHistoryService vhs)
Description copied from interface:IDatabaseObjectCollect the tasks into a dependency tree so that they can be executed concurrently (but in the right order)
-
addDependencies
public void addDependencies(java.util.Collection<IDatabaseObject> deps)
Description copied from interface:IDatabaseObjectAdd the collection of dependencies to this object
-
fetchDependenciesTo
public void fetchDependenciesTo(java.util.Collection<IDatabaseObject> out)
Description copied from interface:IDatabaseObjectFetch dependencies from this into the given out list
-
grant
public void grant(ISchemaAdapter target, java.lang.String groupName, java.lang.String toUser)
Description copied from interface:IDatabaseObjectGrant the given privileges to the user
-
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.
-
-