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 void
addDependencies(java.util.Collection<IDatabaseObject> deps)
Add the collection of dependencies to this objectvoid
apply(java.lang.Integer priorVersion, ISchemaAdapter target, SchemaApplyContext context)
Apply migration logic to bring the target database to the current level of this objectvoid
apply(ISchemaAdapter target, SchemaApplyContext context)
Apply the DDL for this object to the target databaseITaskGroup
collect(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)void
drop(ISchemaAdapter target)
DROP this object from the target databasevoid
fetchDependenciesTo(java.util.Collection<IDatabaseObject> out)
Fetch dependencies from this into the given out listvoid
grant(ISchemaAdapter target, java.lang.String groupName, java.lang.String toUser)
Grant the given privileges to the uservoid
visit(DataModelVisitor v)
Visit thisIDatabaseObject
with the givenDataModelVisitor
.void
visitReverse(DataModelVisitor v)
Visit thisIDatabaseObject
with 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:IDatabaseObject
Apply 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:IDatabaseObject
Apply 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:IDatabaseObject
DROP this object from the target database
-
collect
public ITaskGroup collect(ITaskCollector tc, ISchemaAdapter target, SchemaApplyContext context, ITransactionProvider tp, IVersionHistoryService vhs)
Description copied from interface:IDatabaseObject
Collect 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:IDatabaseObject
Add the collection of dependencies to this object
-
fetchDependenciesTo
public void fetchDependenciesTo(java.util.Collection<IDatabaseObject> out)
Description copied from interface:IDatabaseObject
Fetch 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:IDatabaseObject
Grant the given privileges to the user
-
visit
public void visit(DataModelVisitor v)
Description copied from interface:IDatabaseObject
Visit thisIDatabaseObject
with the givenDataModelVisitor
. Any sub-objects should be visited in creation order.
-
visitReverse
public void visitReverse(DataModelVisitor v)
Description copied from interface:IDatabaseObject
Visit thisIDatabaseObject
with the givenDataModelVisitor
. Any sub-objects should be visited in reverse order.
-
-