Re: Determining database plugin at runtime

2013-03-30 Thread Paul Hoadley
On 31/03/2013, at 12:28 PM, John Huss wrote: > I wrote some utility methods to provide an easier and more obvious way to > access parts of the EOF stack - maybe it will help you or someone else in the > future. > > John > > Thanks John. Great stuff. -- Paul Hoadley http://logicsquad.n

Re: Determining database plugin at runtime

2013-03-30 Thread John Huss
On Sat, Mar 30, 2013 at 1:36 AM, Paul Hoadley wrote: > Hello, > > I (think I) want to determine what plugin is in use for a particular model > at runtime. What's the easiest way? (I see EOAdaptor.pluginName(), but, > somewhat embarrassingly, I can't quite work out how to get the EOAdaptor > obj

Re: Determining database plugin at runtime

2013-03-30 Thread Paul Hoadley
On 31/03/2013, at 7:33 AM, Matthew Ness wrote: > EOModelGroup group = EOModelGroup.defaultGroup(); > EOModel model = group.modelNamed("YourModel"); > EOAdaptor ad = EOAdaptor.adaptorWithModel(model); > log.debug("adaptor cd:"+ad.connectionDictionary()); > log.debug("adaptor pi:"+ad.plugInName());

Re: Determining database plugin at runtime

2013-03-30 Thread Paul Hoadley
Hi Klaus, On 31/03/2013, at 5:45 AM, Klaus Berkling wrote: > How about looking at the jdbc URL: > > dbConnectURLGLOBAL= jdbc:h2:file:... > dbConnectURLGLOBAL=jdbc:mysql:... > dbConnectURLGLOBAL==jdbc:oracle: Yeah, I thought about looking at those properties as a fallback. Just wanted to know

Re: Weird problem with D2W rules

2013-03-30 Thread Ramsey Gurley
On Mar 30, 2013, at 11:18 AM, Ramsey Gurley wrote: > > On Mar 29, 2013, at 3:37 PM, Ramsey Gurley wrote: > >> On Mar 29, 2013, at 2:27 PM, Freddie Tilley wrote: >> >>> at >>> er.modern.directtoweb.components.header.ERMD2WSimpleHeader.headerString(ERMD2WSimpleHeader.java:25) >>> >> >> My

Re: Determining database plugin at runtime

2013-03-30 Thread Matthew Ness
EOModelGroup group = EOModelGroup.defaultGroup(); EOModel model = group.modelNamed("YourModel"); EOAdaptor ad = EOAdaptor.adaptorWithModel(model); log.debug("adaptor cd:"+ad.connectionDictionary()); log.debug("adaptor pi:"+ad.plugInName()); On 31/03/2013, at 6:15 AM, Klaus Berkling wrote: >

Re: Determining database plugin at runtime

2013-03-30 Thread Klaus Berkling
On Mar 29, 2013, at 11:36 PM, Paul Hoadley wrote: > I (think I) want to determine what plugin is in use for a particular model at > runtime. What's the easiest way? (I see EOAdaptor.pluginName(), but, > somewhat embarrassingly, I can't quite work out how to get the EOAdaptor > object for a

Re: Weird problem with D2W rules

2013-03-30 Thread Ramsey Gurley
On Mar 29, 2013, at 3:37 PM, Ramsey Gurley wrote: > On Mar 29, 2013, at 2:27 PM, Freddie Tilley wrote: > >> at >> er.modern.directtoweb.components.header.ERMD2WSimpleHeader.headerString(ERMD2WSimpleHeader.java:25) >> > > My wonder says that line is: > > return stringValueForBinding(Keys