public class QueryStatementImpl extends Object implements QueryStatement, Cloneable
Constructor and Description |
---|
QueryStatementImpl(Session session,
String statement) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
setDateTime(int parameterIndex,
boolean prefix,
Calendar... cal) |
protected void |
setDateTime(int parameterIndex,
boolean prefix,
Date... date) |
protected void |
setDateTime(int parameterIndex,
boolean prefix,
long... ms) |
void |
setDateTime(int parameterIndex,
Calendar... cal)
Sets the designated parameter to the given DateTime value.
|
void |
setDateTime(int parameterIndex,
Date... date)
Sets the designated parameter to the given DateTime value.
|
void |
setDateTime(int parameterIndex,
long... ms)
Sets the designated parameter to the given DateTime value.
|
void |
setDateTimeTimestamp(int parameterIndex,
Calendar... cal)
Sets the designated parameter to the given DateTime value with the prefix 'TIMESTAMP '.
|
void |
setDateTimeTimestamp(int parameterIndex,
Date... date)
Sets the designated parameter to the given DateTime value with the prefix 'TIMESTAMP '.
|
void |
setDateTimeTimestamp(int parameterIndex,
long... ms)
Sets the designated parameter to the given DateTime value with the prefix '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 |
setStringContains(int parameterIndex,
String str)
Sets the designated parameter to the given string in a CMIS contains statement.
|
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() |
public void setType(int parameterIndex, String typeId)
QueryStatement
setType
in interface QueryStatement
public void setType(int parameterIndex, ObjectType type)
QueryStatement
setType
in interface QueryStatement
public void setProperty(int parameterIndex, String typeId, String propertyId)
QueryStatement
setProperty
in interface QueryStatement
public void setProperty(int parameterIndex, PropertyDefinition<?> propertyDefinition)
QueryStatement
setProperty
in interface QueryStatement
public void setNumber(int parameterIndex, Number... num)
QueryStatement
setNumber
in interface QueryStatement
public void setString(int parameterIndex, String... str)
QueryStatement
setString
in interface QueryStatement
public void setStringContains(int parameterIndex, String str)
QueryStatement
setStringContains
in interface QueryStatement
public void setStringLike(int parameterIndex, String str)
QueryStatement
setStringLike
in interface QueryStatement
public void setId(int parameterIndex, ObjectId... id)
QueryStatement
setId
in interface QueryStatement
public void setUri(int parameterIndex, URI... uri)
QueryStatement
setUri
in interface QueryStatement
public void setUrl(int parameterIndex, URL... url)
QueryStatement
setUrl
in interface QueryStatement
public void setBoolean(int parameterIndex, boolean... bool)
QueryStatement
setBoolean
in interface QueryStatement
public void setDateTime(int parameterIndex, Calendar... cal)
QueryStatement
setDateTime
in interface QueryStatement
public void setDateTimeTimestamp(int parameterIndex, Calendar... cal)
QueryStatement
setDateTimeTimestamp
in interface QueryStatement
protected void setDateTime(int parameterIndex, boolean prefix, Calendar... cal)
public void setDateTime(int parameterIndex, Date... date)
QueryStatement
setDateTime
in interface QueryStatement
public void setDateTimeTimestamp(int parameterIndex, Date... date)
QueryStatement
setDateTimeTimestamp
in interface QueryStatement
protected void setDateTime(int parameterIndex, boolean prefix, Date... date)
public void setDateTime(int parameterIndex, long... ms)
QueryStatement
setDateTime
in interface QueryStatement
public void setDateTimeTimestamp(int parameterIndex, long... ms)
QueryStatement
setDateTimeTimestamp
in interface QueryStatement
protected void setDateTime(int parameterIndex, boolean prefix, long... ms)
public String toQueryString()
QueryStatement
toQueryString
in interface QueryStatement
public ItemIterable<QueryResult> query(boolean searchAllVersions)
QueryStatement
query
in interface QueryStatement
Session.query(String, boolean)
public ItemIterable<QueryResult> query(boolean searchAllVersions, OperationContext context)
QueryStatement
query
in interface QueryStatement
Session.query(String, boolean, OperationContext)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.