Re: Get Connection out of EOEditingContext or EOObjectStoreCoordinator [WO5.2.4]

Patrick Middleton <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On 12 Apr 2006, at 15:30, COAST wrote:

> Hi List
>
> how can you get the Connection (java.sql.DriverManager.getConnection 
> ()) out of
> EOEditingContext or EOObjectStoreCoordinator or ...
>
> We need the Connection cause we want to stream BLOB's in / out of  
> ORACLE.
> It seems that NSData isn't streaming BLOB's in / out of ORACLE but  
> the following code is doing so:
>  ...

connection() in com.webobjects.jdbcadaptor.JDBCContext .

JDBCContext is a subclass of EOAdaptorContext.  Obtain an instance by
[1] public static EODatabaseContext registeredDatabaseContextForModel 
(EOModel model, EOEditingContext editingContext)
[2] public EOAdaptorContext adaptorContext()


Hope this helps!

-- Patrick
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.