de.tudarmstadt.ukp.jwktl.api.entry
Class BerkeleyDBWiktionaryEdition.WiktionarySenseProxy

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.api.entry.BerkeleyDBWiktionaryEdition.WiktionarySenseProxy
Enclosing class:
BerkeleyDBWiktionaryEdition

@Entity
public static class BerkeleyDBWiktionaryEdition.WiktionarySenseProxy
extends Object

Proxy object for referencing to a IWiktionarySense. The proxy objects serve as a secondary database index.

Author:
Christian M. Meyer

Field Summary
protected  int entryIndex
           
protected  long pageId
           
protected  int senseIndex
           
protected  String senseKey
           
 
Constructor Summary
BerkeleyDBWiktionaryEdition.WiktionarySenseProxy()
          Instanciates an sense proxy with dangling reference.
BerkeleyDBWiktionaryEdition.WiktionarySenseProxy(IWiktionarySense sense)
          Instanciates an sense proxy to the given referenced sense.
 
Method Summary
 int getEntryIndex()
          Return the entry index of the referenced IWiktionarySense.
 long getPageId()
          Return the page ID of the referenced IWiktionarySense.
 int getSenseIndex()
          Return the sense index of the referenced IWiktionarySense.
 String getSenseKey()
          Return the sense key of the referenced IWiktionarySense.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

senseKey

@PrimaryKey
protected String senseKey

pageId

protected long pageId

entryIndex

protected int entryIndex

senseIndex

protected int senseIndex
Constructor Detail

BerkeleyDBWiktionaryEdition.WiktionarySenseProxy

public BerkeleyDBWiktionaryEdition.WiktionarySenseProxy()
Instanciates an sense proxy with dangling reference. This constructor should not be called directly; it is solely used by the database API.


BerkeleyDBWiktionaryEdition.WiktionarySenseProxy

public BerkeleyDBWiktionaryEdition.WiktionarySenseProxy(IWiktionarySense sense)
Instanciates an sense proxy to the given referenced sense.

Method Detail

getSenseKey

public String getSenseKey()
Return the sense key of the referenced IWiktionarySense.


getPageId

public long getPageId()
Return the page ID of the referenced IWiktionarySense.


getEntryIndex

public int getEntryIndex()
Return the entry index of the referenced IWiktionarySense.


getSenseIndex

public int getSenseIndex()
Return the sense index of the referenced IWiktionarySense.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.