Modifier and Type | Method and Description |
---|---|
AmberConnection |
EnvAmberManager.createAmberConnection(boolean isExtended)
Returns the cache connection.
|
Modifier and Type | Method and Description |
---|---|
void |
AmberQuery.init(AmberConnection aConn)
Initialize with the connection.
|
Modifier and Type | Method and Description |
---|---|
Entity |
EntityResultConfig.load(AmberConnection aConn,
java.sql.ResultSet rs) |
Modifier and Type | Method and Description |
---|---|
AmberConnection |
SetImpl.getSession()
Returns the session.
|
AmberConnection |
MapImpl.getSession()
Returns the session.
|
AmberConnection |
CollectionImpl.getSession()
Returns the session.
|
Modifier and Type | Method and Description |
---|---|
void |
SetImpl.setSession(AmberConnection aConn)
Sets the session.
|
void |
MapImpl.setSession(AmberConnection aConn)
Sets the session.
|
void |
CollectionImpl.setSession(AmberConnection aConn)
Sets the session.
|
Constructor and Description |
---|
CollectionImpl(AmberConnection aConn,
java.lang.String query) |
MapImpl(AmberConnection aConn,
java.lang.String query,
java.lang.reflect.Method methodGetMapKey) |
SetImpl(AmberConnection aConn,
java.lang.String query) |
Modifier and Type | Method and Description |
---|---|
AmberConnection |
Entity.__caucho_getConnection()
Returns the connection.
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.__caucho_cascadePostPersist(AmberConnection aConn)
Post-cascades the persist operation to child entities.
|
void |
Entity.__caucho_cascadePostRemove(AmberConnection aConn)
Post-cascades the remove operation to child entities.
|
void |
Entity.__caucho_cascadePrePersist(AmberConnection aConn)
Pre-cascades the persist operation to child entities.
|
void |
Entity.__caucho_cascadePreRemove(AmberConnection aConn)
Pre-cascades the remove operation to child entities.
|
boolean |
Entity.__caucho_create(AmberConnection aConn,
EntityType entityType)
Creates the entity in the database, making it persistent-new.
|
Entity |
Entity.__caucho_home_find(AmberConnection aConn,
AmberEntityHome home,
java.lang.Object key)
Returns a new entity.
|
EntityItem |
Entity.__caucho_home_find(AmberConnection aConn,
AmberEntityHome home,
java.sql.ResultSet rs,
int index)
Loads the entity from the database.
|
Entity |
Entity.__caucho_home_new(AmberEntityHome home,
java.lang.Object key,
AmberConnection aConn,
EntityItem cacheItem)
Returns a new entity.
|
boolean |
Entity.__caucho_lazy_create(AmberConnection aConn,
EntityType entityType)
Changes the entity state to P_PERSISTING, but does not flush to database.
|
java.lang.Object |
Entity.__caucho_load_key(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Loads the entity key.
|
int |
Entity.__caucho_load(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Loads the entity from the database and
returns the number of columns consumed
from the result set.
|
int |
Embeddable.__caucho_load(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Loads the embeddable object from the
database and returns the number of columns
consumed from the result set.
|
void |
Entity.__caucho_makePersistent(AmberConnection aConn,
EntityItem item)
Makes the entity persistent.
|
boolean |
Entity.__caucho_makePersistent(AmberConnection aConn,
EntityType entityType)
Makes the entity persistent.
|
void |
Entity.__caucho_mergeFrom(AmberConnection aConn,
Entity targetEntity)
Merges this entity state into an existing entity.
|
void |
Entity.__caucho_retrieve_eager(AmberConnection aConn)
Retrieves data from the data store, including the eager loads.
|
void |
Entity.__caucho_retrieve_self(AmberConnection aConn)
Retrieves data from the data store, only loading own fields.
|
void |
Entity.__caucho_setConnection(AmberConnection aConn)
Sets the connection.
|
void |
EntityListener.beforeEntityDelete(AmberConnection aConn,
Entity entity)
Notification before an entity is deleted.
|
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) |
void |
AmberEntityHome.delete(AmberConnection aConn,
long primaryKey)
Deletes by the primary key.
|
void |
AmberEntityHome.delete(AmberConnection aConn,
java.lang.Object key)
Deletes by the primary key.
|
void |
EntityFactory.delete(AmberConnection aConn,
java.lang.Object proxy)
Deletes the proxy.
|
EntityItem |
AmberEntityHome.findDiscriminatorEntityItem(AmberConnection aConn,
java.lang.Object key,
java.lang.String discriminator)
Loads an entity where the type is determined by a discriminator
|
EntityItem |
AmberEntityHome.findEntityItem(AmberConnection aConn,
java.lang.Object key) |
EntityItem |
AmberEntityHome.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Finds by the primary key.
|
java.lang.Object |
EntityFactory.getEntity(AmberConnection aConn,
EntityItem item)
Gets the appropriate entity given the EntityItem.
|
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) |
java.lang.Object |
AmberEntityHome.loadFull(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Finds by the primary key.
|
java.lang.Object |
AmberEntityHome.loadLazy(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Finds by the primary 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.
|
Modifier and Type | Method and Description |
---|---|
EntityItem |
AmberExpr.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
EntityItem |
LoadEntityExpr.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
EntityItem |
AbstractAmberExpr.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
EntityItem |
LoadEntityExpr.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index,
java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
Returns the object for the expr.
|
java.lang.Object |
AmberExpr.getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the cache object for the expr.
|
java.lang.Object |
LoadEntityExpr.getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
AbstractAmberExpr.getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
LoadEmbeddedExpr.getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
LoadEntityExpr.getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index,
java.util.Map<AmberExpr,java.lang.String> joinFetchMap)
Returns the object for the expr.
|
java.lang.Object |
AmberExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
LoadEntityExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
AbstractAmberExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
LoadEmbeddedExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
LocateFunExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
java.lang.Object |
FunExpr.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractField.childDelete(AmberConnection aConn,
java.io.Serializable primaryKey)
Deletes the children
|
void |
AmberField.childDelete(AmberConnection aConn,
java.io.Serializable primaryKey)
Deletes the children
|
void |
EmbeddedSubField.childDelete(AmberConnection aConn,
java.io.Serializable primaryKey)
Deletes the children
|
void |
DependentEntityField.deleteTarget(AmberConnection aConn,
Entity entity)
Cleans up any fields from a delete.
|
Modifier and Type | Method and Description |
---|---|
long |
IdGenerator.allocate(AmberConnection aConn)
Allocates the next id.
|
long |
SequenceIdGenerator.allocateGroup(AmberConnection aConn)
Allocates the next group of ids.
|
long |
AmberTableGenerator.allocateGroup(AmberConnection aConn)
Allocates the next group of ids.
|
abstract long |
IdGenerator.allocateGroup(AmberConnection aConn)
Allocates the next group of ids.
|
Modifier and Type | Class and Description |
---|---|
class |
AmberEntityManager
The entity manager from a entity manager proxy.
|
class |
CacheConnection
The entity manager from a entity manager proxy.
|
Modifier and Type | Method and Description |
---|---|
AmberConnection |
AmberPersistenceUnit.createAmberConnection(boolean isExtended)
Returns the cache connection.
|
AmberConnection |
AmberPersistenceUnit.getThreadConnection(boolean isExtended)
Returns the thread's amber connection.
|
Modifier and Type | Method and Description |
---|---|
AmberConnection |
UserQuery.getConnection() |
AmberConnection |
UserQuery.getSession() |
Modifier and Type | Method and Description |
---|---|
void |
UpdateQuery.complete(UserQuery userQuery,
AmberConnection aConn)
Adds any completion info.
|
void |
AmberDeleteQuery.complete(UserQuery userQuery,
AmberConnection aConn)
Adds any completion info.
|
void |
AbstractQuery.complete(UserQuery userQuery,
AmberConnection aConn)
Any post-sql completion
|
void |
UserQuery.init(AmberConnection aConn) |
void |
CachedQuery.list(java.util.List<java.lang.Object> list,
AmberConnection aConn,
long maxAge)
Executes the query, filling the list.
|
void |
UpdateQuery.prepare(UserQuery userQuery,
AmberConnection aConn)
Adds any completion info.
|
void |
AmberDeleteQuery.prepare(UserQuery userQuery,
AmberConnection aConn)
Adds any completion info.
|
void |
AbstractQuery.prepare(UserQuery userQuery,
AmberConnection aConn)
Prepares before any update.
|
void |
ResultSetImpl.setSession(AmberConnection aConn)
Sets the session.
|
void |
UserQuery.setSession(AmberConnection aConn) |
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 |
---|---|
void |
EntityType.delete(AmberConnection aConn,
java.lang.Object key)
Deletes by the primary key.
|
EntityItem |
EntityType.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Finds the object
|
EntityItem |
AmberType.findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Finds the object
|
java.lang.Object |
EntityType.getLoadObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Gets the value.
|
java.lang.Object |
EntityType.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Gets the value.
|
java.lang.Object |
AmberType.getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Gets the value.
|
long |
EntityType.nextGeneratorId(AmberConnection aConn,
java.lang.String name)
Gets the named generator.
|