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

ReadOnlyContextImpl

public final class ReadOnlyContextImpl extends EntityContextImpl
Implementation of EJBContext for ReadOnlyBeans. Contains extra attributes that allows selective ejbLoad()
author
Mahesh Kannan

Fields Summary
private int
pkLevelSequenceNum
private long
lastRefreshedAt
private boolean
removed
private ReadOnlyBeanInfo
robInfo
Constructors Summary
ReadOnlyContextImpl(javax.ejb.EnterpriseBean ejb, BaseContainer container)

    
        
        super(ejb, container);
    
Methods Summary
public longgetLastRefreshedAt()

        return lastRefreshedAt;
    
public intgetPKLevelSequenceNum()

        return pkLevelSequenceNum;
    
public ReadOnlyBeanInfogetReadOnlyBeanInfo()

        return robInfo;
    
public voidincrementPKLevelSequenceNum()

        pkLevelSequenceNum++;
    
public booleanisRemoved()

        return removed;
    
public voidsetLastRefreshedAt(long time)

        lastRefreshedAt = time;
    
public voidsetPKLevelSequenceNum(int num)

        pkLevelSequenceNum = num;
    
public voidsetReadOnlyBeanInfo(ReadOnlyBeanInfo info)

        robInfo = info;

        // Whenever read-only bean info is set or nulled out, initialize
        // its derived fields.
        pkLevelSequenceNum = -1;
        lastRefreshedAt = 0;
    
public voidsetRemoved(boolean value)

        removed = value;