|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectISSearch.ISDB
public class ISDB
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| Constructor Summary | |
|---|---|
ISDB()
|
|
| 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. |
void |
setConnection(java.sql.Connection con)
|
boolean |
store(java.net.URL url,
ISDocumentInterface doc)
Stores the content of an ISDocument and its URL into the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISDB()
| Method Detail |
|---|
public boolean openConnection(java.lang.String user,
java.lang.String password,
java.lang.String hostname,
int port,
java.lang.String service_name)
openConnection in interface ISDBinterfaceuser - 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()
closeConnection in interface ISDBinterfacepublic boolean isOpen()
isOpen in interface ISDBinterfacepublic java.sql.Connection getConnection()
getConnection in interface ISDBinterfacepublic void setConnection(java.sql.Connection con)
public boolean store(java.net.URL url,
ISDocumentInterface doc)
store in interface ISDBinterfacepublic boolean createSchema()
createSchema in interface ISDBinterfacepublic void dropSchema()
dropSchema in interface ISDBinterfacepublic boolean createFeatures()
createFeatures in interface ISDBinterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||