Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 66555 invoked from network); 11 Jun 2008 05:57:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 05:57:36 -0000 Received: (qmail 51281 invoked by uid 500); 11 Jun 2008 05:57:38 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 51262 invoked by uid 500); 11 Jun 2008 05:57:38 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 51251 invoked by uid 99); 11 Jun 2008 05:57:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 22:57:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 05:56:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 319BB234C137 for ; Tue, 10 Jun 2008 22:56:45 -0700 (PDT) Message-ID: <1044206633.1213163805198.JavaMail.jira@brutus> Date: Tue, 10 Jun 2008 22:56:45 -0700 (PDT) From: "Gilles Bayon (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Closed: (IBATISNET-271) Add Event to DataMapper engine In-Reply-To: <353750848.1212946425051.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IBATISNET-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles Bayon closed IBATISNET-271. ---------------------------------- Resolution: Fixed Change API to follow .NET event declaration as statement.PreSelect+= PreSelectEventHandler; statement.PostSelect += PostSelectEventHandler; resultMap.PreCreate += PreCreateEventHandler; resultMap.PostCreate += PostCreateEventHandler; resultProperty.PreProperty += PrePropertyEventHandler; resultProperty.PostProperty +=PostPropertyEventHandler; > Add Event to DataMapper engine > ------------------------------ > > Key: IBATISNET-271 > URL: https://issues.apache.org/jira/browse/IBATISNET-271 > Project: iBatis for .NET > Issue Type: New Feature > Components: DataMapper > Affects Versions: DataMapper 3.0 > Reporter: Gilles Bayon > Assignee: Gilles Bayon > Fix For: DataMapper 3.0 > > > The event system can be used to audit, log, decorate, proxy ... on > - statement (before and after statement execution) > statement.PreSelectListeners = new PreSelectEventListener[] { new MyPreSelectEventListener() }; > statement.PostSelectListeners = new PostSelectEventListener[] { new MyPostSelectEventListener() }; > ... > - object result creation (before and after object creation), > resultMap.PreCreateEventListeners = new PreCreateEventListener[] { new MyPreCreateEventListener() }; > resultMap.PostCreateEventListeners = new PostCreateEventListener[] { new MyPostCreateEventListener() }; > - object property result (before and after property assignment) > resultProperty.PrePropertyEventListeners = new PrePropertyEventListener[] { new MyPrePropertyEventListener() }; > resultProperty.PostPropertyEventListeners = new PostPropertyEventListener[] { new MyPostPropertyEventListener() }; > See unit test EventTest for use. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.