| java.lang.Object com.caucho.amber.entity.AmberEntityHome
AmberEntityHome | public class AmberEntityHome (Code) | | Manages the set of persistent beans.
|
Method Summary | |
public void | addUpdate(CacheUpdate update) Adds a cache update. | public void | delete(AmberConnection aConn, Object key) Deletes by the primary key. | public void | delete(AmberConnection aConn, long primaryKey) Deletes by the primary key. | public EntityItem | findDiscriminatorEntityItem(AmberConnection aConn, Object key, String discriminator) | public EntityItem | findEntityItem(AmberConnection aConn, Object key) Loads an entity based on the primary key. | public EntityItem | findItem(AmberConnection aConn, ResultSet rs, int index) Finds by the primary key. | public long | getCacheTimeout() Returns the cache timeout. | public Method | getCauchoGetBeanMethod() Returns the getBean method to instantiate the Amber object. | public EntityFactory | getEntityFactory() Returns the entity factory. | public EntityType | getEntityType() | public Class | getInstanceClass() Returns the instance class. | public Class | getJavaClass() Returns the java class. | public Object | getKeyFromEntity(Entity entity) Returns the entity from the key. | public AmberPersistenceUnit | getManager() Returns the manager. | public EntityType | getRootType() | public void | init() Initialize the home. | void | link() Link the classes. | public Object | loadFull(AmberConnection aConn, ResultSet rs, int index) Finds by the primary key. | public Object | loadLazy(AmberConnection aConn, ResultSet rs, int index) Finds by the primary key. | public Entity | makePersistent(Entity entity, AmberConnection aConn, boolean isLazy) Finds by the primary key. | public Entity | newDiscriminatorEntity(Object key, String discriminator) | public Entity | newEntity(Object key) Instantiates a new entity for this home. | public void | save(AmberConnection aConn, Entity entity) Saves based on the object. | public void | setEntityFactory(EntityFactory factory) Sets the entity factory. | public EntityItem | setEntityItem(Object key, EntityItem item) Loads an entity based on the primary key. | public Object | toObjectKey(long key) Converts a long key to the key. | public String | toString() | public void | update(Entity entity) Update for a modification. |
findDiscriminatorEntityItem | public EntityItem findDiscriminatorEntityItem(AmberConnection aConn, Object key, String discriminator) throws SQLException(Code) | | Loads an entity where the type is determined by a discriminator
Parameters: aConn - the connection to associate with the entity Parameters: key - the primary key Parameters: discriminator - the object's discriminator |
findEntityItem | public EntityItem findEntityItem(AmberConnection aConn, Object key) throws AmberException(Code) | | Loads an entity based on the primary key.
Parameters: aConn - the Amber connection to associate with the loaded item Parameters: key - the primary key Parameters: isLoad - if true, try to load the bean |
getCacheTimeout | public long getCacheTimeout()(Code) | | Returns the cache timeout.
|
getCauchoGetBeanMethod | public Method getCauchoGetBeanMethod()(Code) | | Returns the getBean method to instantiate the Amber object.
|
getInstanceClass | public Class getInstanceClass()(Code) | | Returns the instance class.
|
getJavaClass | public Class getJavaClass()(Code) | | Returns the java class.
|
init | public void init() throws ConfigException(Code) | | Initialize the home.
|
link | void link() throws ConfigException(Code) | | Link the classes.
|
newDiscriminatorEntity | public Entity newDiscriminatorEntity(Object key, String discriminator)(Code) | | Loads an entity where the type is determined by a discriminator
Parameters: aConn - the connection to associate with the entity Parameters: key - the primary key Parameters: discriminator - the object's discriminator |
newEntity | public Entity newEntity(Object key)(Code) | | Instantiates a new entity for this home.
|
setEntityFactory | public void setEntityFactory(EntityFactory factory)(Code) | | Sets the entity factory.
|
setEntityItem | public EntityItem setEntityItem(Object key, EntityItem item) throws AmberException(Code) | | Loads an entity based on the primary key.
Parameters: key - the primary key Parameters: aConn - the Amber connection to associate with the loaded item Parameters: isLoad - if true, try to load the bean |
toObjectKey | public Object toObjectKey(long key)(Code) | | Converts a long key to the key.
|
|
|