/**
* This code was automatically generated at 21:06:20 on 2009-2-24
* by weblogic.ejb20.cmp.rdbms.codegen.RDBMSCodeGenerator -- do not edit.
*
* @version WebLogic Server 9.0 Sun Jul 3 21:15:00 PDT 2005 598247
* @author Copyright (c) 2009 by BEA Systems, Inc. All Rights Reserved.
*/
package xuanke1;
import java.lang.reflect.Method;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.io.IOException;
import javax.ejb.EntityContext;
import javax.ejb.EJBException;
import javax.ejb.EJBObject;
import javax.ejb.EJBLocalObject;
import javax.ejb.ObjectNotFoundException;
import javax.ejb.NoSuchEntityException;
import javax.ejb.Handle;
import javax.ejb.HomeHandle;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingEnumeration;
import javax.naming.NameClassPair;
import javax.rmi.PortableRemoteObject;
import javax.transaction.Transaction;
import javax.transaction.TransactionManager;
import weblogic.ejb.OptimisticConcurrencyException;
import weblogic.ejb20.InternalException;
import weblogic.ejb20.internal.EJBRuntimeUtils;
import weblogic.ejb20.internal.EntityEJBContextImpl;
import weblogic.ejb20.internal.EntityEJBLocalObject;
import weblogic.ejb20.internal.EntityEJBObject;
import weblogic.ejb20.interfaces.WLEnterpriseBean;
import weblogic.ejb20.interfaces.CachingManager;
import weblogic.ejb20.internal.QueryCachingHandler;
import weblogic.ejb20.manager.TTLManager;
import weblogic.ejb20.persistence.RSInfoImpl;
import weblogic.ejb20.persistence.spi.CMPBean;
import weblogic.ejb20.persistence.spi.CMPBeanManager;
import weblogic.ejb20.persistence.spi.PersistenceManager;
import weblogic.ejb20.persistence.spi.PersistenceRuntimeException;
import weblogic.ejb20.persistence.spi.RSInfo;
import weblogic.ejb20.cmp.rdbms.RDBMSObjectInputStream;
import weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager;
import weblogic.ejb20.cmp.rdbms.RDBMSException;
import weblogic.ejb20.cmp.rdbms.RDBMSUtils;
import weblogic.ejb20.cmp.rdbms.RDBMSM2NSet;
import weblogic.ejb20.cmp.rdbms.RDBMSSet;
import weblogic.ejb20.cache.QueryCacheElement;
import weblogic.ejb20.cache.QueryCacheKey;
import weblogic.ejb20.utils.MultiMap;
import weblogic.transaction.TransactionHelper;
import weblogic.transaction.TxHelper;
import weblogic.ejb20.dd.DDConstants;
import weblogic.ejb20.EJBLogger;
import weblogic.logging.Loggable;
import weblogic.utils.Debug;
public final class Course_mo03qy__WebLogic_CMP_RDBMS extends xuanke1.CourseBean
implements CMPBean, Course_mo03qy_Intf
{
// =================================================================
// Class variable(s)
private static final weblogic.diagnostics.debug.DebugLogger __WL_debugLogger =
weblogic.ejb20.EJBDebugService.cmpRuntimeLogger;
private static String EOL = System.getProperty("line.separator");
private static final java.lang.reflect.Method __WL_chooseC_finder_;
private static final java.lang.reflect.Method __WL_teacher_course_finder_;
static {
Method m = null;
try {
m = xuanke1.ChooseC_vwyxf4_Intf.class.getMethod("ejbFindByCourse_mo03qy__WebLogic_CMP_RDBMS_chooseC__WL_", new Class[] {java.lang.Integer.class });
} catch (NoSuchMethodException ignore) {
m = null;
}
__WL_chooseC_finder_ = m;
try {
m = xuanke1.Teacher_s8ox9s_Intf.class.getMethod("ejbFindByCourse_mo03qy__WebLogic_CMP_RDBMS_teacher_course__WL_", new Class[] {java.lang.String.class });
} catch (NoSuchMethodException ignore) {
m = null;
}
__WL_teacher_course_finder_ = m;
}
// =================================================================
// Instance variable(s)
private javax.ejb.EJBContext __WL_EJBContext;
private int __WL_method_state;
private boolean __WL_isRemoved = false;
private boolean __WL_busy = false;
private boolean __WL_isLocal = true;
private boolean __WL_needsRemove;
private Object __WL_loadUser;
private boolean __WL_creatorOfTx;
private boolean __WL_createAfterRemove = false;
private boolean __WL_operationsComplete = false;
/**
*
* For WebLogic CMP20+ beans that are involved in 1-1 or 1-N
* relationships in which this bean does not map to a DBMS
* table that has the foreign key column(s) that point to
* columns in the related table.
*
* Indicates whether this CMP20+ bean has been involved in
* a relationship set change.
*
* This is used when evaluating the bean's eligibility for
* passivation in a transaction.
*
*/
private boolean __WL_nonFKHolderRelationChange = false;
/**
*
* For WebLogic CMP20+ beans that are involved in Many to Many
* relationships, this indicates whether this CMP20+ bean has
* had a cached entry added to any of its Many to Many
* member Sets.
*
* This is used when evaluating the bean's eligibility for
* passivation in a transaction.
*
*/
private boolean __WL_m2NInsert = false;
/**
* EJB3+ beans may be connected or disconnected
* from their datasources.
*/
private boolean __WL_isConnected = true;
private EntityContext __WL_ctx;
private RDBMSPersistenceManager __WL_pm;
private ClassLoader __WL_classLoader;
private CMPBeanManager __WL_chooseC_bm;
private CMPBeanManager __WL_teacher_course_bm;
public java.lang.Integer cid;
public java.lang.String tid;
public java.lang.String cname;
public java.lang.String semester;
public java.lang.String point;
public java.lang.String place;
public java.lang.String num;
public java.lang.String numall;
public java.lang.String time;
public java.lang.String timeall;
public java.util.Collection __WL_chooseC_field_;
public xuanke1.Teacher __WL_teacher_course_field_;
private boolean[] __WL_isModified = new boolean[10];
private boolean __WL_modifiedBeanIsRegistered= false;
private boolean __WL_invalidatedBeanIsRegistered= false;
private boolean[] __WL_isLoaded = new boolean[10];
private boolean __WL_beanIsLoaded= false;
public boolean __WL_chooseC_isLoaded_ = false;
public boolean __WL_teacher_course_isLoaded_ = false;
// for remote relationships
// =================================================================
// Constructor(s)
public Course_mo03qy__WebLogic_CMP_RDBMS() {
super();
__WL_initialize();
}
// This method is called by ejbLoad, ejbPassivate, and ejbRemove
// to initialize the persistent state of the bean and its associated
// variables.
public void __WL_initialize()
{
__WL_initialize(true);
}
public void __WL_initialize(boolean __WL_initSnapshotVars)
{
__WL_initialize_persistent(__WL_initSnapshotVars);
__WL_beanIsLoaded = false;
__WL_modifiedBeanIsRegistered = false;
__WL_chooseC_isLoaded_ = false;
__WL_teacher_course_isLoaded_ = false;
//cached relationship state
this.__WL_chooseC_field_ = null;
this.__WL_teacher_course_field_ = null;
}
private void __WL_initialize_persistent(boolean __WL_initSnapshotVars)
{
for (int __WL_i = 0; __WL_i < 10; __WL_i++) {
__WL_isLoaded[__WL_i] = false;
__WL_isModified[_