⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employee_az16cs__weblogic_cmp_rdbms.java

📁 jbuilder开发entity bean
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      // initialize state before this instance goes back into the pool
      if (!__WL_getIsRemoved()) __WL_initialize();
      
    } finally {
      __WL_method_state = oldState;
    }
    
  }
  
  public void __WL_copyFrom(CMPBean otherBean, boolean __WL_initSnapshotVars) {
    Employee_az16cs__WebLogic_CMP_RDBMS __WL_bean = null;    try {      __WL_bean = (Employee_az16cs__WebLogic_CMP_RDBMS)otherBean;    } catch (RuntimeException re) {
      if (__WL_verbose) {
        Debug.say("rethrowing RuntimeException.");
        re.printStackTrace();
      }
      throw re;
    } catch (Exception ex) {
      if (__WL_verbose) {
        Debug.say("wrapping Exception in PersistenceRuntimeException.");
        ex.printStackTrace();
      }
      throw new PersistenceRuntimeException(ex);
    }
    if (!(this.__WL_isLoaded[0] || this.__WL_isModified[0])) {      if (__WL_bean.__WL_isLoaded[0]) {        if (__WL_verbose) {          Debug.say("copying field 'empNo' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.empNo = __WL_bean.empNo;        this.__WL_isLoaded[0] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[0] = true;      }    }        if (!(this.__WL_isLoaded[1] || this.__WL_isModified[1])) {      if (__WL_bean.__WL_isLoaded[1]) {        if (__WL_verbose) {          Debug.say("copying field 'firstName' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.firstName = __WL_bean.firstName;        this.__WL_isLoaded[1] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[1] = true;      }    }        if (!(this.__WL_isLoaded[2] || this.__WL_isModified[2])) {      if (__WL_bean.__WL_isLoaded[2]) {        if (__WL_verbose) {          Debug.say("copying field 'lastName' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.lastName = __WL_bean.lastName;        this.__WL_isLoaded[2] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[2] = true;      }    }        if (!(this.__WL_isLoaded[3] || this.__WL_isModified[3])) {      if (__WL_bean.__WL_isLoaded[3]) {        if (__WL_verbose) {          Debug.say("copying field 'phoneExt' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.phoneExt = __WL_bean.phoneExt;        this.__WL_isLoaded[3] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[3] = true;      }    }        if (!(this.__WL_isLoaded[4] || this.__WL_isModified[4])) {      if (__WL_bean.__WL_isLoaded[4]) {        if (__WL_verbose) {          Debug.say("copying field 'hireDate' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.hireDate = __WL_bean.hireDate;        this.__WL_isLoaded[4] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[4] = true;      }    }        if (!(this.__WL_isLoaded[5] || this.__WL_isModified[5])) {      if (__WL_bean.__WL_isLoaded[5]) {        if (__WL_verbose) {          Debug.say("copying field 'deptNo' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.deptNo = __WL_bean.deptNo;        this.__WL_isLoaded[5] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[5] = true;      }    }        if (!(this.__WL_isLoaded[6] || this.__WL_isModified[6])) {      if (__WL_bean.__WL_isLoaded[6]) {        if (__WL_verbose) {          Debug.say("copying field 'jobCode' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.jobCode = __WL_bean.jobCode;        this.__WL_isLoaded[6] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[6] = true;      }    }        if (!(this.__WL_isLoaded[7] || this.__WL_isModified[7])) {      if (__WL_bean.__WL_isLoaded[7]) {        if (__WL_verbose) {          Debug.say("copying field 'jobGrade' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.jobGrade = __WL_bean.jobGrade;        this.__WL_isLoaded[7] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[7] = true;      }    }        if (!(this.__WL_isLoaded[8] || this.__WL_isModified[8])) {      if (__WL_bean.__WL_isLoaded[8]) {        if (__WL_verbose) {          Debug.say("copying field 'jobCountry' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.jobCountry = __WL_bean.jobCountry;        this.__WL_isLoaded[8] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[8] = true;      }    }        if (!(this.__WL_isLoaded[9] || this.__WL_isModified[9])) {      if (__WL_bean.__WL_isLoaded[9]) {        if (__WL_verbose) {          Debug.say("copying field 'salary' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.salary = __WL_bean.salary;        this.__WL_isLoaded[9] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[9] = true;      }    }        if (!(this.__WL_isLoaded[10] || this.__WL_isModified[10])) {      if (__WL_bean.__WL_isLoaded[10]) {        if (__WL_verbose) {          Debug.say("copying field 'fullName' to bean '" +          __WL_bean.__WL_getPrimaryKey() + "'.");        }        this.fullName = __WL_bean.fullName;        this.__WL_isLoaded[10] = true;        if (!__WL_initSnapshotVars) this.__WL_isModified[10] = true;      }    }        this.__WL_modifiedBeanIsRegistered = __WL_bean.__WL_modifiedBeanIsRegistered;    this.__WL_beanIsLoaded = __WL_bean.__WL_beanIsLoaded;        
  }
  
  public void __WL_loadGroupByIndex(int index, java.sql.ResultSet rs,
  Integer offset, javax.ejb.EntityBean eb) throws Exception
  {
    switch(index) {
      case 0: __WL_loadGroup0FromRS(rs, offset,(testent.Employee_az16cs__WebLogic_CMP_RDBMS)eb); break;      default: throw new AssertionError("Bad Group index: "+index);      
    }
  }
  
  public void __WL_loadCMRFieldByCmrField(String cmrField, java.sql.ResultSet rs,
  Integer offset, javax.ejb.EntityBean eb) throws Exception
  {
    
  }
  
  public PersistenceManager __WL_getPersistenceManager() {
    return __WL_pm;
  }
  
  public void __WL_makeCascadeDelList(java.util.Map mapCascadeDelBeans,
  java.util.List listCascadeDelBeans,
  java.util.List listCascadeDelBeansWithoutDBUpdate,
  boolean withoutDBUpdate)
  throws java.lang.Exception
  {
    
    int oldState = __WL_method_state;
    __WL_method_state = STATE_EJB_REMOVE;
    
    // create a unique mapKey to map beans to mapCascadeDelBeans
    // re-use weblogic.ejb20.cache.CacheKey class since it take two
    // objects to create the key
    Object pk = __WL_ctx.getPrimaryKey();
    Object beanManager = __WL_pm.getBeanManager();
    weblogic.ejb20.cache.CacheKey mapKey =
    new weblogic.ejb20.cache.CacheKey(pk, (CachingManager)beanManager);
    
    // step 1:
    // keep track of all of the beans been visited is the map to detect the circular case
    if (mapCascadeDelBeans.get(mapKey) == null) {
      mapCascadeDelBeans.put(mapKey, this);
    }
    else {
      if (__WL_verbose) {
        Debug.say("Trying to add " + mapKey + " to list during cascade delete, " +
        "but it already exists in the list, a possible circular detect, ignored.");
      }
      return;
    }
    
    // step 2:
    // This is the place every bean bean added to the list.
    // true  if don't need a database update, db-cascade-delete is specified
    // false if do need a database update, db-cascade-detelet isn't specified
    if (withoutDBUpdate) {
      listCascadeDelBeansWithoutDBUpdate.add(this);
    } else {
      listCascadeDelBeans.add(this);
    }
    
    __WL_method_state = oldState;
    
  }
  
  public void __WL_setBeanParamsForCreateArray(
  java.sql.PreparedStatement[] __WL_stmt_array)
  throws Exception
  {
    
    
    // preparedStatementParamIndex reset.    if(!__WL_pm.setParamNull(__WL_stmt_array[0], 1, this.empNo, "empNo")) {      __WL_stmt_array[0].setShort(1, this.empNo.shortValue());      if (__WL_verbose) {        Debug.say("paramIdx :"+1+" binded with value :"+this.empNo);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 2, this.firstName, "firstName")) {      __WL_stmt_array[0].setString(2, this.firstName);      if (__WL_verbose) {        Debug.say("paramIdx :"+2+" binded with value :"+this.firstName);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 3, this.lastName, "lastName")) {      __WL_stmt_array[0].setString(3, this.lastName);      if (__WL_verbose) {        Debug.say("paramIdx :"+3+" binded with value :"+this.lastName);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 4, this.phoneExt, "phoneExt")) {      __WL_stmt_array[0].setString(4, this.phoneExt);      if (__WL_verbose) {        Debug.say("paramIdx :"+4+" binded with value :"+this.phoneExt);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 5, this.hireDate, "hireDate")) {      __WL_stmt_array[0].setTimestamp(5, this.hireDate);      if (__WL_verbose) {        Debug.say("paramIdx :"+5+" binded with value :"+this.hireDate);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 6, this.deptNo, "deptNo")) {      __WL_stmt_array[0].setString(6, this.deptNo);      if (__WL_verbose) {        Debug.say("paramIdx :"+6+" binded with value :"+this.deptNo);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 7, this.jobCode, "jobCode")) {      __WL_stmt_array[0].setString(7, this.jobCode);      if (__WL_verbose) {        Debug.say("paramIdx :"+7+" binded with value :"+this.jobCode);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 8, this.jobGrade, "jobGrade")) {      __WL_stmt_array[0].setShort(8, this.jobGrade.shortValue());      if (__WL_verbose) {        Debug.say("paramIdx :"+8+" binded with value :"+this.jobGrade);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 9, this.jobCountry, "jobCountry")) {      __WL_stmt_array[0].setString(9, this.jobCountry);      if (__WL_verbose) {        Debug.say("paramIdx :"+9+" binded with value :"+this.jobCountry);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 10, this.salary, "salary")) {      __WL_stmt_array[0].setBigDecimal(10, this.salary);      if (__WL_verbose) {        Debug.say("paramIdx :"+10+" binded with value :"+this.salary);      }    }        if(!__WL_pm.setParamNull(__WL_stmt_array[0], 11, this.fullName, "fullName")) {      __WL_stmt_array[0].setString(11, this.fullName);      if (__WL_verbose) {        Debug.say("paramIdx :"+11+" binded with value :"+this.fullName);      }    }    
  }
  
  public void __WL_setBeanParamsForUpdateArray(
  java.sql.PreparedStatement[] __WL_stmt_array,
  boolean[] __WL_isModified,
  java.lang.Short __WL_pk,
  int curTableIndex)
  throws Exception
  {
    // set all __WL_stmt_array when curTableIndex == -1
    if ((__WL_stmt_array[0] != null) && ((curTableIndex == 0) || (curTableIndex == -1))) {
      int __WL_num = 1;
      if (__WL_isModified[1]) {        if(__WL_verbose) Debug.say("setting("+this+") 'firstName' using column " +__WL_num + ". Value is " + this.firstName);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.firstName, "firstName")) {          __WL_stmt_array[0].setString(__WL_num, this.firstName);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.firstName);          }        }        __WL_num++;      };            if (__WL_isModified[2]) {        if(__WL_verbose) Debug.say("setting("+this+") 'lastName' using column " +__WL_num + ". Value is " + this.lastName);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.lastName, "lastName")) {          __WL_stmt_array[0].setString(__WL_num, this.lastName);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.lastName);          }        }        __WL_num++;      };            if (__WL_isModified[3]) {        if(__WL_verbose) Debug.say("setting("+this+") 'phoneExt' using column " +__WL_num + ". Value is " + this.phoneExt);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.phoneExt, "phoneExt")) {          __WL_stmt_array[0].setString(__WL_num, this.phoneExt);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.phoneExt);          }        }        __WL_num++;      };            if (__WL_isModified[4]) {        if(__WL_verbose) Debug.say("setting("+this+") 'hireDate' using column " +__WL_num + ". Value is " + this.hireDate);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.hireDate, "hireDate")) {          __WL_stmt_array[0].setTimestamp(__WL_num, this.hireDate);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.hireDate);          }        }        __WL_num++;      };            if (__WL_isModified[5]) {        if(__WL_verbose) Debug.say("setting("+this+") 'deptNo' using column " +__WL_num + ". Value is " + this.deptNo);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.deptNo, "deptNo")) {          __WL_stmt_array[0].setString(__WL_num, this.deptNo);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.deptNo);          }        }        __WL_num++;      };            if (__WL_isModified[6]) {        if(__WL_verbose) Debug.say("setting("+this+") 'jobCode' using column " +__WL_num + ". Value is " + this.jobCode);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.jobCode, "jobCode")) {          __WL_stmt_array[0].setString(__WL_num, this.jobCode);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.jobCode);          }        }        __WL_num++;      };            if (__WL_isModified[7]) {        if(__WL_verbose) Debug.say("setting("+this+") 'jobGrade' using column " +__WL_num + ". Value is " + this.jobGrade);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.jobGrade, "jobGrade")) {          __WL_stmt_array[0].setShort(__WL_num, this.jobGrade.shortValue());          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.jobGrade);          }        }        __WL_num++;      };            if (__WL_isModified[8]) {        if(__WL_verbose) Debug.say("setting("+this+") 'jobCountry' using column " +__WL_num + ". Value is " + this.jobCountry);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.jobCountry, "jobCountry")) {          __WL_stmt_array[0].setString(__WL_num, this.jobCountry);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.jobCountry);          }        }        __WL_num++;      };            if (__WL_isModified[9]) {        if(__WL_verbose) Debug.say("setting("+this+") 'salary' using column " +__WL_num + ". Value is " + this.salary);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.salary, "salary")) {          __WL_stmt_array[0].setBigDecimal(__WL_num, this.salary);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.salary);          }        }        __WL_num++;      };            if (__WL_isModified[10]) {        if(__WL_verbose) Debug.say("setting("+this+") 'fullName' using column " +__WL_num + ". Value is " + this.fullName);        if(!__WL_pm.setParamNull(__WL_stmt_array[0], __WL_num, this.fullName, "fullName")) {          __WL_stmt_array[0].setString(__WL_num, this.fullName);          if (__WL_verbose) {            Debug.say("paramIdx :"+__WL_num+" binded with value :"+this.fullName);          }        }        __WL_num++;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -