com.caucho.amber.entity
Class XAEntityItem

java.lang.Object
  extended by com.caucho.amber.entity.EntityItem
      extended by com.caucho.amber.entity.XAEntityItem

public class XAEntityItem
extends EntityItem

An entity item handles the living entities.


Constructor Summary
XAEntityItem(AmberEntityHome home, Entity entity)
           
 
Method Summary
 Entity createEntity(AmberConnection aConn, java.lang.Object key)
          Creates a new entity instance.
 void expire()
          Expire the value from the cache.
 Entity getEntity()
          Returns the cached entity.
 AmberEntityHome getEntityHome()
          Returns the entity home.
 Entity loadEntity(AmberConnection aConn, int loadGroup)
          Returns the cached entity.
 Entity loadEntity(int loadGroup)
          Returns the cached entity.
 void save(Entity item)
          Saves the item values into the cache.
 void savePart(Entity item)
          Saves the item values into the cache.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.amber.entity.EntityItem
getNumberOfLoadingColumns, load, setNumberOfLoadingColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XAEntityItem

public XAEntityItem(AmberEntityHome home,
                    Entity entity)
Method Detail

getEntityHome

public AmberEntityHome getEntityHome()
Returns the entity home.

Overrides:
getEntityHome in class EntityItem

getEntity

public Entity getEntity()
Returns the cached entity.

Specified by:
getEntity in class EntityItem
Returns:
true if the cached value is valid.

loadEntity

public Entity loadEntity(int loadGroup)
Returns the cached entity.

Overrides:
loadEntity in class EntityItem
Returns:
true if the cached value is valid.

loadEntity

public Entity loadEntity(AmberConnection aConn,
                         int loadGroup)
Returns the cached entity.

Overrides:
loadEntity in class EntityItem
Returns:
true if the cached value is valid.

createEntity

public Entity createEntity(AmberConnection aConn,
                           java.lang.Object key)
                    throws java.sql.SQLException
Creates a new entity instance.

Overrides:
createEntity in class EntityItem
Throws:
java.sql.SQLException

save

public void save(Entity item)
Saves the item values into the cache.

Specified by:
save in class EntityItem

savePart

public void savePart(Entity item)
Saves the item values into the cache.

Specified by:
savePart in class EntityItem

expire

public void expire()
Expire the value from the cache.

Specified by:
expire in class EntityItem

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object