org.apache.chemistry.opencmis.client.runtime
Class QueryStatementImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.runtime.QueryStatementImpl
All Implemented Interfaces:
Cloneable, QueryStatement

public class QueryStatementImpl
extends Object
implements QueryStatement

QueryStatement implementation.


Constructor Summary
QueryStatementImpl(Session session, String statement)
           
 
Method Summary
protected  Object clone()
           
 ItemIterable<QueryResult> query(boolean searchAllVersions)
          Executes the query.
 ItemIterable<QueryResult> query(boolean searchAllVersions, OperationContext context)
          Executes the query.
 void setBoolean(int parameterIndex, boolean... bool)
          Sets the designated parameter to the given boolean.
 void setDateTime(int parameterIndex, Calendar... cal)
          Sets the designated parameter to the given timestamp.
 void setDateTime(int parameterIndex, Date... date)
          Sets the designated parameter to the given timestamp.
 void setDateTime(int parameterIndex, long... ms)
          Sets the designated parameter to the given timestamp.
 void setId(int parameterIndex, ObjectId... id)
          Sets the designated parameter to the given object id.
 void setNumber(int parameterIndex, Number... num)
          Sets the designated parameter to the given number.
 void setProperty(int parameterIndex, PropertyDefinition<?> propertyDefinition)
          Sets the designated parameter to the query name of the given property.
 void setProperty(int parameterIndex, String typeId, String propertyId)
          Sets the designated parameter to the query name of the given property.
 void setString(int parameterIndex, String... str)
          Sets the designated parameter to the given string.
 void setStringLike(int parameterIndex, String str)
          Sets the designated parameter to the given string.
 void setType(int parameterIndex, ObjectType type)
          Sets the designated parameter to the query name of the given type.
 void setType(int parameterIndex, String typeId)
          Sets the designated parameter to the query name of the given type id.
 void setUri(int parameterIndex, URI... uri)
          Sets the designated parameter to the given URI.
 void setUrl(int parameterIndex, URL... url)
          Sets the designated parameter to the given URL.
 String toQueryString()
          Returns the query statement.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryStatementImpl

public QueryStatementImpl(Session session,
                          String statement)
Method Detail

setType

public void setType(int parameterIndex,
                    String typeId)
Description copied from interface: QueryStatement
Sets the designated parameter to the query name of the given type id.

Specified by:
setType in interface QueryStatement

setType

public void setType(int parameterIndex,
                    ObjectType type)
Description copied from interface: QueryStatement
Sets the designated parameter to the query name of the given type.

Specified by:
setType in interface QueryStatement

setProperty

public void setProperty(int parameterIndex,
                        String typeId,
                        String propertyId)
Description copied from interface: QueryStatement
Sets the designated parameter to the query name of the given property.

Specified by:
setProperty in interface QueryStatement

setProperty

public void setProperty(int parameterIndex,
                        PropertyDefinition<?> propertyDefinition)
Description copied from interface: QueryStatement
Sets the designated parameter to the query name of the given property.

Specified by:
setProperty in interface QueryStatement

setNumber

public void setNumber(int parameterIndex,
                      Number... num)
Description copied from interface: QueryStatement
Sets the designated parameter to the given number.

Specified by:
setNumber in interface QueryStatement

setString

public void setString(int parameterIndex,
                      String... str)
Description copied from interface: QueryStatement
Sets the designated parameter to the given string.

Specified by:
setString in interface QueryStatement

setStringLike

public void setStringLike(int parameterIndex,
                          String str)
Description copied from interface: QueryStatement
Sets the designated parameter to the given string. It does not escape backslashes ('\') in front of "%' and '_'.

Specified by:
setStringLike in interface QueryStatement

setId

public void setId(int parameterIndex,
                  ObjectId... id)
Description copied from interface: QueryStatement
Sets the designated parameter to the given object id.

Specified by:
setId in interface QueryStatement

setUri

public void setUri(int parameterIndex,
                   URI... uri)
Description copied from interface: QueryStatement
Sets the designated parameter to the given URI.

Specified by:
setUri in interface QueryStatement

setUrl

public void setUrl(int parameterIndex,
                   URL... url)
Description copied from interface: QueryStatement
Sets the designated parameter to the given URL.

Specified by:
setUrl in interface QueryStatement

setBoolean

public void setBoolean(int parameterIndex,
                       boolean... bool)
Description copied from interface: QueryStatement
Sets the designated parameter to the given boolean.

Specified by:
setBoolean in interface QueryStatement

setDateTime

public void setDateTime(int parameterIndex,
                        Calendar... cal)
Description copied from interface: QueryStatement
Sets the designated parameter to the given timestamp.

Specified by:
setDateTime in interface QueryStatement

setDateTime

public void setDateTime(int parameterIndex,
                        Date... date)
Description copied from interface: QueryStatement
Sets the designated parameter to the given timestamp.

Specified by:
setDateTime in interface QueryStatement

setDateTime

public void setDateTime(int parameterIndex,
                        long... ms)
Description copied from interface: QueryStatement
Sets the designated parameter to the given timestamp.

Specified by:
setDateTime in interface QueryStatement

toQueryString

public String toQueryString()
Description copied from interface: QueryStatement
Returns the query statement.

Specified by:
toQueryString in interface QueryStatement

query

public ItemIterable<QueryResult> query(boolean searchAllVersions)
Description copied from interface: QueryStatement
Executes the query.

Specified by:
query in interface QueryStatement
See Also:
Session.query(String, boolean)

query

public ItemIterable<QueryResult> query(boolean searchAllVersions,
                                       OperationContext context)
Description copied from interface: QueryStatement
Executes the query.

Specified by:
query in interface QueryStatement
See Also:
Session.query(String, boolean, OperationContext)

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.