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)
QueryStatementsetType in interface QueryStatementpublic void setType(int parameterIndex,
ObjectType type)
QueryStatementsetType in interface QueryStatementpublic void setProperty(int parameterIndex,
String typeId,
String propertyId)
QueryStatementsetProperty in interface QueryStatementpublic void setProperty(int parameterIndex,
PropertyDefinition<?> propertyDefinition)
QueryStatementsetProperty in interface QueryStatementpublic void setNumber(int parameterIndex,
Number... num)
QueryStatementsetNumber in interface QueryStatementpublic void setString(int parameterIndex,
String... str)
QueryStatementsetString in interface QueryStatementpublic void setStringContains(int parameterIndex,
String str)
QueryStatementsetStringContains in interface QueryStatementpublic void setStringLike(int parameterIndex,
String str)
QueryStatementsetStringLike in interface QueryStatementpublic void setId(int parameterIndex,
ObjectId... id)
QueryStatementsetId in interface QueryStatementpublic void setUri(int parameterIndex,
URI... uri)
QueryStatementsetUri in interface QueryStatementpublic void setUrl(int parameterIndex,
URL... url)
QueryStatementsetUrl in interface QueryStatementpublic void setBoolean(int parameterIndex,
boolean... bool)
QueryStatementsetBoolean in interface QueryStatementpublic void setDateTime(int parameterIndex,
Calendar... cal)
QueryStatementsetDateTime in interface QueryStatementpublic void setDateTimeTimestamp(int parameterIndex,
Calendar... cal)
QueryStatementsetDateTimeTimestamp in interface QueryStatementprotected void setDateTime(int parameterIndex,
boolean prefix,
Calendar... cal)
public void setDateTime(int parameterIndex,
Date... date)
QueryStatementsetDateTime in interface QueryStatementpublic void setDateTimeTimestamp(int parameterIndex,
Date... date)
QueryStatementsetDateTimeTimestamp in interface QueryStatementprotected void setDateTime(int parameterIndex,
boolean prefix,
Date... date)
public void setDateTime(int parameterIndex,
long... ms)
QueryStatementsetDateTime in interface QueryStatementpublic void setDateTimeTimestamp(int parameterIndex,
long... ms)
QueryStatementsetDateTimeTimestamp in interface QueryStatementprotected void setDateTime(int parameterIndex,
boolean prefix,
long... ms)
public String toQueryString()
QueryStatementtoQueryString in interface QueryStatementpublic ItemIterable<QueryResult> query(boolean searchAllVersions)
QueryStatementquery in interface QueryStatementSession.query(String, boolean)public ItemIterable<QueryResult> query(boolean searchAllVersions, OperationContext context)
QueryStatementquery in interface QueryStatementSession.query(String, boolean, OperationContext)protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.