|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-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)
Notify EntityListeners of a EntityImpl properties or state has changed. |
AttributeDef |
findAttributeDef(java.lang.String name)
Gets an attribute definition, given its name. |
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. |
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). |
protected 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)
|
protected void |
init(DBTransactionImpl trans,
EntityDefImpl entityDef)
|
boolean |
isAssociationAccessorRetained()
|
protected boolean |
isBatchable(int operation)
|
AttributeDef |
lookupAttributeDef(java.lang.String name)
Gets an attribute definition, given its name. |
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)
|
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()
StructureDef
getName
in interface StructureDef
public java.lang.String getFullName()
StructureDef
getFullName
in interface StructureDef
public java.lang.String getDefName()
StructureDef
getName()
returns the VO's
instance name and getDefName()
returns the
View definition's name.
getDefName
in interface StructureDef
public java.lang.String getDefFullName()
StructureDef
getFullName()
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)
protected EntityDefImpl getEntityDef()
protected EntityImpl add(EntityImpl srow)
srow
- the row to be added.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()
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()
StructureDef
getAttributeDefs
in interface StructureDef
public int getAttributeCount()
StructureDef
getAttributeCount
in interface StructureDef
public AttributeDef lookupAttributeDef(java.lang.String name)
StructureDef
lookupAttributeDef
in interface StructureDef
name
- the name of an AttributeDef
.
public AttributeDef findAttributeDef(java.lang.String name)
StructureDef
findAttributeDef
in interface StructureDef
name
- the name of an AttributeDef
.
public AttributeDef getAttributeDef(int index)
StructureDef
getAttributeDef
in interface StructureDef
index
- the index of an AttributeDef
, where the leftmost
attribute has index zero.
public int getAttributeIndexOf(java.lang.String name)
StructureDef
getAttributeIndexOf
in interface StructureDef
name
- 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 ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.