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

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

@Entity
public static class BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy
extends Object

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

Author:
Christian M. Meyer

Field Summary
protected  long entryId
           
protected  int entryIndex
           
protected  String entryKey
           
protected  long pageId
           
 
Constructor Summary
BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy()
          Instanciates an entry proxy with dangling reference.
BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy(IWiktionaryEntry entry)
          Instanciates an entry proxy to the given referenced entry.
 
Method Summary
 long getEntryId()
          Return the entry ID of the referenced IWiktionaryEntry.
 int getEntryIndex()
          Return the entry index of the referenced IWiktionaryEntry.
 String getEntryKey()
          Return the entry key of the referenced IWiktionaryEntry.
 long getPageId()
          Return the page ID of the referenced IWiktionaryEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryKey

@PrimaryKey
protected String entryKey

entryId

@SecondaryKey(relate=MANY_TO_ONE)
protected long entryId

pageId

protected long pageId

entryIndex

protected int entryIndex
Constructor Detail

BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy

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


BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy

public BerkeleyDBWiktionaryEdition.WiktionaryEntryProxy(IWiktionaryEntry entry)
Instanciates an entry proxy to the given referenced entry.

Method Detail

getEntryKey

public String getEntryKey()
Return the entry key of the referenced IWiktionaryEntry.


getEntryId

public long getEntryId()
Return the entry ID of the referenced IWiktionaryEntry.


getPageId

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


getEntryIndex

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



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