Albert Luo
2005-02-04 03:47:44 UTC
Hi, all
java.rmi.RemoteException: EJB Exception:; nested exception is:
java.rmi.RemoteException: EJB Exception:: javax.ejb.EJBException: [EJB:010145]When a cmp-field and a cmr-field (relationship) are mapped to the same column, the setXXX method for the cmp-field may not be called. The cmp-field is read-only.
at com.telus.rms.db.InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.setCycleCountId(InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.java:335)
at com.telus.rms.db.InventoryCountDetailBean.ejbCreate(InventoryCountDetailBean.java:84)
at com.telus.rms.db.InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.ejbCreate(InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.java:3407)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:1121)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:1091)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:247)
at com.telus.rms.db.InventoryCountDetail_cm44tk_HomeImpl.create(InventoryCountDetail_cm44tk_HomeImpl.java:136)
at com.telus.rms.db.session.InventoryActivitySessionBeanAccess.insertInventoryCountDetail(InventoryActivitySessionBeanAccess.java:878)
at com.telus.rms.db.session.InventoryActivitySessionBean.processPhysicalCountSheet(InventoryActivitySessionBean.java:440)
at com.telus.rms.db.session.InventoryActivitySession_svqw9m_EOImpl.processPhysicalCountSheet(InventoryActivitySession_svqw9m_EOImpl.java:565)
at com.telus.rms.db.session.InventoryActivitySession_svqw9m_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
I got the above error message when I call the entity bean from a test client, actually it's a pretty simple relation between the two entity beans. I am not using the entity bean local interface, which Weblogic 8.1 spec. is supposed to support. The following are the two entity beans souce, the CYCLE_COUNT_ID is a primary key in Inventory_count table which maps to InventoryCount Entity Bean, and CYCLE_COUNT_ID is a foreign key in Inventory_count_detail table which maps to InventoryCountDetail entity bean. The following are the source codes of these two entity beans. Any help or suggestions are greatly appreciated!
Thanks!
package com.telus.rms.db;
import java.rmi.*;
import javax.ejb.*;
import java.math.*;
import java.sql.*;
/**
* <p>InventoryCountBean is an Container Managed Bean that
* manipulates inventory count persisted data.</p>
*
*
* @ejbgen:entity
* ejb-name = InventoryCount
* prim-key-class = java.math.BigDecimal
* data-source-name = rms.jdbc.RMS
* table-name = INVENTORY_COUNT
* max-beans-in-cache = 300
* trans-timeout-seconds = 30
* reentrant = False
* concurrency-strategy = Database
* delay-database-insert-until = ejbPostCreate
* read-timeout-seconds = 600
* default-transaction = Required
* enable-call-by-reference = True
*
* @ejbgen:jndi-name
* remote = rms.ejb.entity.InventoryCount
*
* @ejbgen:jar-settings
* ejb-client-jar = rmsdb-client.jar
* create-tables = Disabled
*
* @ejbgen:relation
* multiplicity = one
* name = InventoryCountDetail_InventoryCount
* target-ejb = InventoryCountDetail
*
*
*
* @ejbgen:resource-ref
* auth = Container
* jndi-name = rms.jdbc.RMS
* name = jdbc/RMSDB
* type = javax.sql.DataSource
*
* @ejbgen:file-generation
* local-class = False
* local-home = False
* value-class = False
*
* @ejbgen:finder
* signature = "InventoryCount findByPrimaryKey(java.math.BigDecimal primaryKey)"
* ejb-ql = "This is ignored - Weblogic container will generate EJB-QL for findByPrimaryKey"
*
* @ejbgen:finder
* signature = "java.util.Collection findAll()"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o"
*
* @ejbgen:finder
* signature = "java.util.Collection findByDocumentNum(java.lang.String documentNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o WHERE o.documentNo = ?1"
*
* @ejbgen:finder
* signature = "java.util.Collection findByDocNumAndStoreID(java.lang.String docNum, java.lang.String storeID)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o WHERE o.documentNo = ?1 AND o.storeId = ?2"
*/
public abstract class InventoryCountBean implements EntityBean {
EntityContext entityContext;
public BigDecimal ejbCreate(BigDecimal cycleCountId, String documentNo, String documentYear, Timestamp plannedCountDt, Timestamp documentDt, Timestamp actualCountDt, String storeId, String storageLoc, String status, String statusDes, String saleableInd, BigDecimal resubmitCount, String employeeNo) throws CreateException, RemoteException {
setCycleCountId(cycleCountId);
setDocumentNo(documentNo);
setDocumentYear(documentYear);
setPlannedCountDt(plannedCountDt);
setDocumentDt(documentDt);
setActualCountDt(actualCountDt);
setStoreId(storeId);
setStorageLoc(storageLoc);
setStatus(status);
setStatusDes(statusDes);
setSaleableInd(saleableInd);
setResubmitCount(resubmitCount);
setEmployeeNo(employeeNo);
return null;
}
public BigDecimal ejbCreate(BigDecimal cycleCountId) throws RemoteException, CreateException, RemoteException {
return ejbCreate(cycleCountId, null, null, null, null, null, null, null, null, null, null, null, null);
}
public void ejbPostCreate(BigDecimal cycleCountId, String documentNo, String documentYear, Timestamp plannedCountDt, Timestamp documentDt, Timestamp actualCountDt, String storeId, String storageLoc, String status, String statusDes, String saleableInd, BigDecimal resubmitCount, String employeeNo) throws CreateException, RemoteException {
}
public void ejbPostCreate(BigDecimal cycleCountId) throws CreateException, RemoteException {
ejbPostCreate(cycleCountId, null, null, null, null, null, null, null, null, null, null, null, null);
}
public void ejbLoad() throws RemoteException {
}
public void ejbStore() throws RemoteException {
}
public void ejbRemove() throws RemoveException, RemoteException {
}
public void ejbActivate() throws RemoteException {
}
public void ejbPassivate() throws RemoteException {
}
public void setEntityContext(EntityContext entityContext) throws RemoteException {
this.entityContext = entityContext;
}
public void unsetEntityContext() throws RemoteException {
entityContext = null;
}
/**
* @ejbgen:cmp-field column = CYCLE_COUNT_ID
* @ejbgen:remote-method
* @ejbgen:primkey-field
*/
public abstract BigDecimal getCycleCountId();
public abstract void setCycleCountId(BigDecimal cycleCountId);
/**
* @ejbgen:cmp-field column = DOCUMENT_NO
* @ejbgen:remote-method
*/
public abstract String getDocumentNo();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentNo(String documentNo);
/**
* @ejbgen:cmp-field column = DOCUMENT_YEAR
* @ejbgen:remote-method
*/
public abstract String getDocumentYear();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentYear(String documentYear);
/**
* @ejbgen:cmp-field column = PLANNED_COUNT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getPlannedCountDt();
/**
* @ejbgen:remote-method
*/
public abstract void setPlannedCountDt(Timestamp plannedCountDt);
/**
* @ejbgen:cmp-field column = DOCUMENT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getDocumentDt();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentDt(Timestamp documentDt);
/**
* @ejbgen:cmp-field column = ACTUAL_COUNT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getActualCountDt();
/**
* @ejbgen:remote-method
*/
public abstract void setActualCountDt(Timestamp actualCountDt);
/**
* @ejbgen:cmp-field column = STORE_ID
* @ejbgen:remote-method
*/
public abstract String getStoreId();
/**
* @ejbgen:remote-method
*/
public abstract void setStoreId(String storeId);
/**
* @ejbgen:cmp-field column = STORAGE_LOC
* @ejbgen:remote-method
*/
public abstract String getStorageLoc();
/**
* @ejbgen:remote-method
*/
public abstract void setStorageLoc(String storageLoc);
/**
* @ejbgen:cmp-field column = STATUS
* @ejbgen:remote-method
*/
public abstract String getStatus();
/**
* @ejbgen:remote-method
*/
public abstract void setStatus(String status);
/**
* @ejbgen:cmp-field column = STATUS_DES
* @ejbgen:remote-method
*/
public abstract String getStatusDes();
/**
* @ejbgen:remote-method
*/
public abstract void setStatusDes(String statusDes);
/**
* @ejbgen:cmp-field column = SALEABLE_IND
* @ejbgen:remote-method
*/
public abstract String getSaleableInd();
/**
* @ejbgen:remote-method
*/
public abstract void setSaleableInd(String saleableInd);
/**
* @ejbgen:cmp-field column = RESUBMIT_COUNT
* @ejbgen:remote-method
*/
public abstract BigDecimal getResubmitCount();
/**
* @ejbgen:remote-method
*/
public abstract void setResubmitCount(BigDecimal resubmitCount);
/**
* @ejbgen:cmp-field column = EMPLOYEE_NO
* @ejbgen:remote-method
*/
public abstract String getEmployeeNo();
/**
* @ejbgen:remote-method
*/
public abstract void setEmployeeNo(String employeeNo);
}
package com.telus.rms.db;
import java.rmi.*;
import javax.ejb.*;
import java.math.*;
/**
* <p>InventoryCountDetailBean is an Container Managed Bean that
* manipulates inventory count detail persisted data.</p>
*
* @ejbgen:entity
* ejb-name = InventoryCountDetail
* prim-key-class = java.math.BigDecimal
* data-source-name = rms.jdbc.RMS
* table-name = INVENTORY_COUNT_DETAIL
* max-beans-in-cache = 3000
* trans-timeout-seconds = 30
* reentrant = False
* concurrency-strategy = Database
* delay-database-insert-until = ejbPostCreate
* read-timeout-seconds = 600
* default-transaction = Required
* enable-call-by-reference = True
*
* @ejbgen:jndi-name
* remote = rms.ejb.entity.InventoryCountDetail
*
* @ejbgen:jar-settings
* ejb-client-jar = rmsdb-client.jar
* create-tables = Disabled
*
* @ejbgen:relation
* multiplicity = many
* name = InventoryCountDetail_InventoryCount
* target-ejb = InventoryCount
* cmr-field = inventoryCount
* fk-column = CYCLE_COUNT_ID
*
*
*
*
* @ejbgen:resource-ref
* auth = Container
* jndi-name = rms.jdbc.RMS
* name = jdbc/RMSDB
* type = javax.sql.DataSource
*
* @ejbgen:file-generation
* local-class = False
* local-home = False
* value-class = False
*
* @ejbgen:finder
* signature = "InventoryCountDetail findByPrimaryKey(java.math.BigDecimal primaryKey)"
* ejb-ql = "This is ignored - Weblogic container will generate EJB-QL for findByPrimaryKey"
*
* @ejbgen:finder
* signature = "java.util.Collection findAll()"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String productCd)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.productCd = ?3"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String productCd, java.lang.String returnType)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.productCd = ?3 AND o.returnType = ?4"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNumAndSapMatNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String sapMatNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.sapMaterialNo = ?3"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndSapMatNum(java.math.BigDecimal cycleCountID, java.lang.String sapMatNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.sapMaterialNo = ?2"
*/
public abstract class InventoryCountDetailBean implements EntityBean {
EntityContext entityContext;
public BigDecimal ejbCreate(BigDecimal inventoryCountDetailId, BigDecimal cycleCountId, String lineNo, String scannerSeqNo, String productCd, BigDecimal inventoryCountQty, BigDecimal sapQty, String unitType, String serializedInd, String sapMaterialNo, String returnType) throws CreateException, RemoteException {
setInventoryCountDetailId(inventoryCountDetailId);
setCycleCountId(cycleCountId);
setLineNo(lineNo);
setScannerSeqNo(scannerSeqNo);
setProductCd(productCd);
setInventoryCountQty(inventoryCountQty);
setSapQty(sapQty);
setUnitType(unitType);
setSerializedInd(serializedInd);
setSapMaterialNo(sapMaterialNo);
setReturnType(returnType);
return null;
}
public BigDecimal ejbCreate(BigDecimal inventoryCountDetailId) throws RemoteException, CreateException, RemoteException {
return ejbCreate(inventoryCountDetailId, null, null, null, null, null, null, null, null, null, null);
}
public void ejbPostCreate(BigDecimal inventoryCountDetailId, BigDecimal cycleCountId, String lineNo, String scannerSeqNo, String productCd, BigDecimal inventoryCountQty, BigDecimal sapQty, String unitType, String serializedInd, String sapMaterialNo, String returnType) throws CreateException, RemoteException {
}
public void ejbPostCreate(BigDecimal inventoryCountDetailId) throws CreateException, RemoteException {
ejbPostCreate(inventoryCountDetailId, null, null, null, null, null, null, null, null, null, null);
}
public void ejbLoad() throws RemoteException {
}
public void ejbStore() throws RemoteException {
}
public void ejbRemove() throws RemoveException, RemoteException {
}
public void ejbActivate() throws RemoteException {
}
public void ejbPassivate() throws RemoteException {
}
public void setEntityContext(EntityContext entityContext) throws RemoteException {
this.entityContext = entityContext;
}
public void unsetEntityContext() throws RemoteException {
entityContext = null;
}
/**
* @ejbgen:cmp-field column = INVENTORY_COUNT_DETAIL_ID
* @ejbgen:remote-method
* @ejbgen:primkey-field
*/
public abstract BigDecimal getInventoryCountDetailId();
public abstract void setInventoryCountDetailId(BigDecimal inventoryCountDetailId);
/**
* @ejbgen:cmp-field column = CYCLE_COUNT_ID
* @ejbgen:remote-method
*/
public abstract BigDecimal getCycleCountId();
/***
* @ejbgen:remote-method
*/
public abstract void setCycleCountId(BigDecimal cycleCountId);
/**
* @ejbgen:cmr-field
*/
public abstract InventoryCount getInventoryCount( );
public abstract void setInventoryCount( InventoryCount inventoryCount );
/**
* @ejbgen:cmp-field column = LINE_NO
* @ejbgen:remote-method
*/
public abstract String getLineNo();
/**
* @ejbgen:remote-method
*/
public abstract void setLineNo(String lineNo);
/**
* @ejbgen:cmp-field column = SCANNER_SEQ_NO
* @ejbgen:remote-method
*/
public abstract String getScannerSeqNo();
/**
* @ejbgen:remote-method
*/
public abstract void setScannerSeqNo(String scannerSeqNo);
/**
* @ejbgen:cmp-field column = PRODUCT_CD
* @ejbgen:remote-method
*/
public abstract String getProductCd();
/**
* @ejbgen:remote-method
*/
public abstract void setProductCd(String productCd);
/**
* @ejbgen:cmp-field column = INVENTORY_COUNT_QTY
* @ejbgen:remote-method
*/
public abstract BigDecimal getInventoryCountQty();
/**
* @ejbgen:remote-method
*/
public abstract void setInventoryCountQty(BigDecimal inventoryCountQty);
/**
* @ejbgen:cmp-field column = SAP_QTY
* @ejbgen:remote-method
*/
public abstract BigDecimal getSapQty();
/**
* @ejbgen:remote-method
*/
public abstract void setSapQty(BigDecimal sapQty);
/**
* @ejbgen:cmp-field column = UNIT_TYPE
* @ejbgen:remote-method
*/
public abstract String getUnitType();
/**
* @ejbgen:remote-method
*/
public abstract void setUnitType(String unitType);
/**
* @ejbgen:cmp-field column = SERIALIZED_IND
* @ejbgen:remote-method
*/
public abstract String getSerializedInd();
/**
* @ejbgen:remote-method
*/
public abstract void setSerializedInd(String serializedInd);
/**
* @ejbgen:cmp-field column = SAP_MATERIAL_NO
* @ejbgen:remote-method
*/
public abstract String getSapMaterialNo();
/**
* @ejbgen:remote-method
*/
public abstract void setSapMaterialNo(String sapMaterialNo);
/**
* @ejbgen:cmp-field column = RETURN_TYPE
* @ejbgen:remote-method
*/
public abstract String getReturnType();
/**
* @ejbgen:remote-method
*/
public abstract void setReturnType(String returnType);
}
java.rmi.RemoteException: EJB Exception:; nested exception is:
java.rmi.RemoteException: EJB Exception:: javax.ejb.EJBException: [EJB:010145]When a cmp-field and a cmr-field (relationship) are mapped to the same column, the setXXX method for the cmp-field may not be called. The cmp-field is read-only.
at com.telus.rms.db.InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.setCycleCountId(InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.java:335)
at com.telus.rms.db.InventoryCountDetailBean.ejbCreate(InventoryCountDetailBean.java:84)
at com.telus.rms.db.InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.ejbCreate(InventoryCountDetail_cm44tk__WebLogic_CMP_RDBMS.java:3407)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:1121)
at weblogic.ejb20.manager.DBManager.remoteCreate(DBManager.java:1091)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:247)
at com.telus.rms.db.InventoryCountDetail_cm44tk_HomeImpl.create(InventoryCountDetail_cm44tk_HomeImpl.java:136)
at com.telus.rms.db.session.InventoryActivitySessionBeanAccess.insertInventoryCountDetail(InventoryActivitySessionBeanAccess.java:878)
at com.telus.rms.db.session.InventoryActivitySessionBean.processPhysicalCountSheet(InventoryActivitySessionBean.java:440)
at com.telus.rms.db.session.InventoryActivitySession_svqw9m_EOImpl.processPhysicalCountSheet(InventoryActivitySession_svqw9m_EOImpl.java:565)
at com.telus.rms.db.session.InventoryActivitySession_svqw9m_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
I got the above error message when I call the entity bean from a test client, actually it's a pretty simple relation between the two entity beans. I am not using the entity bean local interface, which Weblogic 8.1 spec. is supposed to support. The following are the two entity beans souce, the CYCLE_COUNT_ID is a primary key in Inventory_count table which maps to InventoryCount Entity Bean, and CYCLE_COUNT_ID is a foreign key in Inventory_count_detail table which maps to InventoryCountDetail entity bean. The following are the source codes of these two entity beans. Any help or suggestions are greatly appreciated!
Thanks!
package com.telus.rms.db;
import java.rmi.*;
import javax.ejb.*;
import java.math.*;
import java.sql.*;
/**
* <p>InventoryCountBean is an Container Managed Bean that
* manipulates inventory count persisted data.</p>
*
*
* @ejbgen:entity
* ejb-name = InventoryCount
* prim-key-class = java.math.BigDecimal
* data-source-name = rms.jdbc.RMS
* table-name = INVENTORY_COUNT
* max-beans-in-cache = 300
* trans-timeout-seconds = 30
* reentrant = False
* concurrency-strategy = Database
* delay-database-insert-until = ejbPostCreate
* read-timeout-seconds = 600
* default-transaction = Required
* enable-call-by-reference = True
*
* @ejbgen:jndi-name
* remote = rms.ejb.entity.InventoryCount
*
* @ejbgen:jar-settings
* ejb-client-jar = rmsdb-client.jar
* create-tables = Disabled
*
* @ejbgen:relation
* multiplicity = one
* name = InventoryCountDetail_InventoryCount
* target-ejb = InventoryCountDetail
*
*
*
* @ejbgen:resource-ref
* auth = Container
* jndi-name = rms.jdbc.RMS
* name = jdbc/RMSDB
* type = javax.sql.DataSource
*
* @ejbgen:file-generation
* local-class = False
* local-home = False
* value-class = False
*
* @ejbgen:finder
* signature = "InventoryCount findByPrimaryKey(java.math.BigDecimal primaryKey)"
* ejb-ql = "This is ignored - Weblogic container will generate EJB-QL for findByPrimaryKey"
*
* @ejbgen:finder
* signature = "java.util.Collection findAll()"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o"
*
* @ejbgen:finder
* signature = "java.util.Collection findByDocumentNum(java.lang.String documentNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o WHERE o.documentNo = ?1"
*
* @ejbgen:finder
* signature = "java.util.Collection findByDocNumAndStoreID(java.lang.String docNum, java.lang.String storeID)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCount AS o WHERE o.documentNo = ?1 AND o.storeId = ?2"
*/
public abstract class InventoryCountBean implements EntityBean {
EntityContext entityContext;
public BigDecimal ejbCreate(BigDecimal cycleCountId, String documentNo, String documentYear, Timestamp plannedCountDt, Timestamp documentDt, Timestamp actualCountDt, String storeId, String storageLoc, String status, String statusDes, String saleableInd, BigDecimal resubmitCount, String employeeNo) throws CreateException, RemoteException {
setCycleCountId(cycleCountId);
setDocumentNo(documentNo);
setDocumentYear(documentYear);
setPlannedCountDt(plannedCountDt);
setDocumentDt(documentDt);
setActualCountDt(actualCountDt);
setStoreId(storeId);
setStorageLoc(storageLoc);
setStatus(status);
setStatusDes(statusDes);
setSaleableInd(saleableInd);
setResubmitCount(resubmitCount);
setEmployeeNo(employeeNo);
return null;
}
public BigDecimal ejbCreate(BigDecimal cycleCountId) throws RemoteException, CreateException, RemoteException {
return ejbCreate(cycleCountId, null, null, null, null, null, null, null, null, null, null, null, null);
}
public void ejbPostCreate(BigDecimal cycleCountId, String documentNo, String documentYear, Timestamp plannedCountDt, Timestamp documentDt, Timestamp actualCountDt, String storeId, String storageLoc, String status, String statusDes, String saleableInd, BigDecimal resubmitCount, String employeeNo) throws CreateException, RemoteException {
}
public void ejbPostCreate(BigDecimal cycleCountId) throws CreateException, RemoteException {
ejbPostCreate(cycleCountId, null, null, null, null, null, null, null, null, null, null, null, null);
}
public void ejbLoad() throws RemoteException {
}
public void ejbStore() throws RemoteException {
}
public void ejbRemove() throws RemoveException, RemoteException {
}
public void ejbActivate() throws RemoteException {
}
public void ejbPassivate() throws RemoteException {
}
public void setEntityContext(EntityContext entityContext) throws RemoteException {
this.entityContext = entityContext;
}
public void unsetEntityContext() throws RemoteException {
entityContext = null;
}
/**
* @ejbgen:cmp-field column = CYCLE_COUNT_ID
* @ejbgen:remote-method
* @ejbgen:primkey-field
*/
public abstract BigDecimal getCycleCountId();
public abstract void setCycleCountId(BigDecimal cycleCountId);
/**
* @ejbgen:cmp-field column = DOCUMENT_NO
* @ejbgen:remote-method
*/
public abstract String getDocumentNo();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentNo(String documentNo);
/**
* @ejbgen:cmp-field column = DOCUMENT_YEAR
* @ejbgen:remote-method
*/
public abstract String getDocumentYear();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentYear(String documentYear);
/**
* @ejbgen:cmp-field column = PLANNED_COUNT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getPlannedCountDt();
/**
* @ejbgen:remote-method
*/
public abstract void setPlannedCountDt(Timestamp plannedCountDt);
/**
* @ejbgen:cmp-field column = DOCUMENT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getDocumentDt();
/**
* @ejbgen:remote-method
*/
public abstract void setDocumentDt(Timestamp documentDt);
/**
* @ejbgen:cmp-field column = ACTUAL_COUNT_DT
* @ejbgen:remote-method
*/
public abstract Timestamp getActualCountDt();
/**
* @ejbgen:remote-method
*/
public abstract void setActualCountDt(Timestamp actualCountDt);
/**
* @ejbgen:cmp-field column = STORE_ID
* @ejbgen:remote-method
*/
public abstract String getStoreId();
/**
* @ejbgen:remote-method
*/
public abstract void setStoreId(String storeId);
/**
* @ejbgen:cmp-field column = STORAGE_LOC
* @ejbgen:remote-method
*/
public abstract String getStorageLoc();
/**
* @ejbgen:remote-method
*/
public abstract void setStorageLoc(String storageLoc);
/**
* @ejbgen:cmp-field column = STATUS
* @ejbgen:remote-method
*/
public abstract String getStatus();
/**
* @ejbgen:remote-method
*/
public abstract void setStatus(String status);
/**
* @ejbgen:cmp-field column = STATUS_DES
* @ejbgen:remote-method
*/
public abstract String getStatusDes();
/**
* @ejbgen:remote-method
*/
public abstract void setStatusDes(String statusDes);
/**
* @ejbgen:cmp-field column = SALEABLE_IND
* @ejbgen:remote-method
*/
public abstract String getSaleableInd();
/**
* @ejbgen:remote-method
*/
public abstract void setSaleableInd(String saleableInd);
/**
* @ejbgen:cmp-field column = RESUBMIT_COUNT
* @ejbgen:remote-method
*/
public abstract BigDecimal getResubmitCount();
/**
* @ejbgen:remote-method
*/
public abstract void setResubmitCount(BigDecimal resubmitCount);
/**
* @ejbgen:cmp-field column = EMPLOYEE_NO
* @ejbgen:remote-method
*/
public abstract String getEmployeeNo();
/**
* @ejbgen:remote-method
*/
public abstract void setEmployeeNo(String employeeNo);
}
package com.telus.rms.db;
import java.rmi.*;
import javax.ejb.*;
import java.math.*;
/**
* <p>InventoryCountDetailBean is an Container Managed Bean that
* manipulates inventory count detail persisted data.</p>
*
* @ejbgen:entity
* ejb-name = InventoryCountDetail
* prim-key-class = java.math.BigDecimal
* data-source-name = rms.jdbc.RMS
* table-name = INVENTORY_COUNT_DETAIL
* max-beans-in-cache = 3000
* trans-timeout-seconds = 30
* reentrant = False
* concurrency-strategy = Database
* delay-database-insert-until = ejbPostCreate
* read-timeout-seconds = 600
* default-transaction = Required
* enable-call-by-reference = True
*
* @ejbgen:jndi-name
* remote = rms.ejb.entity.InventoryCountDetail
*
* @ejbgen:jar-settings
* ejb-client-jar = rmsdb-client.jar
* create-tables = Disabled
*
* @ejbgen:relation
* multiplicity = many
* name = InventoryCountDetail_InventoryCount
* target-ejb = InventoryCount
* cmr-field = inventoryCount
* fk-column = CYCLE_COUNT_ID
*
*
*
*
* @ejbgen:resource-ref
* auth = Container
* jndi-name = rms.jdbc.RMS
* name = jdbc/RMSDB
* type = javax.sql.DataSource
*
* @ejbgen:file-generation
* local-class = False
* local-home = False
* value-class = False
*
* @ejbgen:finder
* signature = "InventoryCountDetail findByPrimaryKey(java.math.BigDecimal primaryKey)"
* ejb-ql = "This is ignored - Weblogic container will generate EJB-QL for findByPrimaryKey"
*
* @ejbgen:finder
* signature = "java.util.Collection findAll()"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String productCd)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.productCd = ?3"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String productCd, java.lang.String returnType)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.productCd = ?3 AND o.returnType = ?4"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndLineNumAndSapMatNum(java.math.BigDecimal cycleCountID, java.lang.String lineNum, java.lang.String sapMatNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.lineNo = ?2 AND o.sapMaterialNo = ?3"
*
* @ejbgen:finder
* signature = "java.util.Collection findByCycleCountIdAndSapMatNum(java.math.BigDecimal cycleCountID, java.lang.String sapMatNum)"
* ejb-ql = "SELECT OBJECT(o) FROM InventoryCountDetail AS o WHERE o.cycleCountId = ?1 AND o.sapMaterialNo = ?2"
*/
public abstract class InventoryCountDetailBean implements EntityBean {
EntityContext entityContext;
public BigDecimal ejbCreate(BigDecimal inventoryCountDetailId, BigDecimal cycleCountId, String lineNo, String scannerSeqNo, String productCd, BigDecimal inventoryCountQty, BigDecimal sapQty, String unitType, String serializedInd, String sapMaterialNo, String returnType) throws CreateException, RemoteException {
setInventoryCountDetailId(inventoryCountDetailId);
setCycleCountId(cycleCountId);
setLineNo(lineNo);
setScannerSeqNo(scannerSeqNo);
setProductCd(productCd);
setInventoryCountQty(inventoryCountQty);
setSapQty(sapQty);
setUnitType(unitType);
setSerializedInd(serializedInd);
setSapMaterialNo(sapMaterialNo);
setReturnType(returnType);
return null;
}
public BigDecimal ejbCreate(BigDecimal inventoryCountDetailId) throws RemoteException, CreateException, RemoteException {
return ejbCreate(inventoryCountDetailId, null, null, null, null, null, null, null, null, null, null);
}
public void ejbPostCreate(BigDecimal inventoryCountDetailId, BigDecimal cycleCountId, String lineNo, String scannerSeqNo, String productCd, BigDecimal inventoryCountQty, BigDecimal sapQty, String unitType, String serializedInd, String sapMaterialNo, String returnType) throws CreateException, RemoteException {
}
public void ejbPostCreate(BigDecimal inventoryCountDetailId) throws CreateException, RemoteException {
ejbPostCreate(inventoryCountDetailId, null, null, null, null, null, null, null, null, null, null);
}
public void ejbLoad() throws RemoteException {
}
public void ejbStore() throws RemoteException {
}
public void ejbRemove() throws RemoveException, RemoteException {
}
public void ejbActivate() throws RemoteException {
}
public void ejbPassivate() throws RemoteException {
}
public void setEntityContext(EntityContext entityContext) throws RemoteException {
this.entityContext = entityContext;
}
public void unsetEntityContext() throws RemoteException {
entityContext = null;
}
/**
* @ejbgen:cmp-field column = INVENTORY_COUNT_DETAIL_ID
* @ejbgen:remote-method
* @ejbgen:primkey-field
*/
public abstract BigDecimal getInventoryCountDetailId();
public abstract void setInventoryCountDetailId(BigDecimal inventoryCountDetailId);
/**
* @ejbgen:cmp-field column = CYCLE_COUNT_ID
* @ejbgen:remote-method
*/
public abstract BigDecimal getCycleCountId();
/***
* @ejbgen:remote-method
*/
public abstract void setCycleCountId(BigDecimal cycleCountId);
/**
* @ejbgen:cmr-field
*/
public abstract InventoryCount getInventoryCount( );
public abstract void setInventoryCount( InventoryCount inventoryCount );
/**
* @ejbgen:cmp-field column = LINE_NO
* @ejbgen:remote-method
*/
public abstract String getLineNo();
/**
* @ejbgen:remote-method
*/
public abstract void setLineNo(String lineNo);
/**
* @ejbgen:cmp-field column = SCANNER_SEQ_NO
* @ejbgen:remote-method
*/
public abstract String getScannerSeqNo();
/**
* @ejbgen:remote-method
*/
public abstract void setScannerSeqNo(String scannerSeqNo);
/**
* @ejbgen:cmp-field column = PRODUCT_CD
* @ejbgen:remote-method
*/
public abstract String getProductCd();
/**
* @ejbgen:remote-method
*/
public abstract void setProductCd(String productCd);
/**
* @ejbgen:cmp-field column = INVENTORY_COUNT_QTY
* @ejbgen:remote-method
*/
public abstract BigDecimal getInventoryCountQty();
/**
* @ejbgen:remote-method
*/
public abstract void setInventoryCountQty(BigDecimal inventoryCountQty);
/**
* @ejbgen:cmp-field column = SAP_QTY
* @ejbgen:remote-method
*/
public abstract BigDecimal getSapQty();
/**
* @ejbgen:remote-method
*/
public abstract void setSapQty(BigDecimal sapQty);
/**
* @ejbgen:cmp-field column = UNIT_TYPE
* @ejbgen:remote-method
*/
public abstract String getUnitType();
/**
* @ejbgen:remote-method
*/
public abstract void setUnitType(String unitType);
/**
* @ejbgen:cmp-field column = SERIALIZED_IND
* @ejbgen:remote-method
*/
public abstract String getSerializedInd();
/**
* @ejbgen:remote-method
*/
public abstract void setSerializedInd(String serializedInd);
/**
* @ejbgen:cmp-field column = SAP_MATERIAL_NO
* @ejbgen:remote-method
*/
public abstract String getSapMaterialNo();
/**
* @ejbgen:remote-method
*/
public abstract void setSapMaterialNo(String sapMaterialNo);
/**
* @ejbgen:cmp-field column = RETURN_TYPE
* @ejbgen:remote-method
*/
public abstract String getReturnType();
/**
* @ejbgen:remote-method
*/
public abstract void setReturnType(String returnType);
}