Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
FW: [dali-dev] How to reach the real dtp connection, wrapped by org.eclipse.jpt.db.internal.DTPConnectionWrapper

Title: How to reach the real dtp connection, wrapped by org.eclipse.jpt.db.internal.DTPConnectionWrapper
Hi Neil,
 
The issue I faced is the following. For our internal purposes, we are wrapped our specific data store as DTP connection. It contains project and additional info, which are specific for this data store. So, in order to trigger the specific processing, I should check whether this is "our" connection. However I faced a way to obtain the "real" connection. Since I managed to reach it from ProfileManager:
 
  IJpaDataSource dataSource = jpaProject.getDataSource();
  String cpName = dataSource.getConnectionProfileName();
  IConnectionProfile profile = "">  IManagedConnection mconn = profile.getManagedConnection("java.sql.Connection");
  IConnection conn = mconn.getConnection();
  Object rawConnection = conn.getRawConnection();
 
may be this additional api is not necessary. So if you estimate, that this is not desired, you could ignore this request
 
Thank you,
Dimiter


From: dali-dev-bounces@xxxxxxxxxxx [mailto:dali-dev-bounces@xxxxxxxxxxx] On Behalf Of Neil Hauge
Sent: Tuesday, 29. May 2007 18:41
To: General Dali EJB ORM developer discussion.
Subject: Re: [dali-dev] How to reach the real dtp connection,wrapped by org.eclipse.jpt.db.internal.DTPConnectionWrapper

Hi Dimiter,

What info were you looking for from the DTP connection?  We are trying to provide a Facade with our DTPConnectionWrapper and hide the DTP model where possible.  It might make sense for us to provide the DTP Connection, but wanted to make sure this is what you really need, or whether we just need to add additional api to the wrapper.

Let me know,
Neil


Dimitrov, Dimiter wrote:

Hi there,

Could you help me with the following issue:
jpaProject.connectionProfile().getConnection() returns DTPConnectionWrapper
I need the real DTP connection, wrapped from this wrapper. How can I obtain it?
Thank you in advance.

Best Regards,
Dimiter


_______________________________________________ dali-dev mailing list dali-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dali-dev
_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top