Class NopObject
- java.lang.Object
 - 
- org.linuxforhealth.fhir.database.utils.model.BaseObject
 - 
- org.linuxforhealth.fhir.database.utils.model.NopObject
 
 
 
- 
- All Implemented Interfaces:
 IDatabaseObject
public class NopObject extends BaseObject
A NOP (no operation) object which can be used to simplify dependencies by making this object depend on other, then everything else simply depend on this, should that be the sort of behavior you want. 
- 
- 
Field Summary
- 
Fields inherited from class org.linuxforhealth.fhir.database.utils.model.BaseObject
migrations, version 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NopObject(java.lang.String schemaName, java.lang.String objectName)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 databasevoidapplyTx(ISchemaAdapter target, SchemaApplyContext context, ITransactionProvider tp, IVersionHistoryService vhs)Apply the DDL, but within its own transactionvoiddrop(ISchemaAdapter target)DROP this object from the target databasevoidvisit(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, applyVersion, collect, equals, fetchDependenciesTo, getName, getObjectName, getObjectType, getQualifiedName, getSchemaName, getTags, getTypeNameVersion, getVersion, grant, grantGroupPrivileges, 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 
- 
applyTx
public void applyTx(ISchemaAdapter target, SchemaApplyContext context, ITransactionProvider tp, IVersionHistoryService vhs)
Description copied from interface:IDatabaseObjectApply the DDL, but within its own transaction- Specified by:
 applyTxin interfaceIDatabaseObject- Overrides:
 applyTxin classBaseObject- Parameters:
 target- the target database we apply tocontext- the context used to modify how the schema objects are appliedtp- of thread-specific transactionsvhs- the service interface for adding this object to the version history table
 
- 
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. 
 - 
 
 -