Enterprise Information Portal APIs

com.ibm.gcs.db.component
Class DB2TableAdmin

java.lang.Object
  |
  +--com.ibm.gcs.db.component.DB2TableAdmin

public class DB2TableAdmin
extends java.lang.Object


Constructor Summary
DB2TableAdmin()
           
 
Method Summary
static void createTables()
          Create the tables: UrlCrawlTable.
static void createTables(boolean createLinksTable)
          Create the tables: UrlCrawlTable and links table.
static void deleteTables()
          Delete the tables: ConfigTable, UrlCrawlTable Basically drops them and creates them again
static void dropTables()
          Drop the tables: UrlCrawlTable.
static void dropTables(Transaction t)
          Drop the tables: UrlCrawlTable
static java.lang.String getDBname()
           
static java.lang.String getDriver()
           
static void getFunction(java.lang.String[] args, int offset)
           
static java.lang.String getPassword()
           
static java.lang.String getUser()
           
static void main(java.lang.String[] args)
           
static void noOp()
           
static void printUsage()
           
static int readProps(java.lang.String[] args, int offset)
           
static void run(java.lang.String[] args)
          run Reads in the properties and initailizes the Connection Manager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2TableAdmin

public DB2TableAdmin()
Method Detail

run

public static void run(java.lang.String[] args)
                throws java.lang.Exception
run Reads in the properties and initailizes the Connection Manager.

createTables

public static void createTables()
                         throws TransactionException
Create the tables: UrlCrawlTable. If the table already exists, exits and does nothing.

createTables

public static void createTables(boolean createLinksTable)
                         throws TransactionException
Create the tables: UrlCrawlTable and links table. If the table already exists, exits and does nothing.

dropTables

public static void dropTables(Transaction t)
                       throws TransactionException
Drop the tables: UrlCrawlTable
Parameters:
Transaction - object

dropTables

public static void dropTables()
                       throws TransactionException
Drop the tables: UrlCrawlTable. If the table does not exist, does nothing.

deleteTables

public static void deleteTables()
                         throws TransactionException
Delete the tables: ConfigTable, UrlCrawlTable Basically drops them and creates them again

getDriver

public static java.lang.String getDriver()

getDBname

public static java.lang.String getDBname()

getUser

public static java.lang.String getUser()

getPassword

public static java.lang.String getPassword()

printUsage

public static void printUsage()

readProps

public static int readProps(java.lang.String[] args,
                            int offset)

getFunction

public static void getFunction(java.lang.String[] args,
                               int offset)

noOp

public static void noOp()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.