org.apache.jackrabbit.standalone.cli.query
Class AbstractQuery
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractQuery
public AbstractQuery()
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.