Hi,

Here is my stuff calling iBatis:

            Mapper().BeginTransaction();
            return (MyObject) Mapper().QueryForObject ("StoreProcId", id);

After translation by iBatis it's finally calling this:

        public object ExecuteQueryForObject(IDalSession session, object parameterObject, object resultObject)
        {
            object obj = null;
            RequestScope request = this.Statement.Sql.GetRequestScope (this, parameterObject, session);

            _mappedStatement.PreparedCommand.Create( request, session, this.Statement, parameterObject );

            CacheKey cacheKey = this.GetCacheKey(request);
            cacheKey.Update("ExecuteQueryForObject");

            obj = this.Statement.CacheModel[cacheKey];
            // check if this query has alreay been run
            if (obj == CacheModel.NULL_OBJECT )
            {
                // convert the marker object back into a null value
                obj = null;
            }
            else if (obj == null)
            {
                obj = _mappedStatement.RunQueryForObject(request, session, parameterObject, resultObject);
                this.Statement.CacheModel[cacheKey] = obj;
            }

            return obj;
        }

Cheers,
Jakub

On 15/09/06, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:
Hello:
> What do u mean by 'special things' ?
Special things on parsing the commandtext to allow stored procedure
execution using only the stored procedure name for example.
> In this moment I'm just calling - QueryForObject (storprocname, params)
Send a sample of C# code please.

--
Carlos Guzmán Álvarez
Vigo-Spain

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to