[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3861) support more detailed TransactionSuccessEvent when update,persist,remove entity
zhou yanming (JIRA)
jira-events at lists.jboss.org
Sun Dec 21 21:54:54 EST 2008
support more detailed TransactionSuccessEvent when update,persist,remove entity
-------------------------------------------------------------------------------
Key: JBSEAM-3861
URL: https://jira.jboss.org/jira/browse/JBSEAM-3861
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.1.0.GA
Reporter: zhou yanming
sometimes we want to synchronize particular entity to other seam compenont,so need to raise event with this entity and transaction type.
org.jboss.seam.framework.Home:
change
protected void raiseAfterTransactionSuccessEvent()
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess");
String simpleEntityName = getSimpleEntityName();
if (simpleEntityName != null)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName);
}
}
to
protected void raiseAfterTransactionSuccessEvent(Ojbect... params)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess");
String simpleEntityName = getSimpleEntityName();
if (simpleEntityName != null)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName);
}
if (simpleEntityName != null && params.length==1)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName+"."+params[0]);
}
if (simpleEntityName != null && params.length==2)
{
raiseTransactionSuccessEvent("org.jboss.seam.afterTransactionSuccess." + simpleEntityName+"."+params[0],params[1]);
}
}
org.jboss.seam.framework.EntityHome{
change
raiseAfterTransactionSuccessEvent();
to
raiseAfterTransactionSuccessEvent("persisted",getInstance());
raiseAfterTransactionSuccessEvent("removed",getInstance());
raiseAfterTransactionSuccessEvent("updated",getInstance());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list