Пример #1
0
 public JdbcQueryActivityBuilder(DataAccessBuilder dataAccessBuilder, DataAccessServiceBuilder dataAccessServiceBuilder, DataAccessInterfacesCommonBuilder dataAccessCommonBuilder, XslBuilder xslBuilder, ResultSetBuilder resultSetBuilder)
 {
     this.dataAccessBuilder        = dataAccessBuilder;
     this.dataAccessServiceBuilder = dataAccessServiceBuilder;
     this.dataAccessCommonBuilder  = dataAccessCommonBuilder;
     this.xslBuilder       = xslBuilder;
     this.resultSetBuilder = resultSetBuilder;
 }
Пример #2
0
        public CodeMemberMethod GenerateExecuteQueryMethod(JdbcQueryActivity jdbcQueryActivity)
        {
            var method = DataAccessServiceBuilder.GenerateExecuteQuerySignature(jdbcQueryActivity);

            method.Statements.Add(this.GenerateExecuteQueryBody(jdbcQueryActivity, method));


            return(method);
        }
        public void SetUp()
        {
            this.builder = new DataAccessServiceBuilder (new JdbcQueryBuilderUtils());
            this.jdbcQueryActivity = new JdbcQueryActivity {
                Type = ActivityType.jdbcCallActivityType,
                Name = "TestJbdcQueryActivity",
                JdbcSharedConfig = "Panorama",
                EmptyStringAsNull = false,
                QueryStatement = "select 1 from toto where id= ?"

            };
        }
 public ActivityBuilderFactory()
 {
     this.xpathBuilder                      = new XpathBuilder();
     this.xslBuilder                        = new XslBuilder(this.xpathBuilder);
     this.dataAccessBuilder                 = new DataAccessBuilder();
     this.dataAccessServiceBuilder          = new DataAccessServiceBuilder();
     this.dataAccessInterfacesCommonBuilder = new DataAccessInterfacesCommonBuilder();
     this.resultSetBuilder                  = new ResultSetBuilder();
     this.xmlParserHelperBuilder            = new XmlParserHelperBuilder();
     this.engineCommandServiceHelperBuilder = new EngineCommandServiceHelperBuilder();
     this.xsdBuilder                        = new XsdBuilder();
     this.xsdParser         = new XsdParser();
     this.subscriberBuilder = new SubscriberInterfaceBuilder();
 }