edu.princeton.wordnet.orm.WordNetClient Class Reference
Inherited by edu.princeton.wordnet.orm.hibernate.WordNetClientImpl, and edu.princeton.wordnet.orm.jpa.WordNetClientImpl.
List of all members.
Public Member Functions |
abstract void | shutdown () |
abstract Collection< Element > | queryElements (final String thisTarget) throws Exception |
abstract Document | queryDoc (final String thisTarget) throws Exception |
abstract Document | queryRawDoc (final String thisTarget) throws Exception |
abstract String | queryXML (final String thisTarget) throws Exception |
abstract TreeModel | queryXmlTreeModel (final String thisTarget) throws Exception |
abstract TreeModel | queryTreeModel (final String thisTarget) throws Exception |
abstract String[] | getPosNames () throws Exception |
abstract String[] | getLexDomainNames () throws Exception |
abstract String[] | getLinkNames () throws Exception |
abstract Collection< Link > | getLinks () throws Exception |
Static Public Member Functions |
static void | set (final WordNetClient thisWordNetClient) |
static WordNetClient | make (final boolean JPA) throws Exception |
static WordNetClient | get () |
static void | setup (final String[] theseArgs) |
static void | setPrintStream (final OutputStream thisOutputStream) |
static Object[] | reduce (final Collection<?extends Object > thisCollection, final String thisMethodName) |
Protected Member Functions |
boolean | isQuery (final String thisLookup) |
String | makeQuery (final String thisLookup) |
Static Protected Attributes |
static String | theConnectionSettings = null |
Detailed Description
WordNet client
- Author:
- Bernard Bou
Member Function Documentation
static WordNetClient edu.princeton.wordnet.orm.WordNetClient.get |
( |
|
) |
[static] |
Get singleton client
- Returns:
- client
abstract String [] edu.princeton.wordnet.orm.WordNetClient.getLexDomainNames |
( |
|
) |
throws Exception [pure virtual] |
abstract String [] edu.princeton.wordnet.orm.WordNetClient.getLinkNames |
( |
|
) |
throws Exception [pure virtual] |
abstract Collection<Link> edu.princeton.wordnet.orm.WordNetClient.getLinks |
( |
|
) |
throws Exception [pure virtual] |
abstract String [] edu.princeton.wordnet.orm.WordNetClient.getPosNames |
( |
|
) |
throws Exception [pure virtual] |
boolean edu.princeton.wordnet.orm.WordNetClient.isQuery |
( |
final String |
thisLookup |
) |
[protected] |
Check whether lookup expression is a SQL Query
- Parameters:
-
| thisLookup | lookup expression |
- Returns:
- true if lookup expresssion is a SQL query
static WordNetClient edu.princeton.wordnet.orm.WordNetClient.make |
( |
final boolean |
JPA |
) |
throws Exception [static] |
Make client
- Returns:
- wordnet client
- Exceptions:
-
String edu.princeton.wordnet.orm.WordNetClient.makeQuery |
( |
final String |
thisLookup |
) |
[protected] |
Extract query
- Parameters:
-
- Returns:
- query
abstract Document edu.princeton.wordnet.orm.WordNetClient.queryDoc |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
abstract Collection<Element> edu.princeton.wordnet.orm.WordNetClient.queryElements |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
abstract Document edu.princeton.wordnet.orm.WordNetClient.queryRawDoc |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
abstract TreeModel edu.princeton.wordnet.orm.WordNetClient.queryTreeModel |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
abstract String edu.princeton.wordnet.orm.WordNetClient.queryXML |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
abstract TreeModel edu.princeton.wordnet.orm.WordNetClient.queryXmlTreeModel |
( |
final String |
thisTarget |
) |
throws Exception [pure virtual] |
static Object [] edu.princeton.wordnet.orm.WordNetClient.reduce |
( |
final Collection<?extends Object > |
thisCollection, |
|
|
final String |
thisMethodName | |
|
) |
| | [static] |
Reduce collection by calling no-argument method
- Parameters:
-
- Returns:
- array of objects
static void edu.princeton.wordnet.orm.WordNetClient.set |
( |
final WordNetClient |
thisWordNetClient |
) |
[static] |
Set singleton
- Parameters:
-
static void edu.princeton.wordnet.orm.WordNetClient.setPrintStream |
( |
final OutputStream |
thisOutputStream |
) |
[static] |
Set print stream for SQL queries output
- Parameters:
-
| thisOutputStream | output stream |
static void edu.princeton.wordnet.orm.WordNetClient.setup |
( |
final String[] |
theseArgs |
) |
[static] |
Setup hook
- Parameters:
-
| theseArgs | command line arguments |
abstract void edu.princeton.wordnet.orm.WordNetClient.shutdown |
( |
|
) |
[pure virtual] |
Member Data Documentation
Connection settings on command-line
The documentation for this class was generated from the following file:
- /opt/devel/wnscope/WordNetScope/src/edu/princeton/wordnet/orm/WordNetClient.java