Package org.netbeans.modules.dbschema.migration.archiver

Examples of org.netbeans.modules.dbschema.migration.archiver.XMLOutputStream


    {
      String className = mappingClass.getName();

      if (stream != null)
      {
        XMLOutputStream xmlOutput = new XMLOutputStream(stream);

        try
        {
          mappingClass.preArchive();    // call pre archive hook
          xmlOutput.writeObject(mappingClass);

          // update modified flags for the mapping and persistence
          // classes after save
          mappingClass.setModified(false);
          getPersistenceClass(mappingClass).setModified(false);
        }
        catch (ModelException e)
        {
          // MBO: print reason to logger
          LogHelperModel.getLogger().log(Logger.WARNING,
            e.getMessage());
        }
        finally
        {
          if (xmlOutput != null)
            xmlOutput.close();

          unlockFile(stream, className);
        }
        return;
      }
View Full Code Here


    {
      String className = mappingClass.getName();

      if (stream != null)
      {
        XMLOutputStream xmlOutput = new XMLOutputStream(stream);

        try
        {
          mappingClass.preArchive();    // call pre archive hook
          xmlOutput.writeObject(mappingClass);

          // update modified flags for the mapping and persistence
          // classes after save
          mappingClass.setModified(false);
          getPersistenceClass(mappingClass).setModified(false);
        }
        catch (ModelException e)
        {
          // MBO: print reason to logger
          LogHelperModel.getLogger().log(Logger.WARNING,
            e.getMessage());
        }
        finally
        {
          if (xmlOutput != null)
            xmlOutput.close();

          unlockFile(stream, className);
        }
        return;
      }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.dbschema.migration.archiver.XMLOutputStream

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.