Class DataModelVisitorBase
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.model.DataModelVisitorBase
-
- All Implemented Interfaces:
DataModelVisitor
- Direct Known Subclasses:
AddForeignKey
,DropForeignKey
public class DataModelVisitorBase extends java.lang.Object implements DataModelVisitor
A base implementation of theDataModelVisitor
providing NOP overrides for each of the visited methods. This simplifies visitor implementations which may only want to provide real implementations for one or two of the methods.
-
-
Constructor Summary
Constructors Constructor Description DataModelVisitorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
nop()
A NOP (no operation).void
visited(AlterSequenceStartWith alterSequence)
void
visited(AlterTableIdentityCache alterTable)
void
visited(CreateIndex createIndex)
void
visited(FunctionDef functionDef)
void
visited(ProcedureDef procedureDef)
Process a ProcedureDef from the model.void
visited(Sequence sequence)
void
visited(Table tbl)
Process aTable
from the modelvoid
visited(Table fromChildTable, ForeignKeyConstraint fk)
Process a foreign key constraint from the modelvoid
visited(Tablespace tablespace)
-
-
-
Method Detail
-
visited
public void visited(Table fromChildTable, ForeignKeyConstraint fk)
Description copied from interface:DataModelVisitor
Process a foreign key constraint from the model- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(Table tbl)
Description copied from interface:DataModelVisitor
Process aTable
from the model- Specified by:
visited
in interfaceDataModelVisitor
-
nop
public void nop()
Description copied from interface:DataModelVisitor
A NOP (no operation). Should do nothing, but we let the visitor implementation decide.- Specified by:
nop
in interfaceDataModelVisitor
-
visited
public void visited(ProcedureDef procedureDef)
Description copied from interface:DataModelVisitor
Process a ProcedureDef from the model.- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(Sequence sequence)
- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(Tablespace tablespace)
- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(FunctionDef functionDef)
- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(AlterSequenceStartWith alterSequence)
- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(AlterTableIdentityCache alterTable)
- Specified by:
visited
in interfaceDataModelVisitor
-
visited
public void visited(CreateIndex createIndex)
- Specified by:
visited
in interfaceDataModelVisitor
-
-