com.sun.ejb.containers
Class TimerState.Blob
java.lang.Object
com.sun.ejb.containers.TimerState.Blob
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- TimerState
public static class TimerState.Blob
- extends java.lang.Object
- implements java.io.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerState.Blob
public TimerState.Blob()
TimerState.Blob
public TimerState.Blob(java.lang.Object primaryKey,
java.io.Serializable info)
throws java.io.IOException
- Throws:
java.io.IOException
getTimedObjectPrimaryKey
public java.lang.Object getTimedObjectPrimaryKey(java.lang.ClassLoader cl)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInfo
public java.io.Serializable getInfo(java.lang.ClassLoader cl)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2012 GlassFish Community. All Rights Reserved.