FileDocCategorySizeDatePackage
ReadOnlyBeanInfo.javaAPI DocGlassfish v2 API3866Fri May 04 22:32:58 BST 2007com.sun.ejb.containers

ReadOnlyBeanInfo

public final class ReadOnlyBeanInfo extends Object
Per-primary key information stored for read-only beans.
author
Kenneth Saks

Fields Summary
Object
primaryKey
int
beanLevelSequenceNum
boolean
refreshNeeded
int
pkLevelSequenceNum
long
lastRefreshRequestedAt
long
lastRefreshedAt
Object
cachedEjbLocalObject
Object
cachedEjbObject
Constructors Summary
Methods Summary
public java.lang.StringtoString()

        
        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();