Package | Description |
---|---|
com.caucho.amber.cfg | |
com.caucho.amber.entity | |
com.caucho.amber.field | |
com.caucho.amber.manager | |
com.caucho.amber.query | |
com.caucho.amber.table | |
com.caucho.amber.type |
Modifier and Type | Method and Description |
---|---|
Entity |
EntityResultConfig.load(AmberConnection aConn,
java.sql.ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
Entity |
Entity.__caucho_getCacheEntity()
Gets the corresponding cache entity referenced by __caucho_item.
|
Entity |
Entity.__caucho_home_find(AmberConnection aConn,
AmberEntityHome home,
java.lang.Object key)
Returns a new entity.
|
Entity |
Entity.__caucho_home_new(AmberEntityHome home,
java.lang.Object key,
AmberConnection aConn,
EntityItem cacheItem)
Returns a new entity.
|
Entity |
XAEntityItem.createEntity(AmberConnection aConn,
java.lang.Object key)
Creates a new entity instance.
|
Entity |
CacheableEntityItem.createEntity(AmberConnection aConn,
java.lang.Object key)
Creates a new entity instance.
|
Entity |
EntityItem.createEntity(AmberConnection aConn,
java.lang.Object key) |
Entity |
XAEntityItem.getEntity()
Returns the cached entity.
|
Entity |
CacheableEntityItem.getEntity()
Returns the cached entity.
|
abstract Entity |
EntityItem.getEntity() |
Entity |
EntityItem.load(AmberConnection aConn) |
Entity |
XAEntityItem.loadEntity(AmberConnection aConn,
int loadGroup)
Returns the cached entity.
|
Entity |
CacheableEntityItem.loadEntity(AmberConnection aConn,
int loadGroup)
Returns the cached entity.
|
Entity |
EntityItem.loadEntity(AmberConnection aConn,
int index) |
Entity |
XAEntityItem.loadEntity(int loadGroup)
Returns the cached entity.
|
Entity |
CacheableEntityItem.loadEntity(int loadGroup)
Returns the cached entity.
|
Entity |
EntityItem.loadEntity(int index) |
Entity |
AmberEntityHome.makePersistent(Entity entity,
AmberConnection aConn,
boolean isLazy)
Finds by the primary key.
|
Entity |
AmberEntityHome.newDiscriminatorEntity(java.lang.Object key,
java.lang.String discriminator)
Loads an entity where the type is determined by a discriminator
|
Entity |
AmberEntityHome.newEntity(java.lang.Object key)
Instantiates a new entity for this home.
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.__caucho_mergeFrom(AmberConnection aConn,
Entity targetEntity)
Merges this entity state into an existing entity.
|
void |
EntityListener.afterEntityDelete(Entity entity)
Notification after an entity is deleted.
|
void |
EntityListener.beforeEntityDelete(AmberConnection aConn,
Entity entity)
Notification before an entity is deleted.
|
java.lang.Object |
AmberEntityHome.getKeyFromEntity(Entity entity)
Returns the entity from the key.
|
Entity |
AmberEntityHome.makePersistent(Entity entity,
AmberConnection aConn,
boolean isLazy)
Finds by the primary key.
|
void |
AmberEntityHome.save(AmberConnection aConn,
Entity entity)
Saves based on the object.
|
void |
XAEntityItem.save(Entity item)
Saves the item values into the cache.
|
void |
CacheableEntityItem.save(Entity item)
Saves the item values into the cache.
|
abstract void |
EntityItem.save(Entity item) |
void |
XAEntityItem.savePart(Entity item)
Saves the item values into the cache.
|
void |
CacheableEntityItem.savePart(Entity item)
Saves the item values into the cache.
|
abstract void |
EntityItem.savePart(Entity item) |
void |
AmberEntityHome.update(Entity entity)
Update for a modification.
|
Constructor and Description |
---|
CacheableEntityItem(AmberEntityHome home,
Entity cacheEntity) |
XAEntityItem(AmberEntityHome home,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
void |
DependentEntityField.deleteTarget(AmberConnection aConn,
Entity entity)
Cleans up any fields from a delete.
|
Modifier and Type | Method and Description |
---|---|
Entity |
AmberConnection.addNewEntity(java.lang.Class cl,
java.lang.Object key)
Adds a new entity for the given class name and key.
|
Entity |
AmberConnection.getCacheEntity(java.lang.Class cl,
java.lang.Object pk) |
Entity |
AmberConnection.getCacheEntity(java.lang.Class cl,
java.lang.Object pk,
boolean isDebug) |
Entity |
AmberConnection.getCacheEntity(Entity entity) |
Entity |
AmberConnection.getCacheEntity(Entity entity,
boolean isDebug) |
Entity |
AmberConnection.getEntity(java.lang.Class cl,
java.lang.Object key)
Matches the entity.
|
Entity |
AmberConnection.getEntity(Entity entity)
Returns the context entity that corresponds to the
entity passed in.
|
Entity |
AmberConnection.getEntity(EntityItem item)
Returns the entity for the connection.
|
Entity |
AmberConnection.getEntity(int index) |
Entity |
AmberConnection.getEntityLazy(EntityItem item)
Returns the entity for the connection.
|
Entity |
AmberConnection.getSubEntity(java.lang.Class cl,
java.lang.Object key) |
Entity |
AmberConnection.getTransactionEntity(java.lang.Class cl,
java.lang.Object key) |
Entity |
AmberConnection.getTransactionEntity(int index) |
Entity |
AmberConnection.loadEntity(java.lang.Class cl,
java.lang.Object key,
boolean isEager)
Adds a new entity for the given class name and key.
|
Entity |
AmberConnection.loadFromHome(java.lang.String name,
java.lang.Object key)
Loads the object with the given class.
|
Entity |
AmberConnection.loadLazy(java.lang.Class cl,
java.lang.String name,
java.lang.Object key)
Loads the object with the given class.
|
Entity |
AmberConnection.loadLazy(java.lang.String className,
java.lang.String name,
java.lang.Object key)
Loads the object with the given class.
|
Entity |
AmberConnection.mergeDetachedEntity(Entity newEntity) |
Modifier and Type | Method and Description |
---|---|
void |
AmberConnection.addEntity(Entity entity) |
protected void |
AmberPersistenceUnit.callListeners(int callbackIndex,
Entity entity)
Applies persistence unit default and entity listeners
for @PreXxx, @PostXxx callbacks.
|
void |
AmberConnection.delete(Entity entity)
Deletes the object.
|
Entity |
AmberConnection.getCacheEntity(Entity entity) |
Entity |
AmberConnection.getCacheEntity(Entity entity,
boolean isDebug) |
Entity |
AmberConnection.getEntity(Entity entity)
Returns the context entity that corresponds to the
entity passed in.
|
boolean |
AmberConnection.isCacheEntity(Entity entity) |
Entity |
AmberConnection.mergeDetachedEntity(Entity newEntity) |
boolean |
AmberConnection.removeEntity(Entity entity)
Removes an entity.
|
void |
AmberConnection.setTransactionalState(Entity entity) |
void |
AmberConnection.update(Entity entity)
Updates the object.
|
Modifier and Type | Method and Description |
---|---|
void |
TableCacheUpdate.add(Entity obj)
Called when an entity is added.
|
void |
CacheUpdate.add(Entity obj)
Called when an entity is added.
|
void |
TableCacheUpdate.update(Entity object)
Called when an entity is deleted.
|
void |
CacheUpdate.update(Entity object)
Called when an entity is deleted.
|
Modifier and Type | Method and Description |
---|---|
void |
LinkColumns.afterSourceDelete(AmberConnection aConn,
Entity entity)
Cleans up any fields from a delete.
|
void |
EntityDependency.beforeEntityDelete(AmberConnection aConn,
Entity entity)
Notification before an entity is deleted.
|
void |
AmberTable.beforeEntityDelete(AmberConnection aConn,
Entity entity)
Called before the entity is deleted.
|
void |
LinkColumns.beforeTargetDelete(AmberConnection aConn,
Entity entity)
Cleans up any fields from a delete.
|
Modifier and Type | Method and Description |
---|---|
Entity |
EntityType.createBean()
Creates a new entity for this specific instance type.
|
Modifier and Type | Method and Description |
---|---|
AmberCompletion |
EntityType.createManyToOneCompletion(java.lang.String name,
Entity source,
java.lang.Object newTarget)
Returns a completion for the given field.
|
void |
EntityType.postLoad(Entity entity)
Callbacks after an entity is loaded
|
void |
EntityType.postPersist(Entity entity)
Callbacks after an entity is persisted
|
void |
EntityType.postRemove(Entity entity)
Callbacks after an entity is removeed
|
void |
EntityType.postUpdate(Entity entity)
Callbacks after an entity is updated
|
void |
EntityType.prePersist(Entity entity)
Callbacks before an entity is persisted
|
void |
EntityType.preRemove(Entity entity)
Callbacks before an entity is removeed
|
void |
EntityType.preUpdate(Entity entity)
Callbacks before an entity is updateed
|
void |
EntityType.update(Entity entity)
Deletes by the primary key.
|