|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jbo.common.NamedObjectImpl
oracle.jbo.server.NamedObjectImpl
oracle.jbo.server.ComponentObjectImpl
oracle.jbo.server.EntityCache
public class EntityCache
The EntityCache caches queried rows for a particular EntityImpl.
| Field Summary |
|---|
| Fields inherited from class oracle.jbo.common.NamedObjectImpl |
|---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX |
| Fields inherited from interface oracle.jbo.GenericHints |
|---|
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP |
| 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. |
void |
addEventAttr(java.lang.String attrName) |
protected EntityImpl |
addForAltKey(int keyIndex, EntityImpl srow) |
void |
addForwardDependency(java.lang.String attrName, java.lang.String depName) |
protected void |
addRowByDeletedPK(Key pkey, EntityImpl srow) |
void |
addTrigger(TriggerType trig, JboValidatorInterface aValidator) |
void |
addValidator(JboValidatorInterface aValidator) |
protected void |
clearCache() |
protected void |
closeStatements() |
protected java.sql.PreparedStatement |
createEffDtDateDayAddStatement()Create a PreparedStatement that could be cached and reused to compute the sum/difference between a date and specified number of days. |
protected java.sql.PreparedStatement |
createPreparedStatement(java.lang.String sqlString, boolean lock, int noRowsPrefetch) |
protected java.sql.PreparedStatement |
createPrepStmtForAltKey(java.lang.String sqlString, int keyIndex, boolean lock, int noRowsPrefetch) |
protected void |
deliverEntityEvent(EntityEvent event) |
AttributeDef |
findAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
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) |
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. |
AttributeDefImpl[] |
getAttributeDefImpls() |
AttributeDef[] |
getAttributeDefs()Gets the defined attributes. |
int |
getAttributeIndexOf(java.lang.String name)Finds the index (0-based) of the named attribute. |
java.util.HashSet<java.lang.String> |
getBackwardDependencies(java.lang.String attrName) |
java.util.List |
getBackwardDependencyAttributes(java.lang.String attrName) |
int |
getBaseAttributeCount() |
java.lang.String |
getColumnNameForQuery(int index) |
static java.util.Comparator |
getComparator() |
java.util.Iterator<EventMapping> |
getCreateEvents() |
protected java.sql.Timestamp |
getCurrentDbTime()Get the current database time for DATE History Column. |
DBTransactionImpl |
getDBTransactionImpl() |
java.lang.String |
getDefFullName()Gets the Full Name of the Def Object. |
java.lang.String |
getDefName()Gets the name of the Def Object. |
java.util.Iterator<EventMapping> |
getDeleteEvents() |
protected java.sql.PreparedStatement |
getEffDtDateDayAddStatement()Returns a cached statement that returns a date that is 'x' number of days apart from the specified date. |
EntityDefImpl |
getEntityDef() |
EventDef |
getEventDef(java.lang.String name) |
java.lang.String |
getEventNamespace() |
java.lang.String |
getEventPayloadNamespace() |
EntityImpl |
getForAltKey(int keyIndex, Key key) |
java.util.HashSet<java.lang.String> |
getForwardDependencies(java.lang.String attrName) |
java.util.List |
getForwardDependencyAttributes(java.lang.String attrName) |
java.lang.String |
getFullName()Gets this object's fully-qualified name. |
java.util.List |
getLOBAttrs() |
java.lang.String |
getName()Get the name of this object. |
protected java.sql.PreparedStatement |
getPreparedSelectStatement(boolean lock) |
protected java.sql.PreparedStatement |
getPrepSelStmtForAltKey(int keyIndex, boolean lock) |
static RowSetIterator |
getRSI(DBTransaction trans, java.lang.String amUsageName, java.lang.String voName, java.lang.String rsiName) |
java.util.ArrayList |
getTriggersOfType(TriggerType type) |
java.util.Iterator<EventMapping> |
getUpdateEvents() |
java.util.ArrayList |
getValidators() |
EntityImpl |
getWithHandle(Key key)Get an EntityImpl from the cache. |
boolean |
hasLOBAttrs() |
boolean |
hasRows() |
protected void |
init(DBTransactionImpl trans, EntityDefImpl entityDef) |
boolean |
isAssociationAccessorRetained() |
protected boolean |
isBatchable(int operation) |
protected java.util.Iterator |
iterator()Return an Iterator for the EntityCache. |
java.util.Iterator |
iterator(boolean inclSubclasses) |
AttributeDef |
lookupAttributeDef(java.lang.String name)Gets an attribute definition, given its name. |
protected JboValidatorInterface |
lookupTrigger(TriggerType trig, java.lang.String name, boolean localOnly) |
JboValidatorInterface |
lookupValidator(java.lang.String name, boolean localOnly) |
ViewAccessorDef |
lookupViewAccessorDef(java.lang.String vaName) |
void |
personalizeTrigger(TriggerType trig, JboValidatorHints persValidator) |
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) |
boolean |
removeValidator(JboValidatorInterface aValidator) |
protected void |
replace(EntityImpl srow, Key okey)Remove a row in cache and add it in using the new key values. |
protected void |
replace(EntityImpl srow, Key[] okeys) |
protected void |
replaceForAltKey(int keyIndex, EntityImpl srow, Key okey) |
void |
setAssociationAccessorRetained(boolean b) |
boolean |
unpin(EntityImpl srow) |
void |
validate(EntityImpl validateEntity) |
| Methods inherited from class oracle.jbo.server.NamedObjectImpl |
|---|
setParent, setPropertiesMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.jbo.rules.ValidationManager |
|---|
getResourceBundleDef |
| Methods inherited from interface oracle.jbo.Properties |
|---|
getProperties, getProperty, getProperty, refreshProperty |
| Constructor Detail |
|---|
public EntityCache()
| Method Detail |
|---|
public java.lang.String getName()
NamedObjectImplgetName in interface ComponentObjectgetName in interface ValidationManagergetName in interface StructureDefgetName in interface VariableManagerOwnergetName in class NamedObjectImplpublic java.lang.String getFullName()
NamedObjectImplgetFullName in interface ComponentObjectgetFullName in interface ValidationManagergetFullName in interface StructureDefgetFullName in class NamedObjectImplpublic java.lang.String getDefName()
ComponentObjectImplgetDefName in interface ComponentObjectgetDefName in interface StructureDefgetDefName in class ComponentObjectImplpublic java.lang.String getDefFullName()
ComponentObjectImplgetDefFullName in interface ComponentObjectgetDefFullName in interface StructureDefgetDefFullName in class ComponentObjectImpl
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.
protected EntityImpl addForAltKey(int keyIndex,
EntityImpl srow)
public EntityImpl get(Key key)
key - the Primary key of the EntityImpl.public EntityImpl getWithHandle(Key key)
key - the Primary key of the EntityImpl.
public EntityImpl getForAltKey(int keyIndex,
Key key)
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 EntityImpl removeRowForAltKey(int keyIndex,
EntityImpl srow)
protected void clearCache()
protected java.util.Iterator iterator()
public java.util.Iterator iterator(boolean inclSubclasses)
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 void replace(EntityImpl srow,
Key[] okeys)
protected void replaceForAltKey(int keyIndex,
EntityImpl srow,
Key okey)
protected java.sql.PreparedStatement getPreparedSelectStatement(boolean lock)
protected java.sql.PreparedStatement getPrepSelStmtForAltKey(int keyIndex,
boolean lock)
protected java.sql.PreparedStatement createPreparedStatement(java.lang.String sqlString,
boolean lock,
int noRowsPrefetch)
protected java.sql.PreparedStatement createPrepStmtForAltKey(java.lang.String sqlString,
int keyIndex,
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 AttributeDefImpl[] getAttributeDefImpls()
public int getBaseAttributeCount()
public int getAttributeCount()
StructureDefgetAttributeCount in interface StructureDefpublic AttributeDef lookupAttributeDef(java.lang.String name)
StructureDeflookupAttributeDef in interface AttributeDependencyManagerlookupAttributeDef 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 java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery in interface StructureDefpublic ViewAccessorDef lookupViewAccessorDef(java.lang.String vaName)
public ViewAccessorDef findViewAccessorDef(java.lang.String name)
public AttributeDef addDynamicAttribute(java.lang.String attrName)
public boolean hasLOBAttrs()
public java.util.List getLOBAttrs()
public java.util.List getBackwardDependencyAttributes(java.lang.String attrName)
getBackwardDependencyAttributes in interface AttributeDependencyManagerpublic java.util.List getForwardDependencyAttributes(java.lang.String attrName)
getForwardDependencyAttributes in interface AttributeDependencyManagerpublic java.util.HashSet<java.lang.String> getBackwardDependencies(java.lang.String attrName)
getBackwardDependencies in interface AttributeDependencyManagerpublic java.util.HashSet<java.lang.String> getForwardDependencies(java.lang.String attrName)
getForwardDependencies in interface AttributeDependencyManager
public void addForwardDependency(java.lang.String attrName,
java.lang.String depName)
addForwardDependency in interface AttributeDependencyManagerpublic java.util.ArrayList getTriggersOfType(TriggerType type)
protected JboValidatorInterface lookupTrigger(TriggerType trig,
java.lang.String name,
boolean localOnly)
public void personalizeTrigger(TriggerType trig,
JboValidatorHints persValidator)
public void addTrigger(TriggerType trig,
JboValidatorInterface aValidator)
public JboValidatorInterface lookupValidator(java.lang.String name,
boolean localOnly)
public java.util.ArrayList getValidators()
getValidators in interface ValidationManagerpublic void addValidator(JboValidatorInterface aValidator)
addValidator in interface ValidationManagerpublic boolean removeValidator(JboValidatorInterface aValidator)
public void validate(EntityImpl validateEntity)
public void addEventAttr(java.lang.String attrName)
public java.util.Iterator<EventMapping> getCreateEvents()
public java.util.Iterator<EventMapping> getUpdateEvents()
public java.util.Iterator<EventMapping> getDeleteEvents()
public EventDef getEventDef(java.lang.String name)
public java.lang.String getEventNamespace()
public java.lang.String getEventPayloadNamespace()
protected ViewObject findOrCreateLocalViewObject(java.lang.String usageName)
usageName - The local view usage name.
public static RowSetIterator getRSI(DBTransaction trans,
java.lang.String amUsageName,
java.lang.String voName,
java.lang.String rsiName)
protected java.sql.PreparedStatement getEffDtDateDayAddStatement()
PreparedStatement object.protected java.sql.PreparedStatement createEffDtDateDayAddStatement()
PreparedStatement that could be cached and reused to compute the sum/difference between a date and specified number of days.PreparedStatement object.public static java.util.Comparator getComparator()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.5.0) E10653-06 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||