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
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
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
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
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
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
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.
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.
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
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
10 matches
Mail list logo