tr.linkchecker.sql
Class CDBTableObj

java.lang.Object
  extended bytr.linkchecker.sql.CDBTableObj

public class CDBTableObj
extends java.lang.Object

The Object in which the database-tables saved

Date: 16.12.2004

Version:
1.0
Author:
Tobias Roessler, Ralf Schmitt

Constructor Summary
CDBTableObj()
          Default-Constructor
CDBTableObj(java.lang.String tablename, int tablenr, java.sql.Connection conn)
          Constructor that save the commited parameters
 
Method Summary
 java.sql.Connection getConnection()
           
 java.lang.String getTablename()
           
 int getTableNr()
           
 java.util.Vector readUrlFromTable()
          Method to read all url's from a database-table
 java.util.Vector searchUrlInString(java.lang.String line)
          Search the url's in a "String"
 void setConnection(java.sql.Connection conn)
           
 void setTablename(java.lang.String tablename)
           
 void setTableNr(int tablenr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDBTableObj

public CDBTableObj()
Default-Constructor


CDBTableObj

public CDBTableObj(java.lang.String tablename,
                   int tablenr,
                   java.sql.Connection conn)
Constructor that save the commited parameters

Parameters:
tablename - The table that we want to store
Method Detail

getTablename

public java.lang.String getTablename()
Returns:
Returns the mTablename

setTablename

public void setTablename(java.lang.String tablename)
Parameters:
tablename - The mTablename to set

getTableNr

public int getTableNr()
Returns:
Returns the mTableNr

setTableNr

public void setTableNr(int tablenr)

getConnection

public java.sql.Connection getConnection()
Returns:
Returns the mConn

setConnection

public void setConnection(java.sql.Connection conn)
Parameters:
conn - The mConn to set

readUrlFromTable

public java.util.Vector readUrlFromTable()
Method to read all url's from a database-table

Returns:
urlList Returns a list of url's founded in this table

searchUrlInString

public java.util.Vector searchUrlInString(java.lang.String line)
Search the url's in a "String"

Parameters:
line - From a table readed column
Returns:
v A "Vector" with all in the "Strings" founded url's