Class AlterSequenceStartWith
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.BaseObject
-
- com.ibm.fhir.database.utils.model.AlterSequenceStartWith
-
- All Implemented Interfaces:
IDatabaseObject
public class AlterSequenceStartWith extends BaseObject
Modify an existing sequence to start with a higher value
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.database.utils.model.BaseObject
migrations, version
-
-
Constructor Summary
Constructors Constructor Description AlterSequenceStartWith(String schemaName, String sequenceName, int version, long startWith, int cache, int incrementBy)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 objectvoid
drop(IDatabaseAdapter target)
DROP this object from the target databaseprotected void
grantGroupPrivileges(IDatabaseAdapter target, Set<Privilege> group, String toUser)
Internal method which can be override by different object types which may need to call a different grant method on the adaptervoid
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.BaseObject
addDependencies, addDependency, addPrivilege, addTag, addTags, applyTx, applyVersion, collect, equals, fetchDependenciesTo, getName, getObjectName, getObjectType, getQualifiedName, getSchemaName, getTags, getTypeNameVersion, getVersion, grant, hashCode, toString, visit
-
-
-
-
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
-
grantGroupPrivileges
protected void grantGroupPrivileges(IDatabaseAdapter target, Set<Privilege> group, String toUser)
Description copied from class:BaseObject
Internal method which can be override by different object types which may need to call a different grant method on the adapter- Overrides:
grantGroupPrivileges
in classBaseObject
-
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.
-
-