public class DataSourceIdQueryImpl extends Object implements DataSourceIdQuery, DataSourceQuery
| Constructor and Description |
|---|
DataSourceIdQueryImpl(ITypeDesc typeDescriptor,
IEntryPacket entryPacket,
SQLQueryBuilder queryBuilder,
Class<?> dataClass,
EntryAdapter entryAdapter) |
| Modifier and Type | Method and Description |
|---|---|
DataSourceSQLQuery |
getAsSQLQuery()
Gets the prepared SQL representation of this query.
DataSourceQuery.supportsAsSQLQuery() return value should be checked before calling this
method otherwise an UnsupportedOperationException will be thrown if the operation is
not supported. |
int |
getBatchSize()
The value returned from this method can serve as a hint for the data source implementation
which indicates the batch size to be used in
SpaceDataSource.getDataIterator(DataSourceQuery)
method implementation (if such data source supports batching). |
Object |
getId() |
SpaceDocument |
getTemplateAsDocument()
Gets a
SpaceDocument representation of this query.DataSourceQuery.supportsTemplateAsDocument() return value should be checked before calling
this method otherwise an UnsupportedOperationException will be thrown if the
operation is not supported. |
Object |
getTemplateAsObject()
Gets an object representation of this query.
DataSourceQuery.supportsTemplateAsObject()
return value should be checked before calling this method otherwise an UnsupportedOperationException will be thrown if the operation is not supported. |
SpaceTypeDescriptor |
getTypeDescriptor() |
int |
getVersion() |
boolean |
supportsAsSQLQuery() |
boolean |
supportsTemplateAsDocument() |
boolean |
supportsTemplateAsObject() |
String |
toString() |
public DataSourceIdQueryImpl(ITypeDesc typeDescriptor, IEntryPacket entryPacket, SQLQueryBuilder queryBuilder, Class<?> dataClass, EntryAdapter entryAdapter)
public SpaceTypeDescriptor getTypeDescriptor()
getTypeDescriptor in interface DataSourceIdQuerygetTypeDescriptor in interface DataSourceQuerySpaceTypeDescriptor representing the type this query is for.public Object getId()
getId in interface DataSourceIdQuerypublic int getVersion()
getVersion in interface DataSourceIdQuerypublic DataSourceSQLQuery getAsSQLQuery()
DataSourceQueryDataSourceQuery.supportsAsSQLQuery() return value should be checked before calling this
method otherwise an UnsupportedOperationException will be thrown if the operation is
not supported.getAsSQLQuery in interface DataSourceQuerypublic Object getTemplateAsObject()
DataSourceQueryDataSourceQuery.supportsTemplateAsObject()
return value should be checked before calling this method otherwise an UnsupportedOperationException will be thrown if the operation is not supported.getTemplateAsObject in interface DataSourceQuerypublic SpaceDocument getTemplateAsDocument()
DataSourceQuerySpaceDocument representation of this query.DataSourceQuery.supportsTemplateAsDocument() return value should be checked before calling
this method otherwise an UnsupportedOperationException will be thrown if the
operation is not supported.getTemplateAsDocument in interface DataSourceQuerySpaceDocument representation of this query.public boolean supportsAsSQLQuery()
supportsAsSQLQuery in interface DataSourceQuerypublic boolean supportsTemplateAsObject()
supportsTemplateAsObject in interface DataSourceQuerypublic boolean supportsTemplateAsDocument()
supportsTemplateAsDocument in interface DataSourceQuerySpaceDocument representation.public int getBatchSize()
DataSourceQuerySpaceDataSource.getDataIterator(DataSourceQuery)
method implementation (if such data source supports batching). One should use this value with
care since it might return Integer.MAX_VALUE if the batch operation executed had a
request for unlimited results.getBatchSize in interface DataSourceQueryCopyright © GigaSpaces.