| com.caucho.amber.entity.Entity
Method Summary | |
public void | __caucho_afterCommit() After a commit. | public void | __caucho_afterRollback() After a rollback. | public void | __caucho_cascadePostPersist(AmberConnection aConn) Post-cascades the persist operation to child entities. | public void | __caucho_cascadePostRemove(AmberConnection aConn) Post-cascades the remove operation to child entities. | public void | __caucho_cascadePrePersist(AmberConnection aConn) Pre-cascades the persist operation to child entities. | public void | __caucho_cascadePreRemove(AmberConnection aConn) Pre-cascades the remove operation to child entities. | public Entity | __caucho_copy(AmberConnection aConn, EntityItem cacheItem) Creates a new instance based on the current entity. | public void | __caucho_copyDirtyMaskFrom(Entity sourceEntity) Copies all the dirty mask values from a source entity. | public void | __caucho_copyLoadMaskFrom(Entity sourceEntity) Copies all the load mask values from a source entity. | public Entity | __caucho_copyTo(Entity targetEntity, AmberConnection aConn, EntityItem cacheItem) Copies this entity state to an existing entity. | public void | __caucho_copyTo(Entity targetEntity, AmberConnection aConn) Copies this entity state to an existing entity. | public void | __caucho_copyTo(Entity targetEntity, AmberConnection aConn, boolean isFullMerge) Copies this entity state to an existing entity. | public boolean | __caucho_create(AmberConnection aConn, EntityType entityType) Creates the entity in the database, making it persistent-new. | public void | __caucho_delete() Deletes the entity from the database. | public void | __caucho_detach() | public void | __caucho_dumpRelationships() Checks entity-relationship consistency and adds information to the log
about relationships from this entity. | public void | __caucho_expire() | public boolean | __caucho_flush() Flushes changes to the backing store. | public Entity | __caucho_getCacheEntity() Gets the corresponding cache entity referenced by __caucho_item. | public EntityItem | __caucho_getCacheItem() Gets the __caucho_item. | public AmberConnection | __caucho_getConnection() Returns the connection. | public EntityState | __caucho_getEntityState() Get the entity state. | public EntityType | __caucho_getEntityType() Get the entity type. | public long | __caucho_getLoadMask(int loadGroup) Returns the load mask value for a load group. | public Object | __caucho_getPrimaryKey() Get the primary key. | public EntityItem | __caucho_home_find(AmberConnection aConn, AmberEntityHome home, ResultSet rs, int index) Loads the entity from the database. | public Entity | __caucho_home_find(AmberConnection aConn, AmberEntityHome home, Object key) Returns a new entity. | public Entity | __caucho_home_new(AmberEntityHome home, Object key, AmberConnection aConn, EntityItem cacheItem) Returns a new entity. | public void | __caucho_invalidate_foreign(String table, Object key) Called when a foreign object is created/deleted. | public boolean | __caucho_isDirty() Returns true if the entity is dirty. | public boolean | __caucho_lazy_create(AmberConnection aConn, EntityType entityType) Changes the entity state to P_PERSISTING, but does not flush to database. | public int | __caucho_load(AmberConnection aConn, ResultSet rs, int index) Loads the entity from the database and
returns the number of columns consumed
from the result set. | public Object | __caucho_load_key(AmberConnection aConn, ResultSet rs, int index) Loads the entity key. | public boolean | __caucho_makePersistent(AmberConnection aConn, EntityType entityType) Makes the entity persistent. | public void | __caucho_makePersistent(AmberConnection aConn, EntityItem item) Makes the entity persistent. | public boolean | __caucho_match(String className, Object key) Returns true if the entity matches. | public void | __caucho_merge(Entity targetEntity, AmberConnection aConn, boolean isFullMerge) Merges this entity state into an existing entity. | public void | __caucho_retrieve_eager(AmberConnection aConn) Retrieves data from the data store, including the eager loads. | public void | __caucho_retrieve_self(AmberConnection aConn) Retrieves data from the data store, only loading own fields. | public void | __caucho_setCacheItem(EntityItem item) Sets the __caucho_item. | public void | __caucho_setConnection(AmberConnection aConn) Sets the connection. | public void | __caucho_setEntityState(EntityState state) Sets the entity state. | public void | __caucho_setKey(PreparedStatement pstmt, int index) Loads the entity from the database. | public void | __caucho_setLoadMask(long loadMask, int loadGroup) Sets the load mask value for a load group. | public void | __caucho_setPrimaryKey(Object key) Set the primary key. | public void | __caucho_updateCacheItem(Entity item) Updates the cache item after commit. |
P_DELETED | final public static int P_DELETED(Code) | | |
P_DELETING | final public static int P_DELETING(Code) | | |
P_NEW | final public static int P_NEW(Code) | | |
P_NON_TRANSACTIONAL | final public static int P_NON_TRANSACTIONAL(Code) | | |
P_PERSISTED | final public static int P_PERSISTED(Code) | | |
P_PERSISTING | final public static int P_PERSISTING(Code) | | |
P_TRANSACTIONAL | final public static int P_TRANSACTIONAL(Code) | | |
TRANSIENT | final public static int TRANSIENT(Code) | | |
__caucho_afterCommit | public void __caucho_afterCommit()(Code) | | After a commit.
|
__caucho_afterRollback | public void __caucho_afterRollback()(Code) | | After a rollback.
|
__caucho_cascadePostPersist | public void __caucho_cascadePostPersist(AmberConnection aConn) throws SQLException(Code) | | Post-cascades the persist operation to child entities.
|
__caucho_cascadePostRemove | public void __caucho_cascadePostRemove(AmberConnection aConn) throws SQLException(Code) | | Post-cascades the remove operation to child entities.
|
__caucho_cascadePrePersist | public void __caucho_cascadePrePersist(AmberConnection aConn) throws SQLException(Code) | | Pre-cascades the persist operation to child entities.
|
__caucho_copyDirtyMaskFrom | public void __caucho_copyDirtyMaskFrom(Entity sourceEntity)(Code) | | Copies all the dirty mask values from a source entity.
|
__caucho_copyLoadMaskFrom | public void __caucho_copyLoadMaskFrom(Entity sourceEntity)(Code) | | Copies all the load mask values from a source entity.
|
__caucho_copyTo | public void __caucho_copyTo(Entity targetEntity, AmberConnection aConn)(Code) | | Copies this entity state to an existing entity.
|
__caucho_copyTo | public void __caucho_copyTo(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)(Code) | | Copies this entity state to an existing entity.
|
__caucho_delete | public void __caucho_delete()(Code) | | Deletes the entity from the database.
|
__caucho_detach | public void __caucho_detach()(Code) | | Detatch the entity
|
__caucho_dumpRelationships | public void __caucho_dumpRelationships()(Code) | | Checks entity-relationship consistency and adds information to the log
about relationships from this entity.
|
__caucho_expire | public void __caucho_expire()(Code) | | Expires data
|
__caucho_flush | public boolean __caucho_flush() throws SQLException(Code) | | Flushes changes to the backing store.
|
__caucho_getCacheEntity | public Entity __caucho_getCacheEntity()(Code) | | Gets the corresponding cache entity referenced by __caucho_item.
|
__caucho_getCacheItem | public EntityItem __caucho_getCacheItem()(Code) | | Gets the __caucho_item.
|
__caucho_getEntityState | public EntityState __caucho_getEntityState()(Code) | | Get the entity state.
|
__caucho_getEntityType | public EntityType __caucho_getEntityType()(Code) | | Get the entity type.
|
__caucho_getLoadMask | public long __caucho_getLoadMask(int loadGroup)(Code) | | Returns the load mask value for a load group.
|
__caucho_getPrimaryKey | public Object __caucho_getPrimaryKey()(Code) | | Get the primary key.
|
__caucho_invalidate_foreign | public void __caucho_invalidate_foreign(String table, Object key)(Code) | | Called when a foreign object is created/deleted.
|
__caucho_isDirty | public boolean __caucho_isDirty()(Code) | | Returns true if the entity is dirty.
|
__caucho_load | public int __caucho_load(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code) | | Loads the entity from the database and
returns the number of columns consumed
from the result set.
|
__caucho_match | public boolean __caucho_match(String className, Object key)(Code) | | Returns true if the entity matches.
|
__caucho_merge | public void __caucho_merge(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)(Code) | | Merges this entity state into an existing entity.
|
__caucho_retrieve_eager | public void __caucho_retrieve_eager(AmberConnection aConn)(Code) | | Retrieves data from the data store, including the eager loads.
|
__caucho_retrieve_self | public void __caucho_retrieve_self(AmberConnection aConn)(Code) | | Retrieves data from the data store, only loading own fields.
|
__caucho_setCacheItem | public void __caucho_setCacheItem(EntityItem item)(Code) | | Sets the __caucho_item.
|
__caucho_setConnection | public void __caucho_setConnection(AmberConnection aConn)(Code) | | Sets the connection.
|
__caucho_setEntityState | public void __caucho_setEntityState(EntityState state)(Code) | | Sets the entity state.
|
__caucho_setLoadMask | public void __caucho_setLoadMask(long loadMask, int loadGroup)(Code) | | Sets the load mask value for a load group.
|
__caucho_setPrimaryKey | public void __caucho_setPrimaryKey(Object key)(Code) | | Set the primary key.
|
__caucho_updateCacheItem | public void __caucho_updateCacheItem(Entity item)(Code) | | Updates the cache item after commit.
|
|
|