Package com.gigaspaces.datasource
Class DataSourceIdsQueryImpl
java.lang.Object
com.gigaspaces.datasource.DataSourceIdsQueryImpl
- All Implemented Interfaces:
DataSourceIdsQuery,InternalDataSourceIdsQuery
- Since:
- 9.5
- Author:
- Dan Kilman
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceIdsQueryImpl(ITypeDesc typeDescriptor, Object[] ids, IEntryHolder[] templates, SQLQueryBuilder queryBuilder, Class<?> dataClass, IDataConverter<IEntryPacket> converter) -
Method Summary
Modifier and TypeMethodDescriptionGets the prepared SQL representation of this ids query.
DataSourceQuery.supportsAsSQLQuery()return value should be checked before calling this method otherwise anUnsupportedOperationExceptionwill be thrown if the operation is not supported.getDataSourceIdQuery(int idIndex) Object[]getIds()boolean
-
Constructor Details
-
DataSourceIdsQueryImpl
public DataSourceIdsQueryImpl(ITypeDesc typeDescriptor, Object[] ids, IEntryHolder[] templates, SQLQueryBuilder queryBuilder, Class<?> dataClass, IDataConverter<IEntryPacket> converter)
-
-
Method Details
-
getTypeDescriptor
- Specified by:
getTypeDescriptorin interfaceDataSourceIdsQuery- Returns:
- The
SpaceTypeDescriptorrepresenting the type this query is for.
-
getIds
- Specified by:
getIdsin interfaceDataSourceIdsQuery- Returns:
- The IDs of the entries to get.
-
getDataSourceIdQuery
- Specified by:
getDataSourceIdQueryin interfaceInternalDataSourceIdsQuery- Parameters:
idIndex- The index of the id obtained by callingDataSourceIdsQuery.getIds().- Returns:
- a
DataSourceIdsQuerymatching the id denoted by idIndex.
-
supportsAsSQLQuery
public boolean supportsAsSQLQuery()- Specified by:
supportsAsSQLQueryin interfaceDataSourceIdsQuery- Returns:
- Whether this query has an SQL query representation.
-
getAsSQLQuery
Description copied from interface:DataSourceIdsQueryGets the prepared SQL representation of this ids query.
DataSourceQuery.supportsAsSQLQuery()return value should be checked before calling this method otherwise anUnsupportedOperationExceptionwill be thrown if the operation is not supported.- Specified by:
getAsSQLQueryin interfaceDataSourceIdsQuery- Returns:
- Prepared SQL representation this query.
-