com.spoledge.audao.parser.gql
Class PreparedGql

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

public class PreparedGql
extends java.lang.Object

Prepared GQL query.


Nested Class Summary
static class PreparedGql.QueryType
          The query type enumeration.
 
Method Summary
 GqlExtTree execute(java.lang.Object... params)
          Executes GQL statement.
 java.lang.Iterable<Entity> executeQuery(java.lang.Object... params)
          Executes GQL query.
 int executeUpdate(java.lang.Object... params)
          Executes GQL update statement.
protected  java.lang.String formatError(java.lang.String gql, java.lang.Throwable t)
          Formats error message.
 java.lang.String[] getColumnNames()
          Returns the known column names or null.
 PreparedGql.QueryType getQueryType()
          Returns the type of the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQueryType

public PreparedGql.QueryType getQueryType()
Returns the type of the query.


getColumnNames

public java.lang.String[] getColumnNames()
Returns the known column names or null. This method can be called after the executeQuery(..) method only.


executeQuery

public java.lang.Iterable<Entity> executeQuery(java.lang.Object... params)
Executes GQL query.

Parameters:
params - the parameters to the GQL (referenced by :1, :2, ...)
Returns:
the numebr of processed records.

executeUpdate

public int executeUpdate(java.lang.Object... params)
Executes GQL update statement.

Parameters:
params - the parameters to the GQL (referenced by :1, :2, ...)
Returns:
the numebr of processed records.

execute

public GqlExtTree execute(java.lang.Object... params)
Executes GQL statement. This is a general method which does not distinguish SELECT / UPDATE / DELETE statements.

Parameters:
params - the parameters to the GQL (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.