RawDataManager
Class RawDataManagerMySQL

java.lang.Object
  extended by RawDataManager.RawDataManager
      extended by RawDataManager.RawDataManagerMySQL
Direct Known Subclasses:
RawDataManagerWindsurfMySQL, WindsurfRawDataManagerMySQL

public abstract class RawDataManagerMySQL
extends RawDataManager

Extends Raw Data Manager functionalities for a MySQL DB.


Field Summary
protected  Utils.MySQL.MySQLConnector conn
          The DB connection
protected  java.lang.String table
          Name of the features table in the database
 
Constructor Summary
RawDataManagerMySQL(java.lang.String host, java.lang.String port, java.lang.String usr, java.lang.String pwd, java.lang.String db, java.lang.String table)
          Basic constructor.
 
Method Summary
 void closeConnection()
          Closes the connection to the features DB.
 void createConnection()
          Connects to the feature DB.
 java.lang.String findURL(Document.ImageID ID)
          Retrieves the URL of an image with a given ID.
 
Methods inherited from class RawDataManager.RawDataManager
contains, findID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected java.lang.String table
Name of the features table in the database


conn

protected Utils.MySQL.MySQLConnector conn
The DB connection

Constructor Detail

RawDataManagerMySQL

public RawDataManagerMySQL(java.lang.String host,
                           java.lang.String port,
                           java.lang.String usr,
                           java.lang.String pwd,
                           java.lang.String db,
                           java.lang.String table)
Basic constructor.

Parameters:
host - Host name for the DB connection.
port - Port name for the DB connection.
usr - Username for the DB connection.
pwd - Password for the DB connection.
db - Name of the raw data database.
table - Name of the raw data table.
Method Detail

createConnection

public void createConnection()
Connects to the feature DB.

Specified by:
createConnection in class RawDataManager

closeConnection

public void closeConnection()
Closes the connection to the features DB.

Specified by:
closeConnection in class RawDataManager

findURL

public java.lang.String findURL(Document.ImageID ID)
Retrieves the URL of an image with a given ID.

Specified by:
findURL in class RawDataManager
Parameters:
ID - ID of the image to be searched.
Returns:
The URL of the image with the given ID, if such image exists, null otherwise.