spo.src.SPDB.DocumentImpl
Class Handler

java.lang.Object
  |
  +--spo.src.SPDB.DocumentImpl.Handler

public class Handler
extends java.lang.Object

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 dbutil

relation

Relation relation
Constructor Detail

Handler

public Handler(java.sql.Connection conn)
Initialize an instance of the class

Parameters:
conn - A SQL Connection object
Method Detail

handleCreate

public int handleCreate(java.lang.String relName,
                        java.lang.String schemaURL)
Call the SPO core to handle the relation creation

Parameters:
relName - name of the relation
schemaURL - URL name of the schema

handleDrop

public int handleDrop(java.lang.String relName)
Call the SPO core to handle the relation drop

Parameters:
relName - name of the relation

handleInsert

public int handleInsert(java.io.BufferedReader br,
                        java.lang.String relName)
Call the SPO core to handle the SPO insertion

Parameters:
br - A BufferedReader object
relName - name of the relation

handleDelete

public int handleDelete(java.lang.String[] where,
                        java.lang.String relName)
Call the SPO core to handle the SPO deletion

Parameters:
where - the where condition clause
relName - name of the relation

handleSQuery

public java.lang.String handleSQuery(java.util.Vector parsedQuery)
Call the SPO core to handle structured queries

Parameters:
parsedQuery - the structred query in Vector format

getRelSize

public int getRelSize()
Get the number of SPOs in the relation


getRelNames

public java.lang.String getRelNames()
Get the names of relations in the database



Copyright © 2003 UKCS. All Rights Reserved.