}
else {
if (getOutArguments().size() == 0 && getInOutArguments().size() == 0) {
if (isStoredFunctionQueryHandler()) {
if (!xrService.descriptorsByQName.containsKey(type)) {
databaseQueryToInitialize = new ValueReadQuery();
}
else {
// read object query for the class mapped to the type
databaseQueryToInitialize = new ReadObjectQuery(xrService.getTypeClass(type));
}
}
else {
// special case - no out args for SP: the return
// will be a single int
// rowcount
databaseQueryToInitialize = new DataModifyQuery();
}
}
else {
if (!xrService.descriptorsByQName.containsKey(type)) {
if (type.equals(SXF_QNAME)) {
databaseQueryToInitialize = new DataReadQuery();
}
else {
databaseQueryToInitialize = new ValueReadQuery();
}
}
else {
// read object query for the class mapped to the type
databaseQueryToInitialize = new ReadObjectQuery(xrService.getTypeClass(type));
}
}
}
}
else {
databaseQueryToInitialize = new ValueReadQuery();
}
databaseQueryToInitialize.bindAllParameters();
setDatabaseQuery(databaseQueryToInitialize);
}