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 theRepositorythrough 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 booleanexecute(org.apache.commons.chain.Context ctx)StringgetDestKey()protected abstract StringgetLanguage()StringgetStatementKey()voidsetDestKey(String toKey)voidsetStatementKey(String statementKey)
-
-
-
Method Detail
-
execute
public final boolean execute(org.apache.commons.chain.Context ctx) throws Exception- Specified by:
executein 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
-
-