|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.weblab.util.WebLabQueryParser
public abstract class WebLabQueryParser
| Field Summary | |
|---|---|
static java.lang.String |
ASCENDENT_ORDERING_MODE_EXPECTED
|
static java.lang.String |
HAS_SCOPE
|
static java.lang.String |
TO_BE_ORDERED_BY
|
| Constructor Summary | |
|---|---|
WebLabQueryParser()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getComposedRequest(org.ow2.weblab.core.model.ComposedQuery q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
Build a string query based on the content of a ComposedQuery. |
abstract boolean |
getOrder(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
Test if the property ASCENDENT_ORDERING_MODE_EXPECTED is set to true. |
abstract java.lang.String |
getOrderBy(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
Test if the property TO_BE_ORDERED_BY exists on the query and get its value if applicable. |
abstract java.lang.String |
getRequest(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
Build a string request based on the content of a Query. |
abstract java.lang.String |
getRequestWithScope(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
Extract the request from the StringQuery possibly using the property HAS_SCOPE to restrict request scope and adapt syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TO_BE_ORDERED_BY
public static final java.lang.String ASCENDENT_ORDERING_MODE_EXPECTED
public static final java.lang.String HAS_SCOPE
| Constructor Detail |
|---|
public WebLabQueryParser()
| Method Detail |
|---|
public abstract java.lang.String getRequest(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
q - a Queryhlpr - a JenaResourceHelper initialized on the Query
org.ow2.weblab.core.extended.exception.WebLabCheckedException
public abstract java.lang.String getComposedRequest(org.ow2.weblab.core.model.ComposedQuery q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
q - the ComposedQueryhlpr - a JenaResourceHelper initialized on the ComposedQuery
org.ow2.weblab.core.extended.exception.WebLabCheckedException
public abstract java.lang.String getRequestWithScope(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
q - a StrinQuery
org.ow2.weblab.core.extended.exception.WebLabCheckedException
public abstract java.lang.String getOrderBy(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
q - a StrinQuery
org.ow2.weblab.core.extended.exception.WebLabCheckedException
public abstract boolean getOrder(org.ow2.weblab.core.model.Query q,
org.ow2.weblab.core.helper.ResourceHelper hlpr)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
q - a StrinQuery
org.ow2.weblab.core.extended.exception.WebLabCheckedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||