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
Modifier and TypeMethodDescriptionvoid
load()
Load an instance population from the standard input stream.void
Load an instance population from a file specified byfile
.void
Dump an instance population to the standard output stream.void
serialize_file
(String file) Dump an instance population to a file specified byfile
.
-
Method Details
-
load
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
Load an instance population from a file specified byfile
.- 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
Dump an instance population to the standard output stream.- Throws:
XtumlException
- if an error occurs during serialization of the instances.
-
serialize_file
Dump an instance population to a file specified byfile
.- 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.
-