FileDocCategorySizeDatePackage
SFSBBeanState.javaAPI DocGlassfish v2 API4276Fri May 04 22:33:14 BST 2007com.sun.ejb.spi.sfsb.store

SFSBBeanState

public class SFSBBeanState extends Object
author
lwhite

Fields Summary
private String
_clusterId
private long
_containerId
private Object
_id
private long
_lastAccess
private long
_txCheckpointDuration
private boolean
_isNew
private byte[]
_state
private SFSBStoreManager
_storeManager
private long
version
Constructors Summary
public SFSBBeanState(String clusterId, long containerId, Object sessionId, long lastAccess, boolean isNew, byte[] state, SFSBStoreManager storeManager)
Creates a new instance of SFSBBeanState

	_clusterId = clusterId;
	_containerId = containerId;
        _id = sessionId;
        _lastAccess = lastAccess;
        _isNew = isNew;
        _state = state;
	_storeManager = storeManager;
    
Methods Summary
public java.lang.StringgetClusterId()

	return _clusterId;
    
public longgetContainerId()

	return _containerId;
    
public java.lang.ObjectgetId()

return
id (key)

        return _id;
    
public longgetLastAccess()

return
last access time

        return _lastAccess;
    
public SFSBStoreManagergetSFSBStoreManager()

	return _storeManager;
    
public byte[]getState()

return
state

        return _state;
    
public longgetTxCheckpointDuration()

return
tx checkpoint duration (milliseconds)

        return _txCheckpointDuration;
    
public longgetVersion()

        return version;
    
public booleanisNew()

return
isNew - true means not persistent; false means already persistent

        return _isNew;
    
public voidsetTxCheckpointDuration(long value)
set tx checkpoint duration (milliseconds) by semantic convention the setter will usually be incrementing the present value by an additional duration

        _txCheckpointDuration = value;
    
public voidsetVersion(long version)

        this.version = version;