public class SDOValueStore extends org.eclipse.persistence.sdo.DefaultValueStore implements RowSetListener
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SDOValueStore.RowSetList
Wrapper class for RowSet attribute (1toM property) 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static long | 
SERVICE_MONITOR_SLEEP_INTERVAL
the default sleep interval for the service monitor thread to sleep. 
 | 
static long | 
SERVICE_SESSION_INACTIVE_AGE
constant the default age (in miliseconds) for a service session to be considered
 inactive. 
 | 
| Constructor and Description | 
|---|
SDOValueStore(Row viewrow,
             commonj.sdo.DataObject dataobject)
constructor 
 | 
SDOValueStore(Row viewrow,
             commonj.sdo.DataObject dataobject,
             FindCriteria findCriteria)  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
afterCompletion(java.lang.String transactionId)  | 
void | 
deepLoad()  | 
void | 
deepLoad(boolean afterPostChanges)
method to load all children and grandchildren. 
 | 
static void | 
deepLoad(org.eclipse.persistence.sdo.SDODataObject sdoObject,
        boolean afterPostChanges)
Helper method to materizlize the whole dataobject tree. 
 | 
boolean | 
equals(java.lang.Object obj)  | 
protected void | 
finalize()
called by GC. 
 | 
java.lang.Object | 
getDeclaredProperty(int propertyIndex)
SDO ValueStore interface 
 | 
java.lang.String | 
getReturnMode()  | 
Row | 
getRowValue()
Get the row value 
 | 
ViewAttributeDefImpl | 
getViewAttributeDef(java.lang.String propertyName)  | 
boolean | 
isDeepLoaded()
method to indicate if this SDOValueStore is deeploaded or not. 
 | 
boolean | 
isDirty()
the dirty flag (meaning the row value is detached from DBTransaction and there are updated properties) 
 | 
boolean | 
isDisconnectMode()  | 
boolean | 
isInitialState()  | 
boolean | 
isReadOnlyProperty(commonj.sdo.Property property)
Check if the property is a readonly property 
 | 
boolean | 
isRowFinderAttributeNonUpdatable(commonj.sdo.Property property)
Check if the property is a readonly property due to a non-updatable rowfinder 
 attribute 
 | 
boolean | 
isServiceScope()  | 
boolean | 
isSetDeclaredProperty(int propertyIndex)
SDO ValueStore interface isSet() method implementation 
 | 
boolean | 
isToExpandAllChildren()  | 
boolean | 
isToNavigateManyChild()  | 
void | 
leaveService()
called during afterCompletion() to clean up service scope related flags. 
 | 
void | 
navigated(NavigationEvent event)
Invoked when the current-row designation changes. 
 | 
void | 
postProcess(commonj.sdo.Property property,
           java.lang.Object propertyValue,
           commonj.sdo.DataObject dataObject)  | 
boolean | 
propertyValueComeFromViewRowImpl(commonj.sdo.Property property)
Check whether a property value is different from the attribute value from the ViewRowImpl
 or not. 
 | 
void | 
rangeRefreshed(RangeRefreshEvent event)
Invoked when the range changes. 
 | 
void | 
rangeScrolled(ScrollEvent event)
Invoked when the range is scrolled. 
 | 
static void | 
recordSDOValueStore(java.lang.String sessionId,
                   SDOValueStore store)
add the SDOValueStore into sSDOValueStoreMap. 
 | 
static void | 
recycleSession()
recycle all inactive service sessions. 
 | 
static void | 
refershAfterPostChanges(java.lang.String transactionId)
deepload after postchanges() 
 | 
protected void | 
refreshDataProperties()  | 
protected static void | 
refreshDataProperties(org.eclipse.persistence.sdo.SDODataObject dataobject)
retrieve scalar attribute values from viewrow and convert them to sdo property values 
 | 
void | 
refreshRefreshableAttributes()
refresh the refreshable attributes from the view row. 
 | 
static void | 
registerADFConfig(oracle.adf.share.ADFConfig adfConfig)
static weak referenced map to figure out all running applications within the
 same VM. 
 | 
void | 
reJoinService(ServiceCookieHandler newCookieHandler,
             ApplicationModule appModule)
Helper method to set SDOValueStore's appModel and cookieHandler matching 
 current service's. 
 | 
static void | 
releaseSDOValueStore(commonj.sdo.DataObject source)  | 
static void | 
releaseSDOValueStore(java.lang.String sessionId,
                    SDOValueStore store)  | 
static void | 
requestRefreshAttribute(java.lang.String sessionId,
                       SDOValueStore store)
Add the source sdovaluestore to the request list that needs to refresh refreshable attributes at the end of transaction. 
 | 
void | 
rowDeleted(DeleteEvent event)
Invoked when a row has been deleted. 
 | 
void | 
rowInserted(InsertEvent event)
Invoked when a row has been inserted. 
 | 
void | 
rowUpdated(UpdateEvent event)
Invoked when an attribute of the row has been changed. 
 | 
void | 
setDataTypeProperties(java.util.List<java.lang.String> propertyNameList,
                     java.util.List propertyValues)
Set attribute values by calling viewrow.setAttributeValues() 
 | 
void | 
setDeclaredProperty(int propertyIndex,
                   java.lang.Object value)
SDO ValueStore public interface setDeclaredProperty() method implemenation 
 | 
void | 
setDeclaredProperty(commonj.sdo.Property property,
                   java.lang.Object value,
                   boolean ignoreValueStore)  | 
void | 
setDisconnectMode(boolean newdisconnectMode)  | 
void | 
setFindCriteria(FindCriteria findCriteria)  | 
void | 
setInitialState(boolean newinitialState)  | 
void | 
setQueryParamValues(java.lang.Object[] paramValues)  | 
void | 
setReturnMode(java.lang.String returnMode)  | 
void | 
setServiceScope(boolean newserviceScope)
setter method for service scope flag. 
 | 
void | 
setToExpandAllChildren(boolean expand)  | 
void | 
setToNavigateManyChild(boolean toNavigateManyChild)  | 
void | 
setTypePropertyValues(java.lang.Object[] typePropertyValues)
ValueStore public interface implementation 
 | 
protected static boolean | 
unremovableSessionCookie(java.lang.String sessionId)
record how many applications that this SessionCookie already is not a valid SessionCookie. 
 | 
void | 
unsetDeclaredProperty(int propertyIndex)
ValueStore public interface implementation 
 | 
copy, getOpenContentProperty, getOpenContentValues, getTypePropertiesIsSetStatus, getTypePropertyValues, initialize, isSetOpenContentProperty, setManyProperty, setOpenContentProperty, setOpenContentValues, setTypePropertiesIsSetStatus, unsetOpenContentPropertypublic static final long SERVICE_SESSION_INACTIVE_AGE
public static final long SERVICE_MONITOR_SLEEP_INTERVAL
public SDOValueStore(Row viewrow, commonj.sdo.DataObject dataobject)
viewrow - Row instance that SDOValueStore bases ondataobject - SDODataObjectpublic SDOValueStore(Row viewrow, commonj.sdo.DataObject dataobject, FindCriteria findCriteria)
public void deepLoad()
public void deepLoad(boolean afterPostChanges)
afterPostChanges - indicates whether deeploading occurs after postChangespublic static void deepLoad(org.eclipse.persistence.sdo.SDODataObject sdoObject,
                            boolean afterPostChanges)
sdoObject - materialized dataobject.afterPostChanges - indicates whether deeploading occurs after postChangespublic boolean isDeepLoaded()
public void setQueryParamValues(java.lang.Object[] paramValues)
protected static void refreshDataProperties(org.eclipse.persistence.sdo.SDODataObject dataobject)
dataobject - an sdo DataObjectprotected void refreshDataProperties()
public void refreshRefreshableAttributes()
public static void recordSDOValueStore(java.lang.String sessionId,
                                       SDOValueStore store)
sessionId - JTA transaction id, it is also the service session idstore - the SDOValueStorepublic static void releaseSDOValueStore(java.lang.String sessionId,
                                        SDOValueStore store)
public static void releaseSDOValueStore(commonj.sdo.DataObject source)
public static void requestRefreshAttribute(java.lang.String sessionId,
                                           SDOValueStore store)
sessionId - transaction idstore - sdo valuestorepublic void leaveService()
public static void registerADFConfig(oracle.adf.share.ADFConfig adfConfig)
adfConfig - ADFConfig for a running applicationprotected static boolean unremovableSessionCookie(java.lang.String sessionId)
sessionId - session idtrue if this sessionCookie will be removed from inactive session listpublic static void recycleSession()
public static void refershAfterPostChanges(java.lang.String transactionId)
transactionId - transaction id@Concealed public static boolean afterCompletion(java.lang.String transactionId)
transactionId - transaction idpublic void setFindCriteria(FindCriteria findCriteria)
public Row getRowValue()
public ViewAttributeDefImpl getViewAttributeDef(java.lang.String propertyName)
public boolean isDirty()
public java.lang.Object getDeclaredProperty(int propertyIndex)
getDeclaredProperty in interface org.eclipse.persistence.sdo.ValueStoregetDeclaredProperty in class org.eclipse.persistence.sdo.DefaultValueStorepropertyIndex - index for a declared propertypublic void setDeclaredProperty(int propertyIndex,
                                java.lang.Object value)
setDeclaredProperty in interface org.eclipse.persistence.sdo.ValueStoresetDeclaredProperty in class org.eclipse.persistence.sdo.DefaultValueStorepropertyIndex - index for a declared propertyvalue - value to be set for given propertypublic void setDeclaredProperty(commonj.sdo.Property property,
                                java.lang.Object value,
                                boolean ignoreValueStore)
public boolean isSetDeclaredProperty(int propertyIndex)
isSetDeclaredProperty in interface org.eclipse.persistence.sdo.ValueStoreisSetDeclaredProperty in class org.eclipse.persistence.sdo.DefaultValueStorepropertyIndex - index for a declared propertytrue if value for given property is setpublic void unsetDeclaredProperty(int propertyIndex)
unsetDeclaredProperty in interface org.eclipse.persistence.sdo.ValueStoreunsetDeclaredProperty in class org.eclipse.persistence.sdo.DefaultValueStorepropertyIndex - index for a declared propertypublic void setTypePropertyValues(java.lang.Object[] typePropertyValues)
setTypePropertyValues in class org.eclipse.persistence.sdo.DefaultValueStoretypePropertyValues - values for declared propertiesprotected void finalize()
                 throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void reJoinService(ServiceCookieHandler newCookieHandler, ApplicationModule appModule)
newCookieHandler - current service cookie handlerappModule - the current new application modulepublic boolean isReadOnlyProperty(commonj.sdo.Property property)
property - an sdo Propertytrue if it is a readonly property. Otherwise, falsepublic boolean isRowFinderAttributeNonUpdatable(commonj.sdo.Property property)
property - an sdo Propertytrue if it is a non-updatable row-finder property. Otherwise, falsepublic boolean propertyValueComeFromViewRowImpl(commonj.sdo.Property property)
property - an sdo Propertytrue if the property value is the same as the attribute value of the ViewRowImpl. 
 Otherwise, falsepublic void setDataTypeProperties(java.util.List<java.lang.String> propertyNameList,
                                  java.util.List propertyValues)
propertyNameList - List of String types that contains the names of target propertiespropertyValues - the values of the properties to set to.public void setInitialState(boolean newinitialState)
public boolean isInitialState()
public void setDisconnectMode(boolean newdisconnectMode)
public boolean isDisconnectMode()
public void setServiceScope(boolean newserviceScope)
newserviceScope - the new value of service scope flag: true/falsepublic boolean isServiceScope()
public boolean equals(java.lang.Object obj)
equals in class org.eclipse.persistence.sdo.DefaultValueStorepublic void rangeRefreshed(RangeRefreshEvent event)
RowSetListenerrangeRefreshed in interface RowSetListenerevent - a description of the new ranges.public void rangeScrolled(ScrollEvent event)
RowSetListenerrangeScrolled in interface RowSetListenerevent - a description of the new range.public void rowInserted(InsertEvent event)
RowSetListenerrowInserted in interface RowSetListenerevent - a description of the new Row object.public void rowDeleted(DeleteEvent event)
RowSetListenerrowDeleted in interface RowSetListenerevent - a description of the deleted Row object.public void rowUpdated(UpdateEvent event)
RowSetListenerrowUpdated in interface RowSetListenerevent - a description of the modified Row object.public void postProcess(commonj.sdo.Property property,
                        java.lang.Object propertyValue,
                        commonj.sdo.DataObject dataObject)
public void navigated(NavigationEvent event)
RowSetListenernavigated in interface RowNavigationListenernavigated in interface RowSetListenerevent - a description of the new and previous current rows.public void setToExpandAllChildren(boolean expand)
public boolean isToExpandAllChildren()
public void setToNavigateManyChild(boolean toNavigateManyChild)
public boolean isToNavigateManyChild()
public void setReturnMode(java.lang.String returnMode)
public java.lang.String getReturnMode()