org.apache.jackrabbit.standalone.cli.query
Class AbstractQuery

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.query.AbstractQuery
All Implemented Interfaces:
org.apache.commons.chain.Command
Direct Known Subclasses:
SQLQuery, XPathQuery

public abstract class AbstractQuery
extends Object
implements org.apache.commons.chain.Command

Query the Repository through either SQL or XPATH language.


Constructor Summary
AbstractQuery()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context ctx)
          
 String getDestKey()
           
protected abstract  String getLanguage()
           
 String getStatementKey()
           
 void setDestKey(String toKey)
           
 void setStatementKey(String statementKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractQuery

public AbstractQuery()
Method Detail

execute

public final boolean execute(org.apache.commons.chain.Context ctx)
                      throws Exception

Specified by:
execute in interface org.apache.commons.chain.Command
Throws:
Exception

getLanguage

protected abstract String getLanguage()
Returns:
the query language

getStatementKey

public String getStatementKey()
Returns:
the statement key

setStatementKey

public void setStatementKey(String statementKey)
Parameters:
statementKey - the statement key to set

getDestKey

public String getDestKey()
Returns:
the destination key

setDestKey

public void setDestKey(String toKey)
Parameters:
toKey - the destination key to set


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.