[TYPO3-50-general] Stable API for Persistence package

Karsten Dambekalns karsten at typo3.org
Fri Jul 17 09:40:55 CEST 2009


Hi Jochen.

On 16.07.2009 21:02 Uhr, Jochen Rau wrote:
> What do you suggest to set the statement as string like in
>
> Query QueryManager.
> createQuery(String statement, String language)
>
> Using the Query object as wrapper for a string statement is a requested
> feature of Extbase.

Well, for now support for string-based queries is not planned for FLOW3. 
And given that we want to keep abstraction of the underlying storage 
layer, it isn't easy to decide on a format.

JSR-283 uses JCR-SQL2, a SQL dialect, but then there is also OQL in 
various forms, ...

For extbase it would be simply SQL? Why not matching($query->SQL()) if 
it needs to exist? Or $query->execute($queryString)?

To be honest, I'd try to keep it from existing...

> I had the Repository.createQuery() in mind. It is not part of the public
> interface but will be used quite frequently. Any changes planned?
> (Sebastian introduced an argument $useStoragePageId. So any changes in
> the signature of this method will make a auto-porter more difficult.)

It is part of the public API.

But: No changes planned. Storage PID, uh, shudder. :)

Regards,
Karsten


More information about the TYPO3-project-5_0-general mailing list