com.spoledge.audao.parser.gql
Class GqlExtDynamic

java.lang.Object
  extended by com.spoledge.audao.parser.gql.GqlExtDynamic

public class GqlExtDynamic
extends java.lang.Object

Parses GQL queries to low-level GAE API calls. This class is not thread safe. Synchronization must be done externally.


Field Summary
protected  DatastoreService ds
           
protected  Log log
          The logger.
 
Constructor Summary
GqlExtDynamic()
           
GqlExtDynamic(DatastoreService ds)
           
 
Method Summary
protected  java.lang.String formatError(java.lang.String gql, java.lang.Throwable t)
          Formats error message.
 PreparedGql prepare(java.lang.String gql)
          Prepares (parses) GQL query.
 void setDatastoreService(DatastoreService ds)
          Sets the DatastoreService which is needed for multiple queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Log log
The logger.


ds

protected DatastoreService ds
Constructor Detail

GqlExtDynamic

public GqlExtDynamic()

GqlExtDynamic

public GqlExtDynamic(DatastoreService ds)
Method Detail

setDatastoreService

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


prepare

public PreparedGql prepare(java.lang.String gql)
Prepares (parses) GQL query.

Parameters:
gql - the GQL query - the parameters to the GQL are referenced by :1, :2, ...

formatError

protected java.lang.String formatError(java.lang.String gql,
                                       java.lang.Throwable t)
Formats error message.



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