[
https://issues.apache.org/jira/browse/JCR-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Esteban Franqueiro updated JCR-1154:
------------------------------------
Attachment: jr-1.3.1-eaf.zip
This is an implementation of a database-based data store. It currently uses SQL
Server but this can be changed by subclassing the DatabaseDataStore class and
overriding its buildSQLStatements() method as usual. As discussed, this impl
uses UUIDs for the record id's, but we'll be working out a solution like the
one proposed by Thomas.
Also included is a garbage collector (based on the initial implementation by
Thomas). The changes are mostly cosmetic, to generalize it for the file and
database DS.
In RepositoryImpl's constructor is the code to initialize the garbage
collector, according to the configuration in the repository.xml file.
In the included InternalValue we added methods useDataStore()/setDataStore() so
we can avoid relaying on the system property.
There are a few tests, for different cases (we couldn't cover every corner
case, of course).
Please note that there are a few design decisions in which we had to take into
account the application we're building on top of Jackrabbit, but we tried very
hard to keep these to a minimum while at the same time trying to simplify each
time we have to update the version of Jackrabbit, since our application extends
some of it's functionality (specifically, the database data store :-) ). I
mention the ones I remember now: the boolean parameter in
DatabaseDataStore.getConnection(), and the DatabaseRecord implementation. We
should further discuss these issues.
Finally, note that the attachment is NOT a patch since my working version has
many patches applied to it.
> Database Data Store
> -------------------
>
> Key: JCR-1154
> URL: https://issues.apache.org/jira/browse/JCR-1154
> Project: Jackrabbit
> Issue Type: New Feature
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Fix For: 1.4
>
> Attachments: jr-1.3.1-eaf.zip
>
>
> We want to have a database backed data store implementation.
> An implementation using files is already available as part of JCR-926.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.