Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.oaext.model
Class FlexfieldQueryContext

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.model.FlexfieldQueryContext
All Implemented Interfaces:
java.io.Serializable

public class FlexfieldQueryContext
extends java.lang.Object
implements java.io.Serializable

Context for a flexfield view object in a query component. To be able to get back the context previously set, the set and get operations must occur in the same ApplSession, or in the same ADF context if no session is available.

For Internal Use Only.

See Also:
Serialized Form

Method Summary
static FlexfieldQueryContext get()
          Gets the query context set in the ADF context for the current thread.
static java.lang.Object getValidationDate(boolean useCachedValue, oracle.jbo.server.ViewObjectImpl vo)
          Gets the validation date from a view object.
static java.lang.String getValueSelectionExpression(boolean useCachedValue, oracle.jbo.server.ViewObjectImpl vo, java.lang.String attrName)
          Gets the value selection expression for an attribute.
static void remove()
          Removes the query context from the ADF context for the current thread.
static void set(oracle.jbo.server.ViewObjectImpl vo)
          Sets the query context in the ADF context for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

set

public static void set(oracle.jbo.server.ViewObjectImpl vo)
Sets the query context in the ADF context for the current thread.

Parameters:
vo - the view object that is the data source of the query context
Throws:
java.lang.IllegalArgumentException - if the given caller or view object is null

get

public static FlexfieldQueryContext get()
Gets the query context set in the ADF context for the current thread.

Returns:
the current query context; null if the context is not available

remove

public static void remove()
Removes the query context from the ADF context for the current thread.


getValidationDate

public static java.lang.Object getValidationDate(boolean useCachedValue,
                                                 oracle.jbo.server.ViewObjectImpl vo)
Gets the validation date from a view object.

Parameters:
useCachedValue - true if the cached value should be returned
vo - the view object
Returns:
the validation date

getValueSelectionExpression

public static java.lang.String getValueSelectionExpression(boolean useCachedValue,
                                                           oracle.jbo.server.ViewObjectImpl vo,
                                                           java.lang.String attrName)
Gets the value selection expression for an attribute. Note that this method return " " (one space character) when no expression is available. This is to ensure that when used with ADF bind parameter, the value will be bound. ADF treats "" as null and will not bind the value.

Parameters:
useCachedValue - true if the cached value should be used
vo - the view object
attrName - the name of the segment attribute
Returns:
the value selection expression; " " (one space character) if there's no applicable expression for the given attribute

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.