SequenceBean.java~8~
上传用户:jnhyscl
上传日期:2010-03-08
资源大小:345k
文件大小:1k
- package shiponline;
- import javax.ejb.*;
- abstract public class SequenceBean implements EntityBean {
- EntityContext entityContext;
- public java.lang.String ejbCreate(java.lang.String sequenceName) throws CreateException {
- setSequenceName(sequenceName);
- return null;
- }
- public void ejbPostCreate(java.lang.String sequenceName) throws CreateException {
- /**@todo Complete this method*/
- }
- public void ejbRemove() throws RemoveException {
- /**@todo Complete this method*/
- }
- public abstract void setSequenceName(java.lang.String sequenceName);
- public abstract void setSequenceIndex(java.lang.Integer sequenceIndex);
- public abstract java.lang.String getSequenceName();
- public abstract java.lang.Integer getSequenceIndex();
- public void ejbLoad() {
- /**@todo Complete this method*/
- }
- public void ejbStore() {
- /**@todo Complete this method*/
- }
- public void ejbActivate() {
- /**@todo Complete this method*/
- }
- public void ejbPassivate() {
- /**@todo Complete this method*/
- }
- public void unsetEntityContext() {
- this.entityContext = null;
- }
- public void setEntityContext(EntityContext entityContext) {
- this.entityContext = entityContext;
- }
- public int seqValueBeforeIncrementingBy(int blockSize) {
- int result = getSequenceIndex().intValue();
- setSequenceIndex(new Integer(result + blockSize));
- return result;
- }
- }