com.spoledge.audao.db.dao.gae
Interface GQLDynamicQuery

All Known Implementing Classes:
GqlDynamic

public interface GQLDynamicQuery

This interface describes ability to dynamically parse GQL queries.


Method Summary
 FetchOptions getFetchOptions()
          Returns the FetchOptions of the last query.
 Query parseQuery(java.lang.String gql, java.lang.Object... params)
          Parses GQL query.
 Query parseQueryCond(Query query, java.lang.String gql, java.lang.Object... params)
          Parses GQL query condition.
 PreparedQuery prepareMultipleQueries(Query query, boolean keysOnly)
          Prepares a GQL query.
 PreparedQuery prepareQuery(java.lang.String gql, java.lang.Object... params)
          Prepares a GQL query.
 void setDatastoreService(DatastoreService ds)
          Sets the DatastoreService which is needed for multiple queries.
 boolean wasMultipleQueries()
          Returns true iff the last query was a multiple query ("!=" or "IN" operators).
 

Method Detail

setDatastoreService

void setDatastoreService(DatastoreService ds)
Sets the DatastoreService which is needed for multiple queries.


parseQuery

Query parseQuery(java.lang.String gql,
                 java.lang.Object... params)
Parses GQL query. This method parses "raw" queries (without "!=" and "IN" conditions).

Parameters:
gql - the GQL query
params - the parameters to the GQL (referenced by :1, :2, ...)

prepareQuery

PreparedQuery prepareQuery(java.lang.String gql,
                           java.lang.Object... params)
Prepares a GQL query.

Parameters:
gql - the GQL query
params - the parameters to the GQL (referenced by :1, :2, ...)

parseQueryCond

Query parseQueryCond(Query query,
                     java.lang.String gql,
                     java.lang.Object... params)
Parses GQL query condition. This method parses "raw" queries (without "!=" and "IN" conditions).

Parameters:
query - the initial query
gql - the GQL query
params - the parameters to the GQL (referenced by :1, :2, ...)

prepareMultipleQueries

PreparedQuery prepareMultipleQueries(Query query,
                                     boolean keysOnly)
Prepares a GQL query.


wasMultipleQueries

boolean wasMultipleQueries()
Returns true iff the last query was a multiple query ("!=" or "IN" operators).


getFetchOptions

FetchOptions getFetchOptions()
Returns the FetchOptions of the last query.

Returns:
always not-null if the query was syntactically ok


Copyright © 2010 Spolecne s.r.o. All Rights Reserved.