Class Tablespace
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.DatabaseObject
-
- com.ibm.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(String tablespaceName, int version, int extentSizeKB)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDependencies(Collection<IDatabaseObject> deps)
Add the collection of dependencies to this objectvoid
apply(IDatabaseAdapter target)
Apply the DDL for this object to the target databasevoid
apply(Integer priorVersion, IDatabaseAdapter target)
Apply migration logic to bring the target database to the current level of this objectITaskGroup
collect(ITaskCollector tc, IDatabaseAdapter target, 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(IDatabaseAdapter target)
DROP this object from the target databasevoid
fetchDependenciesTo(Collection<IDatabaseObject> out)
Fetch dependencies from this into the given out listvoid
grant(IDatabaseAdapter target, String groupName, 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 com.ibm.fhir.database.utils.model.DatabaseObject
addTag, addTags, applyTx, applyVersion, equals, getDependencies, getName, getObjectName, getObjectType, getTags, getTypeNameVersion, getVersion, hashCode, safeSleep, toString, visit
-
-
-
-
Constructor Detail
-
Tablespace
public Tablespace(String tablespaceName, int version, int extentSizeKB)
Public constructor- Parameters:
tablespaceName
-extentSizeKB
-
-
-
Method Detail
-
apply
public void apply(IDatabaseAdapter target)
Description copied from interface:IDatabaseObject
Apply the DDL for this object to the target database- Parameters:
target
- the database target
-
apply
public void apply(Integer priorVersion, IDatabaseAdapter target)
Description copied from interface:IDatabaseObject
Apply migration logic to bring the target database to the current level of this objecttarget
- the database target
-
drop
public void drop(IDatabaseAdapter target)
Description copied from interface:IDatabaseObject
DROP this object from the target database
-
collect
public ITaskGroup collect(ITaskCollector tc, IDatabaseAdapter target, 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(Collection<IDatabaseObject> deps)
Description copied from interface:IDatabaseObject
Add the collection of dependencies to this object
-
fetchDependenciesTo
public void fetchDependenciesTo(Collection<IDatabaseObject> out)
Description copied from interface:IDatabaseObject
Fetch dependencies from this into the given out list
-
grant
public void grant(IDatabaseAdapter target, String groupName, 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.
-
-