Is it possible to implement with ODAC my own data transport level (like Direct mode in ODAC)?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Alexys
Posts: 5
Joined: Thu 12 Jul 2007 17:49

Is it possible to implement with ODAC my own data transport level (like Direct mode in ODAC)?

Post by Alexys » Wed 30 Jan 2008 12:34

Is it possible to implement with ODAC my own data transport level (like Direct mode in ODAC)?
For example, handle SQL from TOraSession, send it to my own ISAPI that runs this SQL and returns data in XML, and this XML loaded to the TOraDataSet…
Is it possible anyway?
Thanks.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 01 Feb 2008 14:45

You can not implement such data transport level that is transparent for code using ODAC.

But you can work in the following way:
1. Send a SQL to your server.
2. Server opens a TOraQuery component with SQL and saves result to XML. You can use SaveToXML method of TOraQuery.
3. Server sends XML to the client, and client opens this XML in TVirtualTable component using LoadFromStream or LoadFromFile methods of TVirtualTable.

Post Reply