String expectedIndex, int... expected) {
tx.begin();
holder = new QueryHolder(getInstanceType(), propertyName, expectedIndex,
extraPropertyName);
// specify the where clause
Predicate extraPredicate = extraPredicateProvider.getPredicate(holder);
holder.dobj.where(holder.greaterEqual.and(extraPredicate));
// create the query
holder.createQuery(session);
// set the parameter value
holder.setParameterEqual(parameterValue);