How to use a FreeformStatementDelegate in FreeFormQuery?

Hi,

I’m trying to figure out how to use a FreeformStatementDelegate with a FreeformQuery!

Reading the Vaadin Book on this matter is far too brief for me to figure out how this has to be done, sorry!

How does the FreeformQuery know which FreeformStatementDelegate to use?

The topic in the book ends with the remark:

‘A simple demo implementation of this interface can be found in the SQLContainer package, more specifically in the class com.vaadin.addon.sqlcontainer.demo.DemoFreeformQueryDelegate.’,

But even having a look at the demo doesn’t give me any hint on how to tackle it!

Please, can someone explain this a bit in more detail?
Thanks in advance!

Regards,
Gerard