📄 wbpayout_l59ak2__weblogic_cmp_rdbms.java
字号:
re.printStackTrace();
}
throw re;
} catch (Exception ex) {
if (__WL_verbose) {
Debug.say("wrapping Exception in PersistenceRuntimeException.");
ex.printStackTrace();
}
throw new PersistenceRuntimeException(ex);
}
}
public void setMaterialSn(
java.lang.String materialSn)
{
Loggable l = EJBLogger.logcannotCallSetOnCmpCmrFieldLoggable();throw new EJBException(l.getMessage());
}
public java.lang.String getPesonalSn()
{
try {
if (!(__WL_isLoaded[4] || __WL_isModified[4])) {
__WL_loadGroup0();
}
return pesonalSn;
} 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);
}
}
public void setPesonalSn(
java.lang.String pesonalSn)
{
Loggable l = EJBLogger.logcannotCallSetOnCmpCmrFieldLoggable();throw new EJBException(l.getMessage());
}
public java.lang.String getNote()
{
try {
if (!(__WL_isLoaded[5] || __WL_isModified[5])) {
__WL_loadGroup0();
}
return note;
} 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);
}
}
public void setNote(
java.lang.String note)
{
if ((this.note == note || (this.note!=null && this.note.equals(note))) && __WL_isLoaded[5]) return;
this.note = note;
__WL_isModified[5] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public personal_payout_manage.ejbs.WbPerson getWbPerson() { try {
if (!__WL_isLoaded[4]) __WL_loadGroup0();
if (__WL_wbPerson_field_==null) {
if (!(pesonalSn==null)) {
Transaction orgTx =
TransactionHelper.getTransactionHelper().getTransaction();
try {
__WL_wbPerson_field_ = (personal_payout_manage.ejbs.WbPerson)__WL_wbPerson_bm.localFindByPrimaryKey( __WL_wbPerson_finder_, this.pesonalSn);
} finally {
}
}
}
return __WL_wbPerson_field_;
} 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);
}
}public void setWbPerson(personal_payout_manage.ejbs.WbPerson wbPerson) {if (__WL_method_state==STATE_EJB_CREATE) {Loggable l = EJBLogger.logsetCheckForCmrFieldDuringEjbCreateLoggable();throw new IllegalStateException(l.getMessage());}__WL_setWbPerson(wbPerson, false);}public void __WL_setWbPerson(personal_payout_manage.ejbs.WbPerson wbPerson, boolean ejbStore) {__WL_setWbPerson(wbPerson, ejbStore, true);}// The flag 'remove' controls whether the Relationship's// underlying __WL_cache does a remove() operation.// If an Iterator of the __WL_cache is used to effect a remove()// then we must be sure to not to do a__WL_cache.remove()// that is the intended use of the 'remove' flag.public void __WL_setWbPerson(personal_payout_manage.ejbs.WbPerson wbPerson, boolean ejbStore, boolean remove) { try {
if (!__WL_isLoaded[4]) __WL_loadGroup0();
if (!(pesonalSn==null)) {
personal_payout_manage.ejbs.WbPerson_c79zps_Intf __WL_bean =
(personal_payout_manage.ejbs.WbPerson_c79zps_Intf)__WL_wbPerson_bm.lookup(this.pesonalSn);
int oldState = __WL_bean.__WL_getMethodState();
try {
__WL_bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
RDBMSSet __WL_collection = (RDBMSSet)
__WL_bean.getWbPayout();
__WL_collection.doRemove(__WL_ctx.getEJBLocalObject(), remove);
} finally {
__WL_bean.__WL_setMethodState(oldState);
}
}
__WL_doSetWbPerson(wbPerson);
__WL_postSetWbPerson();
if (ejbStore) ejbStore();
} 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);
}
}private void __WL_postSetWbPerson() throws java.lang.Exception { if (!(pesonalSn==null)) {
personal_payout_manage.ejbs.WbPerson_c79zps_Intf __WL_bean = (personal_payout_manage.ejbs.WbPerson_c79zps_Intf)
__WL_wbPerson_bm.lookup(this.pesonalSn);
int oldState = __WL_bean.__WL_getMethodState();
try {
__WL_bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
if ((__WL_bean.__WL_beanIsLoaded() && __WL_bean.__WL_getIsRemoved()) ||
(!__WL_bean.__WL_beanIsLoaded() && !__WL_bean.__WL_exists(this.pesonalSn))) {
Loggable l = EJBLogger.logillegalAttemptToAssignRemovedBeanToCMRFieldLoggable(
this.pesonalSn.toString());
throw new IllegalArgumentException(l.getMessage());
}
RDBMSSet __WL_collection = (RDBMSSet)
__WL_bean.getWbPayout();
__WL_collection.doAdd(__WL_ctx.getEJBLocalObject());
} finally {
__WL_bean.__WL_setMethodState(oldState);
}
}
}public void __WL_doSetWbPerson(personal_payout_manage.ejbs.WbPerson wbPerson) { try {
if (!__WL_isLoaded[4]) __WL_loadGroup0();
if (__WL_verbose) {
Debug.say("[" + __WL_ctx.getPrimaryKey() +
"]called __WL_doSetWbPerson...");
}
__WL_wbPerson_field_ = wbPerson;
if (__WL_wbPerson_field_ == null) {
if (__WL_verbose) {
Debug.say("setting field variable to null.");
}
pesonalSn = null;__WL_isModified[4] = true;
}
else {
if (__WL_verbose) {
Debug.say("setting field variable to new value.");
}
pesonalSn = (java.lang.String)__WL_wbPerson_field_.getPrimaryKey();__WL_isModified[4] = true;
}
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
} 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);
}
}public void __WL_add__WL_wbPerson_field_(Object wbPerson) {if (wbPerson != null) {__WL_wbPerson_field_ = (personal_payout_manage.ejbs.WbPerson) wbPerson;}__WL_wbPerson_isLoaded_ = true;}public personal_payout_manage.ejbs.WbMaterial getWbMaterial() { try {
if (!__WL_isLoaded[3]) __WL_loadGroup0();
if (__WL_wbMaterial_field_==null) {
if (!(materialSn==null)) {
Transaction orgTx =
TransactionHelper.getTransactionHelper().getTransaction();
try {
__WL_wbMaterial_field_ = (personal_payout_manage.ejbs.WbMaterial)__WL_wbMaterial_bm.localFindByPrimaryKey( __WL_wbMaterial_finder_, this.materialSn);
} finally {
}
}
}
return __WL_wbMaterial_field_;
} 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);
}
}public void setWbMaterial(personal_payout_manage.ejbs.WbMaterial wbMaterial) {if (__WL_method_state==STATE_EJB_CREATE) {Loggable l = EJBLogger.logsetCheckForCmrFieldDuringEjbCreateLoggable();throw new IllegalStateException(l.getMessage());}__WL_setWbMaterial(wbMaterial, false);}public void __WL_setWbMaterial(personal_payout_manage.ejbs.WbMaterial wbMaterial, boolean ejbStore) {__WL_setWbMaterial(wbMaterial, ejbStore, true);}// The flag 'remove' controls whether the Relationship's// underlying __WL_cache does a remove() operation.// If an Iterator of the __WL_cache is used to effect a remove()// then we must be sure to not to do a__WL_cache.remove()// that is the intended use of the 'remove' flag.public void __WL_setWbMaterial(personal_payout_manage.ejbs.WbMaterial wbMaterial, boolean ejbStore, boolean remove) { try {
if (!__WL_isLoaded[3]) __WL_loadGroup0();
if (!(materialSn==null)) {
personal_payout_manage.ejbs.WbMaterial_utl58_Intf __WL_bean =
(personal_payout_manage.ejbs.WbMaterial_utl58_Intf)__WL_wbMaterial_bm.lookup(this.materialSn);
int oldState = __WL_bean.__WL_getMethodState();
try {
__WL_bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
RDBMSSet __WL_collection = (RDBMSSet)
__WL_bean.getWbPayout();
__WL_collection.doRemove(__WL_ctx.getEJBLocalObject(), remove);
} finally {
__WL_bean.__WL_setMethodState(oldState);
}
}
__WL_doSetWbMaterial(wbMaterial);
__WL_postSetWbMaterial();
if (ejbStore) ejbStore();
} 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);
}
}private void __WL_postSetWbMaterial() throws java.lang.Exception { if (!(materialSn==null)) {
personal_payout_manage.ejbs.WbMaterial_utl58_Intf __WL_bean = (personal_payout_manage.ejbs.WbMaterial_utl58_Intf)
__WL_wbMaterial_bm.lookup(this.materialSn);
int oldState = __WL_bean.__WL_getMethodState();
try {
__WL_bean.__WL_setMethodState(WLEnterpriseBean.STATE_BUSINESS_METHOD);
if ((__WL_bean.__WL_beanIsLoaded() && __WL_bean.__WL_getIsRemoved()) ||
(!__WL_bean.__WL_beanIsLoaded() && !__WL_bean.__WL_exists(this.materialSn))) {
Loggable l = EJBLogger.logillegalAttemptToAssignRemovedBeanToCMRFieldLoggable(
this.materialSn.toString());
throw new IllegalArgumentException(l.getMessage());
}
RDBMSSet __WL_collection = (RDBMSSet)
__WL_bean.getWbPayout();
__WL_collection.doAdd(__WL_ctx.getEJBLocalObject());
} finally {
__WL_bean.__WL_setMethodState(oldState);
}
}
}public void __WL_doSetWbMaterial(personal_payout_manage.ejbs.WbMaterial wbMaterial) { try {
if (!__WL_isLoaded[3]) __WL_loadGroup0();
if (__WL_verbose) {
Debug.say("[" + __WL_ctx.getPrimaryKey() +
"]called __WL_doSetWbMaterial...");
}
__WL_wbMaterial_field_ = wbMaterial;
if (__WL_wbMaterial_field_ == null) {
if (__WL_verbose) {
Debug.say("setting field variable to null.");
}
materialSn = null;__WL_isModified[3] = true;
}
else {
if (__WL_verbose) {
Debug.say("setting field variable to new value.");
}
materialSn = (java.lang.String)__WL_wbMaterial_field_.getPrimaryKey();__WL_isModified[3] = true;
}
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
} catch (RuntimeException re) {
if (__WL_verbose) {
Debug.say("rethrowing RuntimeException.");
re.printStackTrace();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -