openpreserve / scout

SCOUT - A preservation watch system
http://scout.openplanetsfoundation.org
Apache License 2.0
13 stars 4 forks source link

[Core] setValue() needs Long value #156

Closed peshkira closed 12 years ago

peshkira commented 12 years ago

The c3po adaptor (and others) has numeric values that have a DataType Long, but the PropertyValue.setValue(Object value) method does not support Long.

Currently the adaptor returns the values as String. Is the solution of Issue #139 enough, or should we add Long to the possible datatypes? Was there a reason, why we skipped Long?

luis100 commented 12 years ago

Jena or Jenabean didn't support Long. But let me create a test that proves it, it could have changed in the lastest update of Jena.

luis100 commented 12 years ago

Just tested it more thoughroughly and I found out that Jenabean does not support Long but support the primitive long. Will add the long data type to PropertyValue and will expect only the RenderingHint.STORAGE_VOLUME when data type is LONG. @peshkira please change your code accordingly.