Re: ibatis 2.2.0 timeout and oracle drivers.

2006-08-28 Thread Jeff Butler
It didn't make the "not yet documented" page because it is fully documented in the developer's guide.   Jeff Butler   On 8/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Thanks for the answer to your own question. :-)Any chance you could add that to the WIKI? http://opensource.atlassian.com/conflu

Re: Using new Abator generated criteria and example

2006-08-28 Thread Jeff Butler
Sure - I'll add it for the next release.  I don't know when that will be.   Jeff Butler   On 8/28/06, Rashmi Dixit <[EMAIL PROTECTED]> wrote: Thanks, Jeff. Will you consider adding this clear method to Abator generated example itself? If not, any reasons why?   Regards ~Rashmi   From: Jef

Re: Real difference between TypeHandler and TypeHandlerCallback

2006-08-28 Thread Clinton Begin
Yep!Look at the interfaces, the differences become more clear.  Cheers,ClintonOn 8/28/06, Jan Vissers < [EMAIL PROTECTED]> wrote:Well okay then...So I take it basically they can do the same for me? Clinton Begin wrote:> TypeHandlerCallback is more abstract and simpler/safer to implement.>> TypeHand

Re: Real difference between TypeHandler and TypeHandlerCallback

2006-08-28 Thread Jan Vissers
Well okay then... So I take it basically they can do the same for me? Clinton Begin wrote: TypeHandlerCallback is more abstract and simpler/safer to implement. TypeHandler is a bit trickier to implement and is a bit closer to the metal. You can use either one to implement a custom type handler

Re: Real difference between TypeHandler and TypeHandlerCallback

2006-08-28 Thread Clinton Begin
TypeHandlerCallback is more abstract and simpler/safer to implement.TypeHandler is a bit trickier to implement and is a bit closer to the metal.  You can use either one to implement a custom type handler. My recommendation is to use TypeHandlerCallback , and then only use TypeHandler only when nece

Real difference between TypeHandler and TypeHandlerCallback

2006-08-28 Thread Jan Vissers
Apart from the fact that the former is engine and latter is client - what are the real differences? Reason I'm asking, is didn't have any issues specifying a (custom) TypeHandler class in my mapping instead of a TypeHandlerCallBack. (O yeah, I couldn't only specify the TypeHandler, but also use

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Larry Meadors
On 8/28/06, Scott Warner <[EMAIL PROTECTED]> wrote: Does the sqlmap namespace attribute have the same restriction? I don't think so. It stems from the implementation - we look at the id of the element, and if it contains a ".", we do not add the namespace. No such check is made on the namespac

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Scott Warner
I think that would be a good idea. It would prevent people like me from shooting themselves in the foot. Does the sqlmap namespace attribute have the same restriction? Scott Warner Larry Meadors wrote: I am wondering if the client should throw an exception if the id of an element contains a

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Larry Meadors
I am wondering if the client should throw an exception if the id of an element contains a dot - since it causes what I would consider unexpected behavior, I think it should. Essentially, what this is doing is letting you silently create (or replace) an element in another namespace. Larry On 8/

Re: Distinguish null and not null parameters

2006-08-28 Thread Vadim Grinshpun
Hi, I don't have a direct answer to your question, but I can suggest a nice (IMHO :) workaround. You can use a macro language, such as GNU m4, to create macros, and then use them in your code. For instance, you could define a macro that takes in as parameters the property name and the field nam

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Scott Warner
Thanks, I wouldn't have thought of that because it has been working just fine until this release. I will change my ids and namespaces (I use periods there too). Scott Warner Larry Meadors wrote: hh...OK. Using a "." in an id confounds the namespace stuff..I am really suprised that it

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Larry Meadors
hh...OK. Using a "." in an id confounds the namespace stuff..I am really suprised that it works in 2.1.7 - it shouldn't. I'd suggest changing the id from "Results.Fields" to "ResultsFields" or something without the "." in it. Larry On 8/28/06, Scott Warner <[EMAIL PROTECTED]> wrote:

Re: [2.2.0] Support for Oracle Ref Cursor

2006-08-28 Thread Jan Vissers
Done - hope I've put it in the right place: It is on the wiki in the "How do I..." section: How do I use an Oracle Ref Cursor? > Awesome example Jan! Any chance you could put it on the WIKI? Please? > > :-) > > Larry > > > On 8/27/06, Jan Vissers <[EMAIL PROTECTED]> wrote: >> Excuse me the DO

Re: SQL fragment does not respect namespaces in 2.2.0 beta

2006-08-28 Thread Scott Warner
Thanks for looking at this. I modified your test to show you what I am doing that is breaking. This test passes in 2.1.7 and breaks in 2.2.0. Scott Warner === http://ibatis.apache.org/dtd/sql-map-config-2.dtd";>

RE: Using new Abator generated criteria and example

2006-08-28 Thread Rashmi Dixit
Thanks, Jeff. Will you consider adding this clear method to Abator generated example itself? If not, any reasons why?   Regards ~Rashmi   From: Jeff Butler [mailto:[EMAIL PROTECTED] Sent: Saturday, August 26, 2006 8:07 PM To: user-java@ibatis.apache.org Subject: Re: Using new

Re: ibatis 2.2.0 timeout and oracle drivers.

2006-08-28 Thread Larry Meadors
Thanks for the answer to your own question. :-) Any chance you could add that to the WIKI? http://opensource.atlassian.com/confluence/oss/display/IBATIS/Home I don't think it even made it to the "Not yet docuemented" page... Larry On 8/28/06, Guido García Bernardo <[EMAIL PROTECTED]> wrote:

Re: ibatis 2.2.0 timeout and oracle drivers.

2006-08-28 Thread Guido García Bernardo
It works, throwing a ORA-01013 SQL exception. regards. Guido García Bernardo escribió: Hello, I am using Oracle 9i release 2 drivers downloaded from Oracle (http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html). I am triying to use the new timeout properties: and

Re: [2.2.0] Support for Oracle Ref Cursor

2006-08-28 Thread Clinton Begin
For sure.   Echo Larry.  This is not only an excellent example of ResultSet types, but also an excellent example of how the community works.  When you solve your own problem, share it!Nice work Jan.Clinton On 8/28/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Awesome example Jan! Any chance you coul

Re: [2.2.0] Support for Oracle Ref Cursor

2006-08-28 Thread Larry Meadors
Awesome example Jan! Any chance you could put it on the WIKI? Please? :-) Larry On 8/27/06, Jan Vissers <[EMAIL PROTECTED]> wrote: Excuse me the DOCTYPE decl is deprecated, it should have been: http://ibatis.apache.org/dtd/sql-map-2.dtd";> Jan Vissers wrote: > Well, this seems to work out

Re: Abator Version 1.0.0 Now Available!

2006-08-28 Thread Tony Qian
Jeff, I got following warning when using the latest version of Abaor (i didn't have this warning with old version). I think it's ok. Just want to confirm with you. XML Parser Warning on line 1: Declared encoding "UTF-8" does not match actual one "ASCII"; this might not be an error. thanks, T