+ "case when DataSize < 0 then 0 else DataSize end as GoogleDataSize "
+ "from WebNodes b)";
ClientValue node = traversalClient.ListNodes("DataID = " + docid,
view, SELECT_LIST);
if (node == null || node.size() == 0) {
throw new RepositoryDocumentException("Not found: " + docid);
}
doc = new AgingDocument(objid);
// Collect the recarray-based properties.
for (int i = 0; i < FIELDS.length; i++) {
if (FIELDS[i].propertyNames.length > 0) {
ClientValue value = node.toValue(0, FIELDS[i].fieldName);
if (value.isDefined()) {
doc.addProperty(FIELDS[i], value);
}
}
}
documentCache.put(objid, doc);
return doc;
} catch (RepositoryDocumentException rde) {
throw rde;
} catch (RepositoryException re) {
if (isDocumentError()) {
throw new RepositoryDocumentException(
"Failed to access document content for docid " + docid, re);
} else {
throw re;
}
}