jp.go.kokken.Ankou
クラス Client

java.lang.Object
  拡張java.lang.Thread
      拡張jp.go.kokken.Ankou.QueryDriver
          拡張jp.go.kokken.Ankou.Client
すべての実装インタフェース:
java.lang.Runnable

public class Client
extends QueryDriver

Tamino Connection interface. usage note: 1. regieterDB("http://localhost/tamino/mydb") 2. regieterCollectionName("IPUCollection") 2. submitQuery("for $s in input()//LUW where $s/@LUWLemma='??' return $s/@LUWLemma") 3. check the return code of 2. 4. if there are some responses. get them: TXMLObjectIterator iterator = getResponseInterator() while(iterator.hasNext()) TXMLObject xml = iterator.next(); process xml 5. close()


フィールドの概要
(パッケージプライベート)  java.lang.String collectionName
           
(パッケージプライベート)  com.softwareag.tamino.db.api.connection.TConnection connection
           
(パッケージプライベート)  java.lang.String dbURI
           
(パッケージプライベート)  com.softwareag.tamino.db.api.response.TResponse response
           
 
クラス jp.go.kokken.Ankou.QueryDriver から継承したフィールド
errwriter, logger, qstring, rstring, success
 
クラス java.lang.Thread から継承したフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
Client()
          QUERYライブラリを初期化します。
 
メソッドの概要
private  com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor connectCollectionName(com.softwareag.tamino.db.api.connection.TConnection connection, java.lang.String collectionName)
          Connect to the Collection in the Database and returns accessor.
private  com.softwareag.tamino.db.api.connection.TConnection connectDB(java.lang.String dbURI)
          Connect to the DB dbURI and returns TConnection session.
 java.lang.String getVersion()
          Driverのバージョン
private  java.lang.String performXQuery(com.softwareag.tamino.db.api.accessor.TXQuery xquery, com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor xmlAccessor)
           
 void registerCollectionName(java.lang.String collection)
          collectionNameを登録します。
 void registerDB(java.lang.String uri)
          DBを登録します。
 void registerDBAndCollectionName(java.lang.String complex)
          DBとcollectionNameを一緒に登録します。
 java.lang.String submitQuery(java.lang.String queryString)
          Send X-Query and return result string.
 
クラス jp.go.kokken.Ankou.QueryDriver から継承したメソッド
checkResult, getExceptionString, getResultString, registerQuery, run
 
クラス java.lang.Thread から継承したメソッド
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

connection

com.softwareag.tamino.db.api.connection.TConnection connection

response

com.softwareag.tamino.db.api.response.TResponse response

dbURI

java.lang.String dbURI

collectionName

java.lang.String collectionName
コンストラクタの詳細

Client

public Client()
QUERYライブラリを初期化します。

メソッドの詳細

connectDB

private com.softwareag.tamino.db.api.connection.TConnection connectDB(java.lang.String dbURI)
                                                               throws com.softwareag.tamino.db.api.connection.TConnectionException
Connect to the DB dbURI and returns TConnection session.

戻り値:
returns TConnection
例外:
com.softwareag.tamino.db.api.connection.TConnectionException - failed to connect.

connectCollectionName

private com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor connectCollectionName(com.softwareag.tamino.db.api.connection.TConnection connection,
                                                                                       java.lang.String collectionName)
Connect to the Collection in the Database and returns accessor.

戻り値:
returns TXMLObjectAccessor which will be used in the xquery section.

registerDBAndCollectionName

public void registerDBAndCollectionName(java.lang.String complex)
                                 throws java.lang.IllegalArgumentException
DBとcollectionNameを一緒に登録します。 文字列は以下のようになっています。 http://localhost/tamino/mydb?IPUCollection DBuri?collectionName

パラメータ:
complex - 複合文字列
例外:
java.lang.IllegalArgumentException

registerDB

public void registerDB(java.lang.String uri)
DBを登録します。


registerCollectionName

public void registerCollectionName(java.lang.String collection)
collectionNameを登録します。


submitQuery

public java.lang.String submitQuery(java.lang.String queryString)
                             throws java.io.IOException,
                                    java.lang.IllegalArgumentException,
                                    java.lang.OutOfMemoryError
Send X-Query and return result string.

定義:
クラス QueryDriver 内の submitQuery
戻り値:
returns 0 if it is ok, otherwise returns -1 ?
例外:
java.io.IOException
java.lang.IllegalArgumentException
java.lang.OutOfMemoryError

performXQuery

private java.lang.String performXQuery(com.softwareag.tamino.db.api.accessor.TXQuery xquery,
                                       com.softwareag.tamino.db.api.accessor.TXMLObjectAccessor xmlAccessor)
                                throws com.softwareag.tamino.db.api.common.TException,
                                       com.softwareag.tamino.db.api.accessor.TXQueryException
例外:
com.softwareag.tamino.db.api.common.TException
com.softwareag.tamino.db.api.accessor.TXQueryException

getVersion

public java.lang.String getVersion()
クラス QueryDriver の記述:
Driverのバージョン

定義:
クラス QueryDriver 内の getVersion