public class DataSourceIdsQueryImpl extends Object implements InternalDataSourceIdsQuery
Constructor and Description |
---|
DataSourceIdsQueryImpl(ITypeDesc typeDescriptor,
Object[] ids,
IEntryHolder[] templates,
SQLQueryBuilder queryBuilder,
Class<?> dataClass,
IDataConverter<IEntryPacket> converter) |
Modifier and Type | Method and Description |
---|---|
DataSourceSQLQuery |
getAsSQLQuery()
Gets the prepared SQL representation of this ids query.
DataSourceQuery.supportsAsSQLQuery() return value should be checked before calling this
method otherwise an UnsupportedOperationException will be thrown if the operation is
not supported. |
DataSourceIdQuery |
getDataSourceIdQuery(int idIndex) |
Object[] |
getIds() |
SpaceTypeDescriptor |
getTypeDescriptor() |
boolean |
supportsAsSQLQuery() |
public DataSourceIdsQueryImpl(ITypeDesc typeDescriptor, Object[] ids, IEntryHolder[] templates, SQLQueryBuilder queryBuilder, Class<?> dataClass, IDataConverter<IEntryPacket> converter)
public SpaceTypeDescriptor getTypeDescriptor()
getTypeDescriptor
in interface DataSourceIdsQuery
SpaceTypeDescriptor
representing the type this query is for.public Object[] getIds()
getIds
in interface DataSourceIdsQuery
public DataSourceIdQuery getDataSourceIdQuery(int idIndex)
getDataSourceIdQuery
in interface InternalDataSourceIdsQuery
idIndex
- The index of the id obtained by calling DataSourceIdsQuery.getIds()
.DataSourceIdsQuery
matching the id denoted by idIndex.public boolean supportsAsSQLQuery()
supportsAsSQLQuery
in interface DataSourceIdsQuery
public DataSourceSQLQuery getAsSQLQuery()
DataSourceIdsQuery
DataSourceQuery.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 DataSourceIdsQuery
Copyright © GigaSpaces.