com.caucho.ejb.entity
Class EntityObject

java.lang.Object
  extended by com.caucho.ejb.AbstractEJBObject
      extended by com.caucho.ejb.entity.EntityObject
All Implemented Interfaces:
java.io.Serializable, EJBLocalObject
Direct Known Subclasses:
EntityLocal, EntityRemote

public abstract class EntityObject
extends AbstractEJBObject
implements java.io.Serializable, EJBLocalObject

Abstract base class for an EntityObject.

See Also:
Serialized Form

Field Summary
static byte _CAUCHO_IS_ACTIVE
           
static byte _CAUCHO_IS_DEAD
           
static byte _CAUCHO_IS_DIRTY
           
static byte _CAUCHO_IS_LOADED
           
protected static java.util.logging.Logger log
           
 
Constructor Summary
EntityObject()
           
 
Method Summary
 java.lang.String __caucho_getId()
          The home id is null.
 AbstractServer __caucho_getServer()
          Returns the server.
 java.lang.Object _caucho_getBean()
          Returns an underlying bean
 java.lang.Object _caucho_getBean(TransactionContext trans, boolean doLoad)
          Returns an underlying bean
 EntityServer _caucho_getEntityServer()
          Returns the server.
 boolean equals(java.lang.Object o)
          Returns true if this object equals the test object.
 EJBHome getEJBHome()
          Returns the EJBHome stub for the container.
 EJBLocalHome getEJBLocalHome()
          Returns the EJBHome stub for the container.
 java.lang.Object getEJBLocalObject()
           
 java.lang.Object getEJBObject()
           
protected abstract  QEntityContext getEntityContext()
           
 Handle getHandle()
          Returns the handle.
 java.lang.Object getPrimaryKey()
          Returns the Entity bean's primary key
 int hashCode()
          Returns a hash code for the object.
 boolean isIdentical(EJBLocalObject o)
          Returns true if the two objects are identical.
 boolean isIdentical(EJBObject obj)
          Returns true if the two objects are identical.
 boolean isMatch(EntityServer server, java.lang.Object key)
          Return if matching context.
 void remove()
          Remove the object.
 java.lang.String toString()
          Returns the string value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log

_CAUCHO_IS_DEAD

public static final byte _CAUCHO_IS_DEAD
See Also:
Constant Field Values

_CAUCHO_IS_ACTIVE

public static final byte _CAUCHO_IS_ACTIVE
See Also:
Constant Field Values

_CAUCHO_IS_LOADED

public static final byte _CAUCHO_IS_LOADED
See Also:
Constant Field Values

_CAUCHO_IS_DIRTY

public static final byte _CAUCHO_IS_DIRTY
See Also:
Constant Field Values
Constructor Detail

EntityObject

public EntityObject()
Method Detail

getEntityContext

protected abstract QEntityContext getEntityContext()

getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns the Entity bean's primary key

Specified by:
getPrimaryKey in interface EJBLocalObject

getEJBObject

public java.lang.Object getEJBObject()

getEJBLocalObject

public java.lang.Object getEJBLocalObject()

_caucho_getEntityServer

public EntityServer _caucho_getEntityServer()
Returns the server.


isMatch

public boolean isMatch(EntityServer server,
                       java.lang.Object key)
Return if matching context.


getHandle

public Handle getHandle()
Returns the handle.


_caucho_getBean

public java.lang.Object _caucho_getBean(TransactionContext trans,
                                        boolean doLoad)
Returns an underlying bean


_caucho_getBean

public java.lang.Object _caucho_getBean()
Returns an underlying bean


getEJBHome

public EJBHome getEJBHome()
Returns the EJBHome stub for the container.


getEJBLocalHome

public EJBLocalHome getEJBLocalHome()
Returns the EJBHome stub for the container.

Specified by:
getEJBLocalHome in interface EJBLocalObject

isIdentical

public boolean isIdentical(EJBObject obj)
                    throws java.rmi.RemoteException
Returns true if the two objects are identical.

Throws:
java.rmi.RemoteException

isIdentical

public boolean isIdentical(EJBLocalObject o)
Returns true if the two objects are identical.

Specified by:
isIdentical in interface EJBLocalObject

remove

public void remove()
            throws RemoveException
Remove the object.

Specified by:
remove in interface EJBLocalObject
Throws:
RemoveException

__caucho_getServer

public AbstractServer __caucho_getServer()
Returns the server.

Specified by:
__caucho_getServer in class AbstractEJBObject

__caucho_getId

public java.lang.String __caucho_getId()
The home id is null.

Specified by:
__caucho_getId in class AbstractEJBObject

hashCode

public int hashCode()
Returns a hash code for the object.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if this object equals the test object.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the string value.

Overrides:
toString in class java.lang.Object