Interface SQL
-
- All Known Implementing Classes:
SQLImpl
public interface SQLThe 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 voidload()Load an instance population from the standard input stream.voidload_file(String file)Load an instance population from a file specified byfile.voidserialize()Dump an instance population to the standard output stream.voidserialize_file(String file)Dump an instance population to a file specified byfile.
-
-
-
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 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
void serialize() throws XtumlExceptionDump 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 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.
-
-