On Mon, Jan 25, 2010 at 11:04, JOSE FELIX HERNANDEZ BARRIO <[email protected]> wrote: > i think that if we extend the datastore interface, especially the function : > DataRecord addRecord(InputStream stream) > To add more information, for example: workspace name, node name, property > name ... > it would be possible to create more complex implementation.
That would be against a core principle of the data store. It is independent from the JCR structure and a record is always only added once, ie. if there are multiple usages of the same binary (= file) in the JCR, it will be stored only once in the Datastore. The addRecord method will only be called for the first time then. Regards, Alex -- Alexander Klimetschek [email protected]
