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

Jochen Rau jochen.rau at typoplanet.de
Fri Jul 17 11:43:34 CEST 2009


Hi.

Karsten Dambekalns 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 have to withstand a temptation. But without it, we will have 
exec_SELECTquery in Extbase. Brrr!

>> 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. :)

It shivers me, too. I have just talked to Sebastian, and we will get rid 
of this, for sure ;-).

Regards

Jochen


-- 
Every nit picked is a bug fixed



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