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 theRepository
through either SQL or XPATH language.
-
-
Constructor Summary
Constructors Constructor Description AbstractQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
execute(org.apache.commons.chain.Context ctx)
String
getDestKey()
protected abstract String
getLanguage()
String
getStatementKey()
void
setDestKey(String toKey)
void
setStatementKey(String statementKey)
-
-
-
Method Detail
-
execute
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception
- Specified by:
execute
in interfaceorg.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
-
-