You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org> on 2005/09/12 20:00:35 UTC

[jira] Created: (IBATISNET-111) Pass in parameterObject to row/map delegates

Pass in parameterObject to row/map delegates
--------------------------------------------

         Key: IBATISNET-111
         URL: http://issues.apache.org/jira/browse/IBATISNET-111
     Project: iBatis for .NET
        Type: New Feature
    Reporter: Ron Grabowski
    Priority: Trivial


Someone may want to do a comparision against the original parameter inside of a row delegate.

 public delegate void RowDelegate(object obj, IList list);
 public delegate void RowDelegateWithParameter(object obj, object parameter, IList list);
 public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
 public delegate void DictionaryRowDelegateWithParameter(object key, object value, object parameter, IDictionary dictionary);

Delegates with the same name cannot be overloaded:

 public delegate void RowDelegate(object obj, IList list);
 public delegate void RowDelegate(object obj, object parameter, IList list); // WRONG
 public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
 public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary); // WRONG

Perhaps we should change the signature of the delegates to always include the parameter object:

 public delegate void RowDelegate(object obj, object parameter, IList list);
 public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary);

Thanks to Chad Humphries for starting my thought process on this!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (IBATISNET-111) Pass in parameterObject to row/map delegates

Posted by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATISNET-111?page=all ]
     
Ron Grabowski resolved IBATISNET-111:
-------------------------------------

    Resolution: Fixed

Fixed in 289967.

> Pass in parameterObject to row/map delegates
> --------------------------------------------
>
>          Key: IBATISNET-111
>          URL: http://issues.apache.org/jira/browse/IBATISNET-111
>      Project: iBatis for .NET
>         Type: New Feature
>     Reporter: Ron Grabowski
>     Priority: Trivial
>  Attachments: pass_parameter_object_to_row_delegates.patch
>
> Someone may want to do a comparision against the original parameter inside of a row delegate.
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegateWithParameter(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegateWithParameter(object key, object value, object parameter, IDictionary dictionary);
> Delegates with the same name cannot be overloaded:
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegate(object obj, object parameter, IList list); // WRONG
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary); // WRONG
> Perhaps we should change the signature of the delegates to always include the parameter object:
>  public delegate void RowDelegate(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary);
> Thanks to Chad Humphries for starting my thought process on this!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (IBATISNET-111) Pass in parameterObject to row/map delegates

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATISNET-111?page=all ]
     
Gilles Bayon closed IBATISNET-111:
----------------------------------

    Assign To: Ron Grabowski

> Pass in parameterObject to row/map delegates
> --------------------------------------------
>
>          Key: IBATISNET-111
>          URL: http://issues.apache.org/jira/browse/IBATISNET-111
>      Project: iBatis for .NET
>         Type: New Feature
>     Reporter: Ron Grabowski
>     Assignee: Ron Grabowski
>     Priority: Trivial
>  Attachments: pass_parameter_object_to_row_delegates.patch
>
> Someone may want to do a comparision against the original parameter inside of a row delegate.
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegateWithParameter(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegateWithParameter(object key, object value, object parameter, IDictionary dictionary);
> Delegates with the same name cannot be overloaded:
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegate(object obj, object parameter, IList list); // WRONG
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary); // WRONG
> Perhaps we should change the signature of the delegates to always include the parameter object:
>  public delegate void RowDelegate(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary);
> Thanks to Chad Humphries for starting my thought process on this!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (IBATISNET-111) Pass in parameterObject to row/map delegates

Posted by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/IBATISNET-111?page=all ]

Ron Grabowski updated IBATISNET-111:
------------------------------------

    Attachment: pass_parameter_object_to_row_delegates.patch

Pass the parameter object to the row delegates.

> Pass in parameterObject to row/map delegates
> --------------------------------------------
>
>          Key: IBATISNET-111
>          URL: http://issues.apache.org/jira/browse/IBATISNET-111
>      Project: iBatis for .NET
>         Type: New Feature
>     Reporter: Ron Grabowski
>     Priority: Trivial
>  Attachments: pass_parameter_object_to_row_delegates.patch
>
> Someone may want to do a comparision against the original parameter inside of a row delegate.
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegateWithParameter(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegateWithParameter(object key, object value, object parameter, IDictionary dictionary);
> Delegates with the same name cannot be overloaded:
>  public delegate void RowDelegate(object obj, IList list);
>  public delegate void RowDelegate(object obj, object parameter, IList list); // WRONG
>  public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary); // WRONG
> Perhaps we should change the signature of the delegates to always include the parameter object:
>  public delegate void RowDelegate(object obj, object parameter, IList list);
>  public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary);
> Thanks to Chad Humphries for starting my thought process on this!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira