1 23 package com.sun.ejb.containers; 24 25 import java.util.Date ; 26 27 32 33 final class ReadOnlyBeanInfo 34 { 35 36 Object primaryKey; 37 38 int beanLevelSequenceNum; 40 41 boolean refreshNeeded; 43 44 int pkLevelSequenceNum; 48 49 long lastRefreshRequestedAt; 51 52 long lastRefreshedAt; 54 55 Object cachedEjbLocalObject; 57 Object cachedEjbObject; 59 public String toString() { 60 61 StringBuffer buffer = new StringBuffer (); 62 buffer.append("Read Only Bean Info for " + primaryKey + "\n"); 63 buffer.append("Refresh needed = " + refreshNeeded + "\n"); 64 buffer.append("Bean level sequence num = " + beanLevelSequenceNum 65 + "\n"); 66 buffer.append("PK level sequence num = " + pkLevelSequenceNum + "\n"); 67 if( lastRefreshRequestedAt > 0 ) { 68 buffer.append("Last refresh requested at " + 69 new Date (lastRefreshRequestedAt) 70 + "\n"); 71 } else { 72 buffer.append("Refresh has never been requested\n"); 73 } 74 if( lastRefreshedAt > 0 ) { 75 buffer.append("Last refreshed at " + 76 new Date (lastRefreshedAt) + "\n"); 77 } else { 78 buffer.append("Never refreshed\n"); 79 } 80 81 return buffer.toString(); 82 } 83 84 } 85 | Popular Tags |