|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.wordnet.orm.WordNetClient
edu.princeton.wordnet.orm.hibernate.WordNetClientImpl
public class WordNetClientImpl
Hibernate client
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
LOG
Logger |
Fields inherited from class edu.princeton.wordnet.orm.WordNetClient |
---|
theConnectionSettings |
Constructor Summary | |
---|---|
private |
WordNetClientImpl()
Constructor |
Method Summary | |
---|---|
java.lang.String[] |
getLexDomainNames()
Get lexdomain names |
java.lang.String[] |
getLinkNames()
Get link names |
java.util.Collection<edu.princeton.wordnet.pojos.Link> |
getLinks()
Get links |
java.lang.String[] |
getPosNames()
Get pos names |
static WordNetClient |
make()
Make client |
private java.util.Collection<edu.princeton.wordnet.pojos.Word> |
query(org.hibernate.Session thisSession,
java.lang.String thisTarget)
Query |
org.dom4j.Document |
queryDoc(java.lang.String thisTarget)
Query for document |
java.util.Collection<org.dom4j.Element> |
queryElements(java.lang.String thisTarget)
Query for collection of elements |
private java.util.Collection<java.lang.Object> |
queryGeneric(org.hibernate.Session thisSession,
java.lang.String thisStatement)
Query |
org.dom4j.Document |
queryRawDoc(java.lang.String thisTarget)
Query for document |
javax.swing.tree.TreeModel |
queryTreeModel(java.lang.String thisTarget)
Query (from tree model built from Pojos) |
java.lang.String |
queryXML(java.lang.String thisTarget)
Query for XML |
javax.swing.tree.TreeModel |
queryXmlTreeModel(java.lang.String thisTarget)
Query (from tree model built from element-returning call) |
void |
shutdown()
Shutdown |
Methods inherited from class edu.princeton.wordnet.orm.WordNetClient |
---|
get, isQuery, make, makeQuery, reduce, set, setPrintStream, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
private WordNetClientImpl() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static WordNetClient make() throws java.lang.Exception
java.lang.Exception
public void shutdown()
WordNetClient
shutdown
in class WordNetClient
private java.util.Collection<edu.princeton.wordnet.pojos.Word> query(org.hibernate.Session thisSession, java.lang.String thisTarget) throws java.lang.Exception
thisSession
- sessionthisTarget
- query target
java.lang.Exception
private java.util.Collection<java.lang.Object> queryGeneric(org.hibernate.Session thisSession, java.lang.String thisStatement) throws java.lang.Exception
thisSession
- sessionthisStatement
- statement
java.lang.Exception
public java.util.Collection<org.dom4j.Element> queryElements(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryElements
in class WordNetClient
thisTarget
- target
java.lang.Exception
public org.dom4j.Document queryDoc(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryDoc
in class WordNetClient
thisTarget
- word to look up
java.lang.Exception
public org.dom4j.Document queryRawDoc(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryRawDoc
in class WordNetClient
thisTarget
- target
java.lang.Exception
public java.lang.String queryXML(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryXML
in class WordNetClient
thisTarget
- target
java.lang.Exception
public javax.swing.tree.TreeModel queryXmlTreeModel(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryXmlTreeModel
in class WordNetClient
thisTarget
- target
java.lang.Exception
public javax.swing.tree.TreeModel queryTreeModel(java.lang.String thisTarget) throws java.lang.Exception
WordNetClient
queryTreeModel
in class WordNetClient
thisTarget
- target
java.lang.Exception
public java.lang.String[] getPosNames() throws java.lang.Exception
WordNetClient
getPosNames
in class WordNetClient
java.lang.Exception
public java.lang.String[] getLexDomainNames() throws java.lang.Exception
WordNetClient
getLexDomainNames
in class WordNetClient
java.lang.Exception
public java.lang.String[] getLinkNames() throws java.lang.Exception
WordNetClient
getLinkNames
in class WordNetClient
java.lang.Exception
public java.util.Collection<edu.princeton.wordnet.pojos.Link> getLinks() throws java.lang.Exception
WordNetClient
getLinks
in class WordNetClient
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |