Interface SQL

  • All Known Implementing Classes:
    SQLImpl

    public interface SQL
    The SQL utility provides an interface to loading/persisting intstances as SQL insert statements.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void load()
      Load an instance population from the standard input stream.
      void load_file​(String file)
      Load an instance population from a file specified by file.
      void serialize()
      Dump an instance population to the standard output stream.
      void serialize_file​(String file)
      Dump an instance population to a file specified by file.
    • Method Detail

      • load

        void load()
           throws XtumlException
        Load an instance population from the standard input stream.
        Throws:
        XtumlException - if an error occurs during parsing, loading, or relating of the SQL insert statements.
      • load_file

        void load_file​(String file)
                throws XtumlException
        Load an instance population from a file specified by file.
        Parameters:
        file - The path to an instance population file relative to the current working directory.
        Throws:
        XtumlException - if an error occurs during parsing, loading, or relating of the SQL insert statements.
      • serialize

        void serialize()
                throws XtumlException
        Dump an instance population to the standard output stream.
        Throws:
        XtumlException - if an error occurs during serialization of the instances.
      • serialize_file

        void serialize_file​(String file)
                     throws XtumlException
        Dump an instance population to a file specified by file.
        Parameters:
        file - The path to the destination instance population file relative to the current working directory.
        Throws:
        XtumlException - if an error occurs during serialization of the instances.