com.caucho.amber.entity
Class EntityItem

java.lang.Object
  extended by com.caucho.amber.entity.EntityItem
Direct Known Subclasses:
CacheableEntityItem, XAEntityItem

public abstract class EntityItem
extends java.lang.Object

An entity item handles the living entities.


Constructor Summary
EntityItem()
           
 
Method Summary
 Entity createEntity(AmberConnection aConn, java.lang.Object key)
           
abstract  void expire()
           
abstract  Entity getEntity()
           
 AmberEntityHome getEntityHome()
           
 int getNumberOfLoadingColumns()
           
 Entity load(AmberConnection aConn)
           
 Entity loadEntity(AmberConnection aConn, int index)
           
 Entity loadEntity(int index)
           
abstract  void save(Entity item)
           
abstract  void savePart(Entity item)
           
 void setNumberOfLoadingColumns(int number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityItem

public EntityItem()
Method Detail

getEntity

public abstract Entity getEntity()

getNumberOfLoadingColumns

public int getNumberOfLoadingColumns()

setNumberOfLoadingColumns

public void setNumberOfLoadingColumns(int number)

loadEntity

public Entity loadEntity(int index)

loadEntity

public Entity loadEntity(AmberConnection aConn,
                         int index)

createEntity

public Entity createEntity(AmberConnection aConn,
                           java.lang.Object key)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getEntityHome

public AmberEntityHome getEntityHome()

save

public abstract void save(Entity item)

savePart

public abstract void savePart(Entity item)

expire

public abstract void expire()

load

public Entity load(AmberConnection aConn)