|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISDBinterface
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. |
java.sql.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(java.lang.String user,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String service_name)
Opens the Database connection to the Oracle instance specified by input parameters. |
boolean |
store(java.net.URL url,
ISDocumentInterface doc)
Stores the content of an ISDocument and its URL into the database. |
| Method Detail |
|---|
boolean openConnection(java.lang.String user,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.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
void closeConnection()
boolean isOpen()
java.sql.Connection getConnection()
boolean store(java.net.URL url,
ISDocumentInterface doc)
boolean createSchema()
void dropSchema()
boolean createFeatures()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||