public class HSQLOutput extends SerialOutput
| Constructor | Description |
|---|---|
HSQLOutput(HSQLSession session,
java.lang.String isfName) |
This method sets a connection to the database and creates all the necessary
tables, which will contain attributes, examples, and possibly other data.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
done() |
Ends database transaction, commits all changes and closes the
database connection.
|
int |
getAttributeCount() |
|
java.lang.String |
getAttrName(int i) |
|
java.lang.String |
getSubtype(int i) |
|
java.lang.String |
getType(int i) |
|
void |
outputExample(Example example) |
Outputs example
|
void |
outputMetadata(Metadata metadata) |
Outputs metadata
|
void |
setAttributes(Attribute[] attributes) |
Sets attributes
|
public HSQLOutput(HSQLSession session, java.lang.String isfName) throws SerialIOException
session - - this object contains the database url, username and passwordisfName - ISF file nameSerialIOExceptionpublic void outputMetadata(Metadata metadata) throws SerialIOException
outputMetadata in class SerialOutputmetadata - metadata to outputSerialIOExceptionpublic void done()
throws SerialIOException
done in class SerialOutputSerialIOExceptionpublic java.lang.String getSubtype(int i)
throws java.sql.SQLException
i - java.sql.SQLException - when the database operation failspublic java.lang.String getType(int i)
throws java.sql.SQLException
i - java.sql.SQLException - when the database operation failespublic java.lang.String getAttrName(int i)
throws java.sql.SQLException
i - java.sql.SQLException - when the database operation failespublic int getAttributeCount()
throws java.sql.SQLException
java.sql.SQLException - when the database operation failespublic void setAttributes(Attribute[] attributes) throws SerialIOException
attributes - attributes to setSerialIOExceptionpublic void outputExample(Example example) throws SerialIOException
outputExample in class SerialOutputexample - example to outputSerialIOException