|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--spo.src.JDBC.XConnection
Class XConnection is java class, which allows client to
connect to the SPDBMS data server.
| Field Summary | |
(package private) static java.lang.String |
DEFAULT_HOST
|
(package private) static int |
DEFAULT_PORT
|
| Constructor Summary | |
XConnection()
Default constructor Initialize the XConnection |
|
| Method Summary | |
void |
close()
Close the connection to the data server |
void |
connect()
Use default host and port to connect |
void |
connect(java.lang.String host,
int port)
Connect to the data server with (host, port) |
java.lang.String |
create(java.lang.String relName,
java.lang.String schemaURL)
Create the relation in the data server |
java.lang.String |
delete(java.lang.String relName,
java.lang.String condition)
Delete from the relation SPOs which satisfy the condition |
java.lang.String |
drop(java.lang.String relName)
Drop the relation |
java.lang.String |
getRelNames()
Get the names of relations in the data server |
java.lang.String |
insert(java.lang.String relName,
java.lang.String xmlFile)
Insert a xml file into the relation |
java.lang.String |
query(java.lang.String queryStr,
boolean isXML)
Send a query to the data server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final java.lang.String DEFAULT_HOST
static final int DEFAULT_PORT
| Constructor Detail |
public XConnection()
| Method Detail |
public void connect()
public void connect(java.lang.String host,
int port)
host - data server nameport - the prot number which the server is listeningpublic void close()
public java.lang.String getRelNames()
throws java.io.IOException
java.io.IOException
public java.lang.String create(java.lang.String relName,
java.lang.String schemaURL)
throws java.io.IOException
relName - name of the relationschemaURL - URL string of the schema
java.io.IOException
public java.lang.String drop(java.lang.String relName)
throws java.io.IOException
relName - name of the relation
java.io.IOException
public java.lang.String insert(java.lang.String relName,
java.lang.String xmlFile)
throws java.io.IOException
relName - name of the relationxmlFile - name the xml file
java.io.IOException
public java.lang.String delete(java.lang.String relName,
java.lang.String condition)
throws java.io.IOException
relName - name of the relationcondition - the condition string
java.io.IOException
public java.lang.String query(java.lang.String queryStr,
boolean isXML)
throws java.io.IOException
queryStr - the query stringisXML - set the format of the query result. true will return
XML, otherwise HTML
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||