Ejemplo n.º 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 PHINVADSDeviceTableNode(tableNode);
                fhirTableNode.Prepare(plan);
                if (plan.IsSupported)
                {
                    return(fhirTableNode);
                }

                return(null);
            }

            CreateTableNode createTableNode = planNode as CreateTableNode;

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

            DropTableNode dropTableNode = planNode as DropTableNode;

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

            return(null);
        }
Ejemplo n.º 2
0
 public PHINVADSTable(PHINVADSDeviceSession deviceSession, Program program, PHINVADSDeviceTableNode fhirTableNode) : base(fhirTableNode.Node, program)
 {
     _deviceSession = deviceSession;
     _fhirTableNode = fhirTableNode;
 }