Re: Prevalent Repository

"Justin T. Sampson" <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <[email protected]>
Hi Diego,

Sounds cool.

Does each method of PrevalenceRepository send a Query or Transaction to an
underlying Prevayler instance?

Are the Luncene indexes stored in the same Prevayler, or in Lucene's own
filesystem storage? Do you care about transactional consistency between the
indexes and the data? (You might not.)

Cheers,
Justin

--
Agile Focus - http://agilefocus.com/


On Mon, May 18, 2009 at 2:03 PM, Diego Miranda <[email protected]>wrote:

> Hi to all!
>
> We are using Prevayler in several projects. For those projects we've
> created a Prevalent
> Repository. This repository allows the objects to be queried and indexed
> with Lucene.
> We provide a query and indexing abstraction to simplify the search of the
> objects stored
> in the repository.
>
> Here, some examples:
>
> - Creating a Repository and storing data:
>
> PrevalenceRepository prevalence = PrevalenceRepository.newInstance();
> Repository repository = prevalence.openRepository ("MyApp");
>
> repository.storeOrUpdate (person);
> repository.storeOrUpdate (collectionOfPersons);
>
> - Creating index:
>
> repository.createIndex (Person.class, "addresses.state");
> repository.createIndex (Person.class, "lastName");
>
> - Querying the objects:
>
> QueryCriteria query = from(Person.class).where(
>             and(eq("addresses.street", "Melo"),eq("lastName", "Smith"))
>             );
> Collection<Person> persons = (Collection<Person>)repository.find(query);
>
>
> - Deleting objects:
>
> repository.delete ( personOid )
>
> - Working with the repository data
>
> repository.executeDeterministic ( new DeterministicOperations (),
> argument1, argument2 );
>
>
> I'd like to know (if possible) what do you think about this!
>
> Best regards!
> Diego Miranda
> diego.miranda at gmail dot com
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects

_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.