|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
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 |
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 EntityImpl |
addForAltKey(int keyIndex,
EntityImpl srow)
|
protected void |
addRowByDeletedPK(Key pkey,
EntityImpl srow)
|
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. |
int |
getBaseAttributeCount()
|
java.lang.String |
getColumnNameForQuery(int index)
|
static java.util.Comparator |
getComparator()
|
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. |
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()
|
EntityImpl |
getForAltKey(int keyIndex,
Key key)
|
java.lang.String |
getFullName()
Gets this object's fully-qualified name. |
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 |
getValidators()
|
EntityImpl |
getWithHandle(Key key)
Get an EntityImpl from the cache. |
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. |
JboValidatorInterface |
lookupValidator(java.lang.String name,
boolean localOnly)
|
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)
|
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 oracle.jbo.common.NamedObjectImpl |
---|
allocatePropertyMap, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyMap, getResourcesFromBundle, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyMap |
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()
NamedObjectImpl
getName
in interface ComponentObject
getName
in interface ValidationManager
getName
in interface StructureDef
getName
in interface VariableManagerOwner
getName
in class NamedObjectImpl
public java.lang.String getFullName()
NamedObjectImpl
getFullName
in interface ComponentObject
getFullName
in interface ValidationManager
getFullName
in interface StructureDef
getFullName
in class NamedObjectImpl
public java.lang.String getDefName()
ComponentObjectImpl
getDefName
in interface ComponentObject
getDefName
in interface StructureDef
getDefName
in class ComponentObjectImpl
public java.lang.String getDefFullName()
ComponentObjectImpl
getDefFullName
in interface ComponentObject
getDefFullName
in interface StructureDef
getDefFullName
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()
StructureDef
getAttributeDefs
in interface StructureDef
public AttributeDefImpl[] getAttributeDefImpls()
public int getBaseAttributeCount()
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 java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery
in interface StructureDef
public ViewAccessorDef lookupViewAccessorDef(java.lang.String vaName)
public ViewAccessorDef findViewAccessorDef(java.lang.String name)
public AttributeDef addDynamicAttribute(java.lang.String attrName)
public JboValidatorInterface lookupValidator(java.lang.String name, boolean localOnly)
public java.util.ArrayList getValidators()
getValidators
in interface ValidationManager
public void addValidator(JboValidatorInterface aValidator)
addValidator
in interface ValidationManager
public boolean removeValidator(JboValidatorInterface aValidator)
public void validate(EntityImpl validateEntity)
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) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |