All Known Implementing Classes:
SQLImpl

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

    Modifier and Type
    Method
    Description
    void
    Load an instance population from the standard input stream.
    void
    Load an instance population from a file specified by file.
    void
    Dump an instance population to the standard output stream.
    void
    Dump an instance population to a file specified by file.
  • Method Details

    • 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.