|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of the database connection. This class is used to open and close the database connection, to prepare the DB schema (tables and indexes) for storage, and to store crawled data into this schema.
Connection
,
ResultSet
,
Statement
,
PreparedStatement
,
OracleConnection
,
DriverManager
Method Summary | |
void |
closeConnection()
Closes the open database connection. |
boolean |
createFeatures()
This method creates document features from previously stored word stems and stores them (as well as associated feature weights) into additional schema tables. |
boolean |
createSchema()
This method creates the database infrastructure that is required for storage of crawled information: relations (tables), index structures, and integrity constraints. |
void |
dropSchema()
This method drops all previously created schema elements (tables, associated indexes, and integrity contraints) to fully cleanup the database account for next experiment. |
Connection |
getConnection()
Returns the internal database connection of the database interface (only when it is open and valid). |
boolean |
isOpen()
Returns the current state of the database connection |
boolean |
openConnection(String user,
String password,
String hostname,
int port,
String service_name)
Opens the Database connection to the Oracle instance specified by input parameters. |
boolean |
store(URL url,
ISDocumentInterface doc)
Stores the content of an ISDocument and its URL into the database. |
Method Detail |
public boolean openConnection(String user, String password, String hostname, int port, String service_name)
user
- the Oracle user namepassword
- the database passwordhostname
- the hostname (or IP address) of the Oracle serverport
- the port of the Oracle listener for connections over a TCP/IP network (standard is 1521)service_name
- the name of the requested Oracle service
public void closeConnection()
public boolean isOpen()
public Connection getConnection()
public boolean store(URL url, ISDocumentInterface doc)
public boolean createSchema()
public void dropSchema()
public boolean createFeatures()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |