|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spo.src.SPDB.DocumentImpl.Handler
A class which gets requests from the server program and calls the SPO core to resolve those requests
| Field Summary | |
(package private) DBUtil |
dbutil
|
(package private) Relation |
relation
|
| Constructor Summary | |
Handler(java.sql.Connection conn)
Initialize an instance of the class |
|
| Method Summary | |
java.lang.String |
getRelNames()
Get the names of relations in the database |
int |
getRelSize()
Get the number of SPOs in the relation |
int |
handleCreate(java.lang.String relName,
java.lang.String schemaURL)
Call the SPO core to handle the relation creation |
int |
handleDelete(java.lang.String[] where,
java.lang.String relName)
Call the SPO core to handle the SPO deletion |
int |
handleDrop(java.lang.String relName)
Call the SPO core to handle the relation drop |
int |
handleInsert(java.io.BufferedReader br,
java.lang.String relName)
Call the SPO core to handle the SPO insertion |
java.lang.String |
handleSQuery(java.util.Vector parsedQuery)
Call the SPO core to handle structured queries |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DBUtil dbutil
Relation relation
| Constructor Detail |
public Handler(java.sql.Connection conn)
conn - A SQL Connection object| Method Detail |
public int handleCreate(java.lang.String relName,
java.lang.String schemaURL)
relName - name of the relationschemaURL - URL name of the schemapublic int handleDrop(java.lang.String relName)
relName - name of the relation
public int handleInsert(java.io.BufferedReader br,
java.lang.String relName)
br - A BufferedReader objectrelName - name of the relation
public int handleDelete(java.lang.String[] where,
java.lang.String relName)
where - the where condition clauserelName - name of the relationpublic java.lang.String handleSQuery(java.util.Vector parsedQuery)
parsedQuery - the structred query in Vector formatpublic int getRelSize()
public java.lang.String getRelNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||