com.sun.ejb.containers
Class TimerState.Blob

java.lang.Object
  extended by com.sun.ejb.containers.TimerState.Blob
All Implemented Interfaces:
Serializable
Enclosing class:
TimerState

public static class TimerState.Blob
extends Object
implements Serializable

Many DBs have a limitation that at most one field per DB can hold binary data. As a workaround, store both EJBLocalObject and "info" as a single Serializable blob. This is necessary since primary key of EJBLocalObject could be a compound object. This class also isolates the portion of Timer data that is associated with the TimedObject itself. During deserialization, we must use the application class loader for the timed object, since both the primary key and info object can be application classes.

See Also:
Serialized Form

Constructor Summary
TimerState.Blob()
           
TimerState.Blob(Object primaryKey, Serializable info)
           
 
Method Summary
 Serializable getInfo(ClassLoader cl)
           
 Object getTimedObjectPrimaryKey(ClassLoader cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerState.Blob

public TimerState.Blob()

TimerState.Blob

public TimerState.Blob(Object primaryKey,
                       Serializable info)
                throws IOException
Throws:
IOException
Method Detail

getTimedObjectPrimaryKey

public Object getTimedObjectPrimaryKey(ClassLoader cl)
                                throws Exception
Throws:
Exception

getInfo

public Serializable getInfo(ClassLoader cl)
                     throws Exception
Throws:
Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.