Example #1
0
        protected override DevicePlanNode InternalPrepare(Schema.DevicePlan plan, PlanNode planNode)
        {
            // return a DevicePlanNode appropriate for execution of the given node
            TableNode tableNode = planNode as TableNode;

            if (tableNode != null)
            {
                var fhirTableNode = new FHIRDeviceTableNode(tableNode);
                fhirTableNode.Prepare(plan);
                if (plan.IsSupported)
                {
                    return(fhirTableNode);
                }

                return(null);
            }

            CreateTableNode createTableNode = planNode as CreateTableNode;

            if (createTableNode != null)
            {
                var fhirCreateTableNode = new FHIRCreateTableNode(createTableNode);
                return(fhirCreateTableNode);
            }

            DropTableNode dropTableNode = planNode as DropTableNode;

            if (dropTableNode != null)
            {
                var fhirDropTableNode = new FHIRDropTableNode(dropTableNode);
                return(fhirDropTableNode);
            }

            return(null);
        }
Example #2
0
 public FHIRDropTableNode(DropTableNode node) : base(node)
 {
 }
Example #3
0
 public PHINVADSDropTableNode(DropTableNode node) : base(node)
 {
 }