Package sos.marshalling

Examples of sos.marshalling.SOSImport


          }
         
          _sosConnection   = SOSConnection.createInstance( _configFile.toString(), _sosLogger );
          _sosConnection.connect();
         
          SOSImport imp = new SOSImport(_sosConnection,_inputFile.toString(), null, null, null, _sosLogger);
          
          imp.doImport();
    
          _sosConnection.commit();
         
          System.out.println("");
          System.out.println("Import erfolgreich beendet.");
View Full Code Here


            Iterator iterator = filelist.iterator();
            while(iterator.hasNext()) {
              this.process( (File)iterator.next() );
            }
          } else {             
              SOSImport imp = new SOSImport(_sosConnection,inputFile.toString(), null, null, null, _sosLogger);
              imp.setUpdate(getUpdate());
               imp.doImport();
               _sosConnection.commit();
          }
      } catch (Exception e) {
           _sosLogger.warn("an error occurred processing file [" + inputFile.getAbsolutePath() + "]: " + e);
        } finally {
View Full Code Here

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

            SOSImport imp = new SOSImport(this.connection, file, null, null,
                    null, logger);
            //SOSImport imp = new SOSImport(
            // this.connection,"c:/1.xml",null,null,null,logger);

            if (this.importDocumentation == 1) {
                imp.setInsert(false);
            }
            imp.doImport();
            this.connection.commit();
        } catch (Exception e) {
            this.setError(e.getMessage(), SOSClassUtil.getMethodName());
            this.connection.rollback();
        }
View Full Code Here

   
    try {             
      //sosLogger = new SOSStandardLogger(getLogger().getFileName(), getLogger().getLogLevel());
      sosLogger = new SOSStandardLogger(spooler.log().filename(), getLogger().getLogLevel());
     
      SOSImport imp = new SOSImport(sosConnection, triggerfile, null, null, null, sosLogger);
     
      if(mappingTablenames != null && !mappingTablenames.isEmpty())
        imp.setMappingTablenames(mappingTablenames);
     
      imp.doImport();
     
      sosConnection.commit();
     
     
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of sos.marshalling.SOSImport

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.