1 23 package com.sun.ejb.containers; 24 25 import javax.ejb.EnterpriseBean ; 26 27 33 34 public final class ReadOnlyContextImpl 35 extends EntityContextImpl 36 { 37 private int pkLevelSequenceNum; 38 private long lastRefreshedAt; 39 private boolean removed = false; 40 41 private ReadOnlyBeanInfo robInfo; 43 44 ReadOnlyContextImpl(EnterpriseBean ejb, BaseContainer container) { 45 super(ejb, container); 46 } 47 48 public int getPKLevelSequenceNum() { 49 return pkLevelSequenceNum; 50 } 51 52 public void incrementPKLevelSequenceNum() { 53 pkLevelSequenceNum++; 54 } 55 56 public void setPKLevelSequenceNum(int num) { 57 pkLevelSequenceNum = num; 58 } 59 60 public long getLastRefreshedAt() { 61 return lastRefreshedAt; 62 } 63 64 public void setLastRefreshedAt(long time) { 65 lastRefreshedAt = time; 66 } 67 68 public boolean isRemoved() { 69 return removed; 70 } 71 72 public void setRemoved(boolean value) { 73 removed = value; 74 } 75 76 public void setReadOnlyBeanInfo(ReadOnlyBeanInfo info) { 77 robInfo = info; 78 79 pkLevelSequenceNum = -1; 82 lastRefreshedAt = 0; 83 } 84 85 public ReadOnlyBeanInfo getReadOnlyBeanInfo() { 86 return robInfo; 87 } 88 } 89 | Popular Tags |