Package sos.marshalling

Examples of sos.marshalling.SOSExport


            _sosConnection = SOSConnection.createInstance(_configFile
                    .toString(), _sosLogger);
            _sosConnection.connect();

            SOSExport export = new SOSExport(_sosConnection, _outputFile
                    .toString(), "EXPORT", _sosLogger);

            prepareExport(export);

            export.doExport();
            System.out.println("");
            System.out.println("Export erfolgreich beendet.");

        } catch (Exception e) {
            throw new Exception("error in SOSExportProcessor: "
View Full Code Here


    String selSettings = "SELECT * FROM "+JobSchedulerManagedObject.getTableSettings()+" WHERE \"APPLICATION\" IN ('job_type/local/?', 'job_type/global/?', 'job_type/mixed/?')";
    String selSettingsOrders = "SELECT * FROM "+JobSchedulerManagedObject.getTableSettings()+" WHERE \"APPLICATION\" IN ('order_type/local/?', 'order_type/global/?', 'order_type/mixed/?')";
    String selOrders = "SELECT * FROM "+JobSchedulerManagedObject.getTableManagedOrders()+" WHERE \"JOB_CHAIN\"='?'";
   
    //TODO: wofuer ist 3. Parameter?   
    SOSExport export = new SOSExport(conn,xmlFile, "DOCUMENT", sosLogger);
    int model = export.query(JobSchedulerManagedObject.getTableManagedModels(),"ID", selManagedModel);
    int job = export.query(JobSchedulerManagedObject.getTableManagedJobs(),"ID",selManagedJobs,"ID", model);
    int orders = export.query(JobSchedulerManagedObject.getTableManagedOrders(),"ID",selOrders,"NAME",model);
    int jobTypes = export.query(JobSchedulerManagedObject.getTableManagedJobTypes(),"TYPE", selJobTypes,"JOB_TYPE", job);
    int jobTypes2 = export.query(JobSchedulerManagedObject.getTableManagedJobTypes(),"TYPE", selJobTypes,"JOB_TYPE", orders);
    int settings = export.query(JobSchedulerManagedObject.getTableSettings(), "APPLICATION,SECTION,NAME",selSettings,"TYPE,TYPE,TYPE",jobTypes);
    int settingsOrders = export.query(JobSchedulerManagedObject.getTableSettings(), "APPLICATION,SECTION,NAME",selSettings,"TYPE,TYPE,TYPE",jobTypes2);
   
   
   
    export.doExport();
   
   
  }
View Full Code Here

        // SOSStandardLogger("c:/settings_import_log.txt",SOSStandardLogger.DEBUG9);
        SOSStandardLogger logger = new SOSStandardLogger(
                SOSStandardLogger.DEBUG9);
        try {

            SOSExport export = new SOSExport(this.connection, file,
                    this.applicationName, logger);
            export.query(this.settings.source, this.settings.entryApplication
                    + "," + this.settings.entrySection + ","
                    + this.settings.entryName, sql.toString());

            String rc = export.doExport();

            if (!rc.equals("") && file.equals("")) {
                this.response.setContentType("application/xml");
                this.response.setHeader("Content-Disposition",
                        "attachment; filename=settings.xml");
View Full Code Here

    String selManagedJobs = "SELECT * FROM "+JobSchedulerManagedObject.getTableManagedJobs()+" WHERE \"ID\"="+jobID;
    String selJobTypes = "SELECT * FROM "+JobSchedulerManagedObject.getTableManagedJobTypes()+" WHERE \"TYPE\"='?'";
    String selSettings = "SELECT * FROM "+JobSchedulerManagedObject.getTableSettings()+" WHERE \"APPLICATION\" IN ('job_type/local/?', 'job_type/global/?', 'job_type/mixed/?')";
   
       
    SOSExport export = new SOSExport(conn,xmlFile, "DOCUMENT", sosLogger);
    int job = export.query(JobSchedulerManagedObject.getTableManagedJobs(),"ID",selManagedJobs);
    int jobTypes = export.query(JobSchedulerManagedObject.getTableManagedJobTypes(),"TYPE", selJobTypes,"JOB_TYPE", job);
    int settings = export.query(JobSchedulerManagedObject.getTableSettings(), "APPLICATION,SECTION,NAME",selSettings,"TYPE,TYPE,TYPE",jobTypes);
   
   
   
    export.doExport();
   
   
  }
View Full Code Here

 
  public void export(SOSConnection sosConnection, String queryfile, String filename, String jobChain, String operation) throws Exception{
   
    org.w3c.dom.Element           queries   = null;
    SOSStandardLogger sosLogger = null;
    SOSExport         export    = null;
    try {             
     
      //sosLogger = new SOSStandardLogger(getLogger().getFileName(), getLogger().getLogLevel());
      sosLogger = new SOSStandardLogger(spooler.log().filename(), getLogger().getLogLevel());
     
     
      export = new SOSExport(sosConnection, filename, "EXPORT", sosLogger);     
      queries = getQueryElement(queryfile, jobChain);
     
      if(queries != null) {
        exportQueryRecursiv(queries, export,-1, operation);       
      }
View Full Code Here

TOP

Related Classes of sos.marshalling.SOSExport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.