in src/main/java/org/apache/jackrabbit/ocm/manager/objectconverter/impl/SimpleFieldsHelper.java [214:244]
public void storeSimpleFields(Session session, Object object, ClassDescriptor classDescriptor, Node objectNode) {
try {
ValueFactory valueFactory = session.getValueFactory();
Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator();
while (fieldDescriptorIterator.hasNext()) {
FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next();
String fieldName = fieldDescriptor.getFieldName();
String jcrName = fieldDescriptor.getJcrName();
// Of course, Path && UUID fields are not stored as property
if (fieldDescriptor.isPath() || fieldDescriptor.isUuid()) {
continue;
}
storeSimpleField(object, objectNode, valueFactory, fieldDescriptor, fieldName, jcrName);
}
} catch (ValueFormatException vfe) {
throw new ObjectContentManagerException("Cannot persist properties of object " + object + ". Value format exception.", vfe);
} catch (VersionException ve) {
throw new ObjectContentManagerException("Cannot persist properties of object " + object + ". Versioning exception.", ve);
} catch (LockException le) {
throw new ObjectContentManagerException("Cannot persist properties of object " + object + " on locked node.", le);
} catch (ConstraintViolationException cve) {
throw new ObjectContentManagerException("Cannot persist properties of object " + object + ". Constraint violation.", cve);
} catch (RepositoryException re) {
throw new org.apache.jackrabbit.ocm.exception.RepositoryException("Cannot persist properties of object "
+ object, re);
}
}