|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Subject database interface.
$Id: IDatabase.java,v 1.7 2005/12/24 19:47:39 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 |
public static final java.lang.String MARF_INTERFACE_CODE_REVISION
public static final long serialVersionUID
serialver
tool that comes with JDK.
Method Detail |
public 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
public java.lang.String getName(int piID) throws StorageException
piID
- ID of a subject in the DB to return a name for
StorageException
public void connect() throws StorageException
StorageException
public void query() throws StorageException
StorageException
public void close() throws StorageException
StorageException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |