|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatabase
Subject database interface.
$Id: IDatabase.java,v 1.8 2006/08/11 19:19:59 mokhov Exp $
| Field Summary | |
|---|---|
static java.lang.String |
MARF_INTERFACE_CODE_REVISION
Interface source code revision. |
static long |
serialVersionUID
For serialization versioning. |
| Method Summary | |
|---|---|
void |
close()
Closes (file) database connection. |
void |
connect()
Connects to the database of subjects. |
int |
getIDByFilename(java.lang.String pstrFileName,
boolean pbTraining)
Given ID, fetches the corresponding filename. |
java.lang.String |
getName(int piID)
Retrieves subject's name by their ID. |
void |
query()
Retrieves subject's data from the database and populates internal data structures. |
| Field Detail |
|---|
static final java.lang.String MARF_INTERFACE_CODE_REVISION
static final long serialVersionUID
serialver tool that comes with JDK.
| Method Detail |
|---|
int getIDByFilename(java.lang.String pstrFileName,
boolean pbTraining)
throws StorageException
pstrFileName - Name of a .wav file for which ID must be returnedpbTraining - indicates whether the filename is a training (true) sample or testing (false)
StorageException
java.lang.String getName(int piID)
throws StorageException
piID - ID of a subject in the DB to return a name for
StorageException
void connect()
throws StorageException
StorageException
void query()
throws StorageException
StorageException
void close()
throws StorageException
StorageException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||