Re: Handle resultset manually

2005-10-13 Thread Oleg Shpak
used it though... Niels -Original Message----- From: Oleg Shpak [mailto:[EMAIL PROTECTED] Sent: donderdag 13 oktober 2005 12:22 To: user-java@ibatis.apache.org Subject: Handle resultset manually Hi, I really like all the stuff iBatis does, including the easy way of creating dynamic SQL s

Handle resultset manually

2005-10-13 Thread Oleg Shpak
Hi, I really like all the stuff iBatis does, including the easy way of creating dynamic SQL statements. But rarely I need to handle resultsets manually. Unfortunately resultMap tag functionality is not enough sometimes Currently I have to create a data holder class which captures the resultset

Factories to create result objects

2005-08-24 Thread Oleg Shpak
Is there a way to configure iBatis Java to use a factory class (or, better, instance) to create result objects instead of Class.newInstance method? For example, I want to initialize my objects, i.e. set a property to refer to a particular object of my application. In general I can do this in my

Re: A shot in the dark about unit testing.

2005-08-19 Thread Oleg Shpak
Just use a file name, filename="file1" mimetype="mime/type1" size="115" data="data/files/1.gif"/> where `data` column is of BLOB type and "data/files/1.gif" is a path relative to process's current path, not to the xml file. Oleg Nathan Maves wrote: We have been using DBUni

Re: transaction rollback

2005-08-17 Thread Oleg Shpak
Eugeny, make sure you are using a table type which supports transactions such as InnoDB. A statement like below can show you which type/engine you are using show create table ; it outputs the following: CREATE TABLE ( ... ) Type=InnoDB ... ; (or ENGINE=InnoDB for MySQL 4.1). If the type i

Re: Lazy loading

2005-08-04 Thread Oleg Shpak
Thanks a lot, Niels, I didn't have CGLIB on classpath and I overlooked the last line in EnhancedLazyResultLoader where it wraps objects. Oleg Niels Beekman wrote: Hi, Are you using CGLIB? If not, iBATIS uses the Java Proxy/Invocationhandler, which only handles interfaces. Somebody please co

Lazy loading

2005-08-04 Thread Oleg Shpak
Hello, I'm using lazy loading in iBatis, but this appears to fetch my object eagerly, effectively increasing the number of statements to exactly N+1. Lazy loading for collection does work however. I did some research and found that iBatis does not create proxies for objects, only for collections.

Lazy loading

2005-08-04 Thread Oleg Shpak
Hello, I'm using lazy loading in iBatis, but this appears to fetch my object eagerly, effectively increasing the number of statements to exactly N+1. Lazy loading for collection does work however. I did some research and found that iBatis does not create proxies for objects, only for collections.

Re: cache timeout

2005-08-04 Thread Oleg Shpak
Hello, I'm using lazy loading in iBatis, but this appears to fetch my object eagerly, effectively increasing the number of statements to exactly N+1. Lazy loading for collection does work however. I did some research and found that iBatis does not create proxies for objects, only for collectio

Re: cache timeout

2005-08-04 Thread Oleg Shpak
Hello, I'm using lazy loading in iBatis, but this appears to fetch my object eagerly, effectively increasing the number of statements to exactly N+1. Lazy loading for collection does work however. I did some research and found that iBatis does not create proxies for objects, only for collectio