📄 goodsbean_152mgm__weblogic_cmp_rdbms.java
字号:
return goodsNickName;
} 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 setGoodsNickName(
java.lang.String goodsNickName)
{
if ((this.goodsNickName == goodsNickName || (this.goodsNickName!=null && this.goodsNickName.equals(goodsNickName))) && __WL_isLoaded[3]) return;
this.goodsNickName = goodsNickName;
__WL_isModified[3] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public java.lang.String getGoodsAssistantName()
{
try {
if (!(__WL_isLoaded[4] || __WL_isModified[4])) {
__WL_loadGroup0();
}
return goodsAssistantName;
} 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 setGoodsAssistantName(
java.lang.String goodsAssistantName)
{
if ((this.goodsAssistantName == goodsAssistantName || (this.goodsAssistantName!=null && this.goodsAssistantName.equals(goodsAssistantName))) && __WL_isLoaded[4]) return;
this.goodsAssistantName = goodsAssistantName;
__WL_isModified[4] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public java.lang.String getGoodsPYName()
{
try {
if (!(__WL_isLoaded[5] || __WL_isModified[5])) {
__WL_loadGroup0();
}
return goodsPYName;
} 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 setGoodsPYName(
java.lang.String goodsPYName)
{
if ((this.goodsPYName == goodsPYName || (this.goodsPYName!=null && this.goodsPYName.equals(goodsPYName))) && __WL_isLoaded[5]) return;
this.goodsPYName = goodsPYName;
__WL_isModified[5] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public java.lang.String getUnit()
{
try {
if (!(__WL_isLoaded[6] || __WL_isModified[6])) {
__WL_loadGroup0();
}
return unit;
} 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 setUnit(
java.lang.String unit)
{
if ((this.unit == unit || (this.unit!=null && this.unit.equals(unit))) && __WL_isLoaded[6]) return;
this.unit = unit;
__WL_isModified[6] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public java.lang.String getSpecification()
{
try {
if (!(__WL_isLoaded[7] || __WL_isModified[7])) {
__WL_loadGroup0();
}
return specification;
} 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 setSpecification(
java.lang.String specification)
{
if ((this.specification == specification || (this.specification!=null && this.specification.equals(specification))) && __WL_isLoaded[7]) return;
this.specification = specification;
__WL_isModified[7] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public java.lang.String getProducer()
{
try {
if (!(__WL_isLoaded[8] || __WL_isModified[8])) {
__WL_loadGroup0();
}
return producer;
} 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 setProducer(
java.lang.String producer)
{
if ((this.producer == producer || (this.producer!=null && this.producer.equals(producer))) && __WL_isLoaded[8]) return;
this.producer = producer;
__WL_isModified[8] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public int getUpperLimit()
{
try {
if (!(__WL_isLoaded[9] || __WL_isModified[9])) {
__WL_loadGroup0();
}
return upperLimit;
} 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 setUpperLimit(
int upperLimit)
{
if (this.upperLimit == upperLimit && __WL_isLoaded[9]) return;
this.upperLimit = upperLimit;
__WL_isModified[9] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public int getLowerLimit()
{
try {
if (!(__WL_isLoaded[10] || __WL_isModified[10])) {
__WL_loadGroup0();
}
return lowerLimit;
} 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 setLowerLimit(
int lowerLimit)
{
if (this.lowerLimit == lowerLimit && __WL_isLoaded[10]) return;
this.lowerLimit = lowerLimit;
__WL_isModified[10] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public double getSalePrice()
{
try {
if (!(__WL_isLoaded[11] || __WL_isModified[11])) {
__WL_loadGroup0();
}
return salePrice;
} 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 setSalePrice(
double salePrice)
{
if (this.salePrice == salePrice && __WL_isLoaded[11]) return;
this.salePrice = salePrice;
__WL_isModified[11] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
public double getDiscount()
{
try {
if (!(__WL_isLoaded[12] || __WL_isModified[12])) {
__WL_loadGroup0();
}
return discount;
} 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 setDiscount(
double discount)
{
if (this.discount == discount && __WL_isLoaded[12]) return;
this.discount = discount;
__WL_isModified[12] = true;
if (! __WL_modifiedBeanIsRegistered) {
__WL_pm.registerModifiedBean(__WL_ctx.getPrimaryKey());
__WL_modifiedBeanIsRegistered = true;
}
}
//=================================================================
//Finder methods.
public java.util.Collection ejbFindDiscountGoods() throws javax.ejb.FinderException
{ if(__WL_verbose) {
Debug.say("called findDiscountGoods");
}
java.sql.Connection __WL_con = null;
java.sql.PreparedStatement __WL_stmt = null;
java.sql.ResultSet __WL_rs = null;
int selectForUpdateVal = __WL_pm.getSelectForUpdateValue();
java.lang.String __WL_query = null;
switch(selectForUpdateVal) {
case DDConstants.SELECT_FOR_UPDATE_DISABLED:
__WL_query = "SELECT WL0.goodsBarCode, WL0.categoryId, WL0.discount, WL0.goodsAssistantName, WL0.goodsName, WL0.goodsNickName, WL0.goodsPYName, WL0.lowerLimit, WL0.producer, WL0.salePrice, WL0.specification, WL0.unit, WL0.upperLimit FROM goods WL0 WHERE ( (WL0.discount < 1) ) ";
break;
case DDConstants.SELECT_FOR_UPDATE:
__WL_query = "SELECT WL0.goodsBarCode, WL0.categoryId, WL0.discount, WL0.goodsAssistantName, WL0.goodsName, WL0.goodsNickName, WL0.goodsPYName, WL0.lowerLimit, WL0.producer, WL0.salePrice, WL0.specification, WL0.unit, WL0.upperLimit FROM goods WL0 WHERE ( (WL0.discount < 1) ) FOR UPDATE ";
break;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -