【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-WbPerson_c79zps__WebLogic_CMP_RDBMS_wbPayout_Iterator.java的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
/**
* This code was automatically generated at 15:19:53 on 2005-12-9
* by weblogic.ejb20.cmp.rdbms.codegen.OneToManyGenerator -- do not edit.
*
* @version WebLogic Server 8.1 Fri Dec 5 15:01:51 PST 2003 316284
* @author Copyright (c) 2005 by BEA Systems, Inc. All Rights Reserved.
*/
package personal_payout_manage.ejbs;
import java.util.Iterator;
import java.util.Set;
import javax.transaction.Transaction;
import weblogic.ejb20.persistence.spi.EoWrapper;
import weblogic.ejb20.persistence.spi.EloWrapper;
import weblogic.ejb20.EJBTextTextFormatter;
import weblogic.ejb20.EJBLogger;
import weblogic.logging.Loggable;
import weblogic.transaction.TransactionHelper;
import weblogic.utils.Debug;
public class WbPerson_c79zps__WebLogic_CMP_RDBMS_wbPayout_Iterator implements Iterator {
private EloWrapper currWrapper = null;
private Iterator __WL_iter;
private WbPerson_c79zps__WebLogic_CMP_RDBMS_wbPayout_Set __WL_creator;
private Transaction __WL_createTx;
public WbPerson_c79zps__WebLogic_CMP_RDBMS_wbPayout_Iterator(Iterator __WL_iter,
WbPerson_c79zps__WebLogic_CMP_RDBMS_wbPayout_Set __WL_creator)
{
this.__WL_iter = __WL_iter;
this.__WL_creator = __WL_creator;
this.__WL_createTx = __WL_creator.getTransaction();
}
public boolean hasNext()
{
checkTransaction();
return __WL_iter.hasNext();
}
// Note: IllegalStateException checking for illegal
// calls to next() and remove() are deferred to
// the underlying Iterator.
public Object next()
{
checkTransaction();
currWrapper = (EloWrapper)__WL_iter.next();
return currWrapper.getEJBLocalObject();
}
public void remove()
{
checkTransaction();
__WL_iter.remove();
if (null == currWrapper) {
return;
}
__WL_creator.remove(currWrapper.getEJBLocalObject(),
false, // do ejbStore()
false); // do Collection.remove()
}
private void checkTransaction()
{
Transaction tx = TransactionHelper.getTransactionHelper().getTransaction();
if (tx==null) {
Loggable l = EJBLogger.logaccessedCmrIteratorOutsideTransactionLoggable("WbPerson", "wbPayout");
throw new IllegalStateException(
l.getMessage());
}
if (!tx.equals(__WL_createTx) && ! false ) {
Loggable l1 = EJBLogger.logaccessedCmrIteratorInDifferentTransactionLoggable("WbPerson", "wbPayout");
throw new IllegalStateException(l1.getMessage());
}
}
}
上一篇:
WbPerson_c79zps__WebLogic_CMP_RDBMS.java
下一篇:
关于大学英语教学