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 voidaddDependencies(Collection<IDatabaseObject> deps)Add the collection of dependencies to this objectvoidapply(IDatabaseAdapter target)Apply the DDL for this object to the target databasevoidapply(Integer priorVersion, IDatabaseAdapter target)Apply migration logic to bring the target database to the current level of this objectITaskGroupcollect(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)voiddrop(IDatabaseAdapter target)DROP this object from the target databasevoidfetchDependenciesTo(Collection<IDatabaseObject> out)Fetch dependencies from this into the given out listvoidgrant(IDatabaseAdapter target, String groupName, 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 com.ibm.fhir.database.utils.model.DatabaseObject
addTag, addTags, applyTx, applyVersion, equals, getDependencies, getName, getObjectName, getObjectType, getTags, getTypeNameVersion, getVersion, hashCode, 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:IDatabaseObjectApply 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:IDatabaseObjectApply 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:IDatabaseObjectDROP this object from the target database
-
collect
public ITaskGroup collect(ITaskCollector tc, IDatabaseAdapter target, 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(Collection<IDatabaseObject> deps)
Description copied from interface:IDatabaseObjectAdd the collection of dependencies to this object
-
fetchDependenciesTo
public void fetchDependenciesTo(Collection<IDatabaseObject> out)
Description copied from interface:IDatabaseObjectFetch dependencies from this into the given out list
-
grant
public void grant(IDatabaseAdapter target, String groupName, 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.
-
-