Class AlterSequenceStartWith
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.model.BaseObject
-
- org.linuxforhealth.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 org.linuxforhealth.fhir.database.utils.model.BaseObject
migrations, version
-
-
Constructor Summary
Constructors Constructor Description AlterSequenceStartWith(java.lang.String schemaName, java.lang.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 voidapply(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 databasevoiddrop(ISchemaAdapter target)DROP this object from the target databaseprotected voidgrantGroupPrivileges(ISchemaAdapter target, java.util.Set<Privilege> group, java.lang.String toUser)Internal method which can be override by different object types which may need to call a different grant method on the adaptervoidvisit(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.voidvisitReverse(DataModelVisitor v)Visit thisIDatabaseObjectwith the givenDataModelVisitor.-
Methods inherited from class org.linuxforhealth.fhir.database.utils.model.BaseObject
addDependencies, addDependency, addPrivilege, addTag, addTags, applyDistributionRules, applyTx, applyVersion, collect, equals, fetchDependenciesTo, getName, getObjectName, getObjectType, getQualifiedName, getSchemaName, getTags, getTypeNameVersion, getVersion, grant, 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
-
grantGroupPrivileges
protected void grantGroupPrivileges(ISchemaAdapter target, java.util.Set<Privilege> group, java.lang.String toUser)
Description copied from class:BaseObjectInternal method which can be override by different object types which may need to call a different grant method on the adapter- Overrides:
grantGroupPrivilegesin classBaseObject
-
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.
-
-