pt.tumba.links
Class LinkageSystem

java.lang.Object
  extended by pt.tumba.links.LinkageSystem

public class LinkageSystem
extends java.lang.Object

Get the Web graph from a relational database The expected format of the table holding the linkage information is as follows: CREATE TABLE links ( link_id int(11) NOT NULL auto_increment, id_page_from int(11) NOT NULL, id_page_to int(11) NOT NULL );

Author:
Bruno Martins

Field Summary
private  java.lang.String db_driver_name
          The JDBC Driver for connecting to the relational database
private  java.lang.String db_password
          The password for connecting to the relational database
private  java.lang.String db_url
          The JDBC Connection String for connecting to the relational database
private  java.lang.String db_user
          The username for connecting to the relational database
 
Constructor Summary
LinkageSystem()
          Default constructor for LinkageSystem.
LinkageSystem(java.lang.String p_db_url, java.lang.String p_db_driver_name, java.lang.String p_db_user, java.lang.String p_db_password)
          Constructor for LinkageSystem
 
Method Summary
 java.lang.String getDBDriverName()
          Returns the JDBC Driver used for connecting to the relational database
 java.lang.String getDBPassword()
          Returns the password used for connecting to the relational database
 java.lang.String getDBURL()
          Returns the JDBC Connection String used for connecting to the relational database
 java.lang.String getDBUser()
          Returns the username used for connecting to the relational database
 java.lang.String getInfo()
          Returns a string with statistics gathered from the linkage database.
 void setDBDriverName(java.lang.String p_db_driver_name)
          Sets the value for the JDBC Driver used for connecting to the relational database
 void setDBPassword(java.lang.String p_db_password)
          Sets the value for the password used for connecting to the relational database
 void setDBURL(java.lang.String p_db_url)
          Sets the value for the JDBC Connection String used for connecting to the relational database
 void setDBUser(java.lang.String p_db_user)
          Sets the value for the username used for connecting to the relational database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db_url

private java.lang.String db_url
The JDBC Connection String for connecting to the relational database


db_user

private java.lang.String db_user
The username for connecting to the relational database


db_password

private java.lang.String db_password
The password for connecting to the relational database


db_driver_name

private java.lang.String db_driver_name
The JDBC Driver for connecting to the relational database

Constructor Detail

LinkageSystem

public LinkageSystem()
Default constructor for LinkageSystem. The default values for the JDBC connection parameters are used.


LinkageSystem

public LinkageSystem(java.lang.String p_db_url,
                     java.lang.String p_db_driver_name,
                     java.lang.String p_db_user,
                     java.lang.String p_db_password)
Constructor for LinkageSystem

Parameters:
p_db_url - The JDBC Connection String for connecting to the relational database
p_db_driver_name - The JDBC Driver for connecting to the relational database
p_db_user - The username for connecting to the relational database
p_db_password - The password for connecting to the relational database
Method Detail

setDBURL

public void setDBURL(java.lang.String p_db_url)
Sets the value for the JDBC Connection String used for connecting to the relational database

Parameters:
p_db_url - The JDBC Connection String for connecting to the relational database

setDBDriverName

public void setDBDriverName(java.lang.String p_db_driver_name)
Sets the value for the JDBC Driver used for connecting to the relational database

Parameters:
p_db_driver_name - The JDBC Driver for connecting to the relational database

setDBUser

public void setDBUser(java.lang.String p_db_user)
Sets the value for the username used for connecting to the relational database

Parameters:
p_db_user - The username for connecting to the relational database

setDBPassword

public void setDBPassword(java.lang.String p_db_password)
Sets the value for the password used for connecting to the relational database

Parameters:
p_db_password - The password for connecting to the relational database

getDBURL

public java.lang.String getDBURL()
Returns the JDBC Connection String used for connecting to the relational database

Returns:
The JDBC Connection String for connecting to the relational database

getDBDriverName

public java.lang.String getDBDriverName()
Returns the JDBC Driver used for connecting to the relational database

Returns:
The JDBC Driver for connecting to the relational database

getDBUser

public java.lang.String getDBUser()
Returns the username used for connecting to the relational database

Returns:
The username for connecting to the relational database

getDBPassword

public java.lang.String getDBPassword()
Returns the password used for connecting to the relational database

Returns:
The password for connecting to the relational database

getInfo

public java.lang.String getInfo()
Returns a string with statistics gathered from the linkage database. These statistics include a list of the pages in the database, together with the pages they link to.