StringBuffer buffer = new StringBuffer();
buffer.append("Read Only Bean Info for " + primaryKey + "\n");
buffer.append("Refresh needed = " + refreshNeeded + "\n");
buffer.append("Bean level sequence num = " + beanLevelSequenceNum
+ "\n");
buffer.append("PK level sequence num = " + pkLevelSequenceNum + "\n");
if( lastRefreshRequestedAt > 0 ) {
buffer.append("Last refresh requested at " +
new Date(lastRefreshRequestedAt)
+ "\n");
} else {
buffer.append("Refresh has never been requested\n");
}
if( lastRefreshedAt > 0 ) {
buffer.append("Last refreshed at " +
new Date(lastRefreshedAt) + "\n");
} else {
buffer.append("Never refreshed\n");
}
return buffer.toString();