ProvisioningServiceClient.createEnrollmentGroupRegistrationStateQuery 方法

定义

重载

createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId)

Factory to create a registration status query.

This method will create a new registration status query for a specific enrollment group on the Device Provisioning Service and return it as a Query iterator.

The Device Provisioning Service expects a SQL query in the QuerySpecification, for instance "SELECT * FROM enrollments" 

</code> .</p>

createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)

Factory to create a registration status query.

This method will create a new registration status query for a specific enrollment group on the Device Provisioning Service and return it as a Query iterator.

The Device Provisioning Service expects a SQL query in the QuerySpecification, for instance "SELECT * FROM enrollments" 

</code> .</p>

For each iteration, the Query will return a List of objects correspondent to the query result. The maximum number of items per iteration can be specified by the pageSize. It is optional, you can provide 0 for default pageSize or use the API createIndividualEnrollmentQuery(QuerySpecification querySpecification).

createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId)

Factory to create a registration status query.

This method will create a new registration status query for a specific enrollment group on the Device Provisioning Service and return it as a Query iterator.

The Device Provisioning Service expects a SQL query in the QuerySpecification, for instance "SELECT * FROM enrollments" 

</code> .</p>

public Query createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId)

参数

querySpecification
QuerySpecification

the QuerySpecification with the SQL query. It cannot benull 

</code> . </p>
enrollmentGroupId
String

theString 

</code> that identifies the enrollmentGroup. It cannot be<code>null 

</code> or empty. </p>

返回

The Query iterator.

createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)

Factory to create a registration status query.

This method will create a new registration status query for a specific enrollment group on the Device Provisioning Service and return it as a Query iterator.

The Device Provisioning Service expects a SQL query in the QuerySpecification, for instance "SELECT * FROM enrollments" 

</code> .</p>

For each iteration, the Query will return a List of objects correspondent to the query result. The maximum number of items per iteration can be specified by the pageSize. It is optional, you can provide 0 for default pageSize or use the API createIndividualEnrollmentQuery(QuerySpecification querySpecification).

public Query createEnrollmentGroupRegistrationStateQuery(QuerySpecification querySpecification, String enrollmentGroupId, int pageSize)

参数

querySpecification
QuerySpecification

the QuerySpecification with the SQL query. It cannot benull 

</code> . </p>
enrollmentGroupId
String

theString 

</code> that identifies the enrollmentGroup. It cannot be<code>null 

</code> or empty. </p>
pageSize
int

theint 

</code> with the maximum number of items per iteration. It can be 0 for default, but not negative. </p>

返回

The Query iterator.

例外

IllegalArgumentException

if the provided parameters are not correct.

适用于