com.opensymphony.ejb
Class AbstractEntityAdapter
java.lang.Object
|
+--com.opensymphony.ejb.AbstractEntityAdapter
- Direct Known Subclasses:
- EntityAdapter, ExceptionlessEntityAdapter
- public class AbstractEntityAdapter
- extends java.lang.Object
Field Summary |
protected javax.ejb.EntityContext |
context
Reference to EntityContext. |
protected java.lang.String |
sequenceName
Name of the auto-generating sequence. |
Method Summary |
protected java.lang.String |
generateGUID()
Generate random GUID. |
protected PropertySet |
locatePropertySet(long id)
Locate PropertySet using PropertyStore for this sequenceName/sequenceId mapping. |
protected int |
nextId()
Deprecated. Use nextInt() or nextLong() instead. |
protected int |
nextInt()
Return int unique id key from a unique instance key generator. |
protected long |
nextLong()
Return long unique id key from a unique instance key generator. |
protected void |
setContext(javax.ejb.EntityContext context)
Sets the context - should be used only by direct subclasses
Also, attempts to determine the sequenceName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected javax.ejb.EntityContext context
- Reference to EntityContext.
sequenceName
protected java.lang.String sequenceName
- Name of the auto-generating sequence.
AbstractEntityAdapter
public AbstractEntityAdapter()
setContext
protected void setContext(javax.ejb.EntityContext context)
- Sets the context - should be used only by direct subclasses
Also, attempts to determine the
sequenceName
.
nextLong
protected long nextLong()
throws javax.ejb.CreateException,
java.rmi.RemoteException
- Return long unique id key from a unique instance key generator.
generateGUID
protected java.lang.String generateGUID()
- Generate random GUID.
- See Also:
GUID
nextInt
protected int nextInt()
throws javax.ejb.CreateException,
java.rmi.RemoteException
- Return int unique id key from a unique instance key generator.
nextId
protected int nextId()
throws javax.ejb.CreateException,
java.rmi.RemoteException
- Deprecated. Use
nextInt()
or nextLong()
instead.
locatePropertySet
protected PropertySet locatePropertySet(long id)
throws java.rmi.RemoteException
- Locate PropertySet using PropertyStore for this sequenceName/sequenceId mapping.