|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.jbo.server.NamedObjectImpl
oracle.jbo.server.ComponentObjectImpl
oracle.jbo.server.EntityCache
public class EntityCache
The EntityCache caches queried rows of a particular EntityDef type
| Field Summary | |
|---|---|
static java.lang.Class |
CLASS_INSTANCE
|
| Fields inherited from class oracle.jbo.server.NamedObjectImpl |
|---|
mObjName, mParent, mProperties, mUserData, RES_ID_SUFFIX |
| Constructor Summary | |
|---|---|
EntityCache()
|
|
| 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 EntityImpl |
addForAltKey(int keyIndex,
EntityImpl srow)
|
protected void |
addRowByDeletedPK(Key pkey,
EntityImpl srow)
|
protected void |
clearCache()
|
protected void |
closeStatements()
|
protected PreparedStatement |
createPreparedStatement(java.lang.String sqlString,
boolean lock,
int noRowsPrefetch)
|
protected PreparedStatement |
createPrepStmtForAltKey(java.lang.String sqlString,
int keyIndex,
boolean lock,
int noRowsPrefetch)
|
protected void |
deliverEntityEvent(EntityEvent event)
|
java.util.Enumeration |
elements()
|
AttributeDef |
findAttributeDef(java.lang.String name)
Get the named AttributeDef |
protected ViewObject |
findOrCreateLocalViewObject(java.lang.String usageName)
Find or create the local view instance from the local view usage name. |
ViewAccessorDef |
findViewAccessorDef(java.lang.String name)
|
java.lang.String |
formatForOutput(OutputFormatter formatter)
|
EntityImpl |
get(Key key)
Get an EntityImpl from the cache. |
int |
getAttributeCount()
Get the # of attributes for a row of this EntityDef type |
AttributeDef |
getAttributeDef(int index)
Get the AttributeDef for the given index |
AttributeDefImpl[] |
getAttributeDefImpls()
|
AttributeDef[] |
getAttributeDefs()
Get all the AttributeDef's for this EntityCache's EntityDef |
int |
getAttributeIndexOf(java.lang.String name)
Determines the 0-based index of the named attribute |
int |
getBaseAttributeCount()
|
java.lang.String |
getColumnNameForQuery(int index)
|
protected Timestamp |
getCurrentDbTime()
Get the current database time for DATE History Column. |
DBTransactionImpl |
getDBTransactionImpl()
|
java.lang.String |
getDefFullName()
Get the fully-qualified name of the EntityDef |
java.lang.String |
getDefName()
Get the short name of the EntityDef |
EntityDefImpl |
getEntityDef()
Gets the EntityDef associated with this EntityCache |
EntityImpl |
getForAltKey(int keyIndex,
Key key)
|
java.lang.String |
getFullName()
Get the fully-qualified name of the EntityDef |
java.lang.String |
getName()
Get the short name of the EntityDef |
protected PreparedStatement |
getPreparedSelectStatement(boolean lock)
|
protected PreparedStatement |
getPrepSelStmtForAltKey(int keyIndex,
boolean lock)
|
EntityImpl |
getWithHandle(Key key)
Get an EntityImpl from the cache. |
boolean |
hasRows()
Does this EntityCache have any rows? |
protected void |
init(DBTransactionImpl trans,
EntityDefImpl entityDef)
|
boolean |
isAssociationAccessorRetained()
|
protected boolean |
isBatchable(int operation)
|
protected Iterator |
iterator()
Return an Iterator for the EntityCache. |
AttributeDef |
lookupAttributeDef(java.lang.String name)
Get the AttributeDef with the given name |
ViewAccessorDef |
lookupViewAccessorDef(java.lang.String vaName)
|
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 EntityImpl |
removeRowForAltKey(int keyIndex,
EntityImpl srow)
|
protected void |
replace(EntityImpl srow,
Key okey)
Remove a row in cache and add it in using the new key values. |
protected void |
replaceForAltKey(int keyIndex,
EntityImpl srow,
Key okey)
|
boolean |
unpin(EntityImpl srow)
|
void |
validate(EntityImpl validateEntity)
|
| Methods inherited from class oracle.jbo.server.ComponentObjectImpl |
|---|
addListener, applyPersonalization, create, createRef, ensureVariableManager, getAllProperties, getApplicationModule, getCompListeners, getCompListenersList, getMessageBundleClass, getResourceBundleDef, getRootApplicationModule, getVariableManager, hasVariables, isDead, remove, resolvePropertyRaw |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.jbo.Properties |
|---|
getProperties, getProperty, getProperty, refreshProperty |
| Field Detail |
|---|
public static final java.lang.Class CLASS_INSTANCE
| Constructor Detail |
|---|
public EntityCache()
| Method Detail |
|---|
protected void init(DBTransactionImpl trans,
EntityDefImpl entityDef)
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()
public EntityDefImpl getEntityDef()
public AttributeDef findAttributeDef(java.lang.String name)
findAttributeDef in interface StructureDefname - Name of the attribute to find
NoDefException - if named AttributeDef not foundprotected void deliverEntityEvent(EntityEvent event)
public int getAttributeCount()
getAttributeCount in interface StructureDefpublic AttributeDef getAttributeDef(int index)
getAttributeDef in interface StructureDefindex - 0-based index of interest
public AttributeDef[] getAttributeDefs()
getAttributeDefs in interface StructureDefpublic int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf in interface StructureDefname - Name of attribute
public java.lang.String getDefFullName()
getDefFullName in interface ComponentObjectgetDefFullName in interface StructureDefgetDefFullName in class ComponentObjectImplpublic java.lang.String getDefName()
getDefName in interface ComponentObjectgetDefName in interface StructureDefgetDefName in class ComponentObjectImplpublic java.lang.String getFullName()
getFullName in interface ComponentObjectgetFullName in interface StructureDefgetFullName in class NamedObjectImplpublic java.lang.String getName()
getName in interface ComponentObjectgetName in interface StructureDefgetName in interface VariableManagerOwnergetName in class NamedObjectImplpublic AttributeDef lookupAttributeDef(java.lang.String name)
lookupAttributeDef in interface StructureDefname - Name to search for
protected void clearCache()
public java.util.Enumeration elements()
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 closeStatements()
public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery in interface StructureDefpublic int getBaseAttributeCount()
public AttributeDef addDynamicAttribute(java.lang.String attrName)
public boolean isAssociationAccessorRetained()
public java.lang.String formatForOutput(OutputFormatter formatter)
formatForOutput in interface FormattableformatForOutput in class NamedObjectImpl
public EntityImpl getForAltKey(int keyIndex,
Key key)
public AttributeDefImpl[] getAttributeDefImpls()
protected PreparedStatement getPreparedSelectStatement(boolean lock)
protected PreparedStatement getPrepSelStmtForAltKey(int keyIndex,
boolean lock)
protected PreparedStatement createPreparedStatement(java.lang.String sqlString,
boolean lock,
int noRowsPrefetch)
protected PreparedStatement createPrepStmtForAltKey(java.lang.String sqlString,
int keyIndex,
boolean lock,
int noRowsPrefetch)
protected EntityImpl removeRowByOldPK(EntityImpl srow)
protected EntityImpl removeRowByDeletedPK(EntityImpl srow)
protected EntityImpl removeRow(EntityImpl srow)
srow - the row to be removed.
protected EntityImpl removeRowForAltKey(int keyIndex,
EntityImpl srow)
protected EntityImpl addForAltKey(int keyIndex,
EntityImpl srow)
protected void replaceForAltKey(int keyIndex,
EntityImpl srow,
Key okey)
protected void addRowByDeletedPK(Key pkey,
EntityImpl srow)
protected void replace(EntityImpl srow,
Key okey)
srow - the row to be replaced.okey - the original key.public DBTransactionImpl getDBTransactionImpl()
protected Iterator iterator()
public void validate(EntityImpl validateEntity)
public void pin(EntityImpl srow)
public boolean unpin(EntityImpl srow)
public ViewAccessorDef findViewAccessorDef(java.lang.String name)
public ViewAccessorDef lookupViewAccessorDef(java.lang.String vaName)
public EntityImpl getWithHandle(Key key)
key - the Primary key of the EntityImpl.
protected ViewObject findOrCreateLocalViewObject(java.lang.String usageName)
usageName - The local view usage name.
protected boolean isBatchable(int operation)
protected Timestamp getCurrentDbTime()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||