public class HSQLInput extends SerialInput
Constructor | Description |
---|---|
HSQLInput(HSQLSession session,
java.lang.String isfName) |
The constructor sets a connection to the database.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getAttributeCount() |
Returns the number of attributes stored in the database
|
Attribute[] |
getAttributes() |
Gets attributes
|
java.lang.String |
getAttrName(int i) |
Returns the string containing the name of the attribute.
|
java.lang.String |
getSubtype(int i) |
Returns the string containing the attribute subtype.
|
java.lang.String |
getType(int i) |
Returns the string containing the attribute type.
|
Example |
inputExample() |
Gets next example
|
Metadata |
inputMetadata() |
Gets metadata
|
void |
reset() |
Resets the cursor into the data stored in the EXAMPLES table.
|
public HSQLInput(HSQLSession session, java.lang.String isfName) throws SerialIOException
session
- this object contains the database url, username and passwordisfName
- ISF file nameSerialIOException
public Metadata inputMetadata() throws SerialIOException
inputMetadata
in class SerialInput
SerialIOException
public void reset() throws java.sql.SQLException
java.sql.SQLException
- when the database operation failespublic int getAttributeCount() throws java.sql.SQLException
java.sql.SQLException
- when the database operation failespublic java.lang.String getSubtype(int i) throws java.sql.SQLException
i
- is attribute indexjava.sql.SQLException
- when the database operation failespublic java.lang.String getType(int i) throws java.sql.SQLException
i
- is attribute indexjava.sql.SQLException
- when the database operation failespublic java.lang.String getAttrName(int i) throws java.sql.SQLException
i
- is attribute indexjava.sql.SQLException
- when the database operation failespublic Attribute[] getAttributes() throws SerialIOException
SerialIOException
public Example inputExample()
inputExample
in class SerialInput