org.hypergraphdb.query.impl
Class DefaultKeyBasedQuery

java.lang.Object
  extended by org.hypergraphdb.HGQuery
      extended by org.hypergraphdb.query.impl.KeyBasedQuery
          extended by org.hypergraphdb.query.impl.DefaultKeyBasedQuery
All Implemented Interfaces:
HGGraphHolder

public class DefaultKeyBasedQuery
extends KeyBasedQuery


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hypergraphdb.HGQuery
HGQuery.hg
 
Field Summary
 
Fields inherited from class org.hypergraphdb.HGQuery
NOP
 
Constructor Summary
DefaultKeyBasedQuery(HyperGraph graph, HGQueryCondition cond, ValueSetter setter)
           
 
Method Summary
 HGSearchResult<?> execute()
           
 java.lang.Object getKey()
          Retrieve the key object used to perform this query.
 void setKey(java.lang.Object key)
          Specify the key on which this query operates.
 
Methods inherited from class org.hypergraphdb.HGQuery
getHyperGraph, make, setHyperGraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKeyBasedQuery

public DefaultKeyBasedQuery(HyperGraph graph,
                            HGQueryCondition cond,
                            ValueSetter setter)
Method Detail

getKey

public java.lang.Object getKey()
Description copied from class: KeyBasedQuery

Retrieve the key object used to perform this query.

Specified by:
getKey in class KeyBasedQuery

setKey

public void setKey(java.lang.Object key)
Description copied from class: KeyBasedQuery

Specify the key on which this query operates.

Specified by:
setKey in class KeyBasedQuery
Parameters:
key - The key object. The value may be interpreted differently based on the concrete HGQuery instance. Usually it should be either a byte [] or convertible to one.

execute

public HGSearchResult<?> execute()
Specified by:
execute in class HGQuery