|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jbo.server.EntityCache
The EntityCache caches queried rows for a particular EntityImpl.
| Constructor Summary | |
EntityCache()Constructor. |
|
| Method Summary | |
protected EntityImpl |
add(EntityImpl srow)Add an Entity to the cache. |
AttributeDef |
addDynamicAttribute(java.lang.String attrName) |
void |
addEntityListener(EntityListener listener)Add an EntityListener. |
protected void |
addRowByDeletedPK(Key pkey, EntityImpl srow) |
protected void |
clearCache() |
protected void |
closeStatements() |
protected java.sql.PreparedStatement |
createPreparedStatement(java.lang.String sqlString, boolean lock, int noRowsPrefetch) |
protected void |
deliverEntityEvent(EntityEvent event) |
AttributeDef |
findAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
EntityImpl |
get(Key key)Get an EntityImpl from the cache. |
int |
getAttributeCount()Returns the number of defined attributes. |
AttributeDef |
getAttributeDef(int index)Gets an attribute definition, given its index. |
AttributeDef[] |
getAttributeDefs()Gets the defined attributes. |
int |
getAttributeIndexOf(java.lang.String name)Finds the index (0-based) of the named attribute. |
protected java.sql.Timestamp |
getCurrentDbTime()Get the current database time for DATE History Column. |
DBTransactionImpl |
getDBTransactionImpl() |
java.lang.String |
getDefFullName()Returns the fully qualified name of the structure's base definition. |
java.lang.String |
getDefName()Returns the structure's base definition name (short form). |
EntityDefImpl |
getEntityDef() |
java.lang.String |
getFullName()Returns the structure's fully qualified name. |
java.lang.String |
getName()Returns the structure's name (short form). |
protected java.sql.PreparedStatement |
getPreparedSelectStatement(boolean lock) |
boolean |
hasRows() |
protected void |
init(DBTransactionImpl trans, EntityDefImpl entityDef) |
boolean |
isAssociationAccessorRetained() |
protected boolean |
isBatchable(int operation) |
protected com.sun.java.util.collections.Iterator |
iterator()Return an Iterator for the EntityCache. |
AttributeDef |
lookupAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
void |
pin(EntityImpl srow) |
void |
removeEntityListener(EntityListener listener)Remove an EntityListener. |
protected EntityImpl |
removeRow(EntityImpl srow)Remove a EntityImpl from the cache. |
protected EntityImpl |
removeRowByDeletedPK(EntityImpl srow) |
protected EntityImpl |
removeRowByOldPK(EntityImpl srow) |
protected void |
replace(EntityImpl srow, Key okey)Remove a row in cache and add it in using the new key values. |
void |
setAssociationAccessorRetained(boolean b) |
boolean |
unpin(EntityImpl srow) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EntityCache()
| Method Detail |
public java.lang.String getName()
StructureDefgetName in interface StructureDefpublic java.lang.String getFullName()
StructureDefgetFullName in interface StructureDefpublic java.lang.String getDefName()
StructureDefgetName() returns the VO's instance name and getDefName() returns the View definition's name.getDefName in interface StructureDefpublic java.lang.String getDefFullName()
StructureDefgetFullName() returns the VO's full instance name and getDefFullName() returns the View definition's full name.getDefFullName in interface StructureDef
protected void init(DBTransactionImpl trans,
EntityDefImpl entityDef)
public DBTransactionImpl getDBTransactionImpl()
public EntityDefImpl getEntityDef()
public void pin(EntityImpl srow)
public boolean unpin(EntityImpl srow)
protected EntityImpl add(EntityImpl srow)
srow - the row to be added.public EntityImpl get(Key key)
key - the Primary key of the EntityImpl.public boolean hasRows()
protected void addRowByDeletedPK(Key pkey,
EntityImpl srow)
protected EntityImpl removeRowByDeletedPK(EntityImpl srow)
protected EntityImpl removeRowByOldPK(EntityImpl srow)
protected EntityImpl removeRow(EntityImpl srow)
srow - the row to be removed.protected void clearCache()
protected com.sun.java.util.collections.Iterator iterator()
public void addEntityListener(EntityListener listener)
listener - The object to be registered as listener.public void removeEntityListener(EntityListener listener)
listener - The object to be removed from the list of listeners.protected void deliverEntityEvent(EntityEvent event)
protected void replace(EntityImpl srow,
Key okey)
srow - the row to be replaced.okey - the original key.protected java.sql.PreparedStatement getPreparedSelectStatement(boolean lock)
protected java.sql.PreparedStatement createPreparedStatement(java.lang.String sqlString,
boolean lock,
int noRowsPrefetch)
protected boolean isBatchable(int operation)
protected void closeStatements()
protected java.sql.Timestamp getCurrentDbTime()
public boolean isAssociationAccessorRetained()
public void setAssociationAccessorRetained(boolean b)
public AttributeDef[] getAttributeDefs()
StructureDefgetAttributeDefs in interface StructureDefpublic int getAttributeCount()
StructureDefgetAttributeCount in interface StructureDefpublic AttributeDef lookupAttributeDef(java.lang.String name)
StructureDeflookupAttributeDef in interface StructureDefname - the name of an AttributeDef.public AttributeDef findAttributeDef(java.lang.String name)
StructureDeffindAttributeDef in interface StructureDefname - the name of an AttributeDef.public AttributeDef getAttributeDef(int index)
StructureDefgetAttributeDef in interface StructureDefindex - the index of an AttributeDef, where the leftmost attribute has index zero.public int getAttributeIndexOf(java.lang.String name)
StructureDefgetAttributeIndexOf in interface StructureDefname - the attribute's name.0 to getAttributeCount() - 1. If the named attribute is not found, it returns -1.public AttributeDef addDynamicAttribute(java.lang.String attrName)
|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||