Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.3)

E10653-11


oracle.jbo.common
Class ExpressionDef

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.mom.DefinitionObject
          extended by oracle.jbo.mom.PersistableDefObject
              extended by oracle.jbo.common.ExpressionDef

All Implemented Interfaces:
java.io.Serializable, ExprDef, DiffMergeable, DefPersistable, PersistentDefinition, DebugExprDef

public class ExpressionDef
extends PersistableDefObject
implements java.io.Serializable, DiffMergeable, ExprDef, DebugExprDef
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.jbo.mom.PersistableDefObject
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType

 

Field Summary
static int RESERVED_EXPR_PREAMBLE_LINES
          For internal framework use only

 

Fields inherited from class oracle.jbo.mom.PersistableDefObject
mEditedProperties, mEditedPropertyExprs

 

Fields inherited from class oracle.jbo.mom.DefinitionObject
DEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP

 

Fields inherited from class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX

 

Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT

 

Constructor Summary
ExpressionDef(NamedObjectImpl parent, ExpressionDef def)
           
ExpressionDef(NamedObjectImpl parent, java.lang.String expr)
           
ExpressionDef(NamedObjectImpl parent, java.lang.String expr, OwnerType ownerType)
           
ExpressionDef(NamedObjectImpl parent, java.lang.String expr, java.lang.String name)
           
ExpressionDef(NamedObjectImpl parent, java.lang.String expr, java.lang.String name, java.lang.String priv)
           
ExpressionDef(NamedObjectImpl parent, java.lang.String expr, java.lang.String name, java.lang.String priv, java.lang.Boolean hasReturn)
          Deprecated. since 11.1.4.0 Applications should not be using this class.
ExpressionDef(NamedObjectImpl parent, java.lang.String expr, java.lang.String name, java.lang.String priv, java.lang.Boolean hasReturn, OwnerType ownerType)
           
ExpressionDef(java.lang.String name, java.lang.String expr)
           

 

Method Summary
 void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
           
 void applyDiffContents(DifferDetails dif, DiffResolver resolver)
           
 DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
 DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
 DifferDetails diffObjects(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
 DifferDetails ensureDifferDetails(DifferDetails difDetails)
           
 java.util.LinkedHashMap getAttributesMap()
           
 java.lang.String getCacheKey(java.lang.String exprStr)
          The key to be used for caching compiled expression instances.
 java.lang.String getDebugAttrName()
          Return the attribute name of the expression owner.
 java.lang.String getDebugComponentName()
          Return the component name of the expression owner.
 java.lang.String getDebugExpressionSource()
          Return the version of the source that should be displayed in the debugger.
 int getDebugOffset()
          Return the offset of the start of the debug source in the containing ExprDef::ExpressionSource.
 java.lang.String getDebugTriggerName()
          Return the name of the trigger or validation rule of the expression.
 java.lang.String getDefXMLElementTag()
           
 java.lang.String getDisplayName()
           
 java.lang.String getEvalId()
           
 ExprEval getEvaluator()
           
 java.lang.String getExpression()
           
 java.lang.String getExpressionSource()
          The source string of the expression.
 java.lang.String getExprIdentifier()
          A unique identfier for the expression.
 java.lang.String getFullName()
          Gets this object's fully-qualified name.
 java.util.List<java.lang.String> getImplicitVariableNames()
          Return a list of implicit variable names.
 java.lang.String getInternalExpression()
           
 java.lang.String getName()
          Get the name of this object.
 java.lang.String getOwnerName()
           
 OwnerType getOwnerType()
          Returns the type of object that owners the expression class.
 ExprEval.Privilege getPrivilege()
           
 java.lang.String getPrivilegeString()
           
 java.lang.String getScriptClassName(java.lang.String exprStr)
          Returns the name used for the expression class.
 ExprEval.TrustMode getTrustMode()
          The trust mode for the expression.
 java.lang.String getTrustModeString()
           
 ExprEval.TypeCheckedMode getTypeCheckedMode()
          Returns whether the expresion should be type checked when type checking is enabled for the groovy compiler.
 boolean hasReturn()
          If the expression has a return value.
 boolean isOperationsExpression()
          If the expression defines operations.
static java.util.HashMap loadCDataElementAndAttrsMap(DefElement rootElem, java.lang.String elemName, boolean attrs)
           
static ExpressionDef loadExpressionDef(NamedObjectImpl parent, DefElement rootElem, java.lang.String elemName)
           
static ExpressionDef loadExpressionDef(NamedObjectImpl parent, DefElement rootElem, java.lang.String elemName, OwnerType ownerType)
           
 void setHasReturn(boolean ret)
          Deprecated. since 11.1.4.0 Applications should not be using this class.
 void setOwnerType(OwnerType type)
          For internal framework use only.
 void setPrivilege(ExprEval.Privilege priv)
           
 void setTrustMode(ExprEval.TrustMode trusted)
           
 void setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode)
           
 java.lang.String toString()
           
 void useEvaluator(ExprEval eval)
           
 void writeExpressionDef(DefWriter jos, java.lang.String elemName)
           

 

Methods inherited from class oracle.jbo.mom.PersistableDefObject
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, findDefImport, finishedLoading, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getDefXMLNameSpace, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMajorVersion, getMinorVersion, getOrigObject, getPropertyMap, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, loadXMLContents, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerDefObject, registerSessionDefObject, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeChildren, writeContents, writeObject, writeVersion, writeXMLContents

 

Methods inherited from class oracle.jbo.mom.DefinitionObject
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, isBaseDefFor, isDeprecated, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setParent, setPropertySetName, suppressUpdateCheck

 

Methods inherited from class oracle.jbo.common.NamedObjectImpl
getAllProperties, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setProperty

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

RESERVED_EXPR_PREAMBLE_LINES

public static final int RESERVED_EXPR_PREAMBLE_LINES
For internal framework use only
See Also:
Constant Field Values
For internal use only. Application developers should not use this

Constructor Detail

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr,
                     java.lang.String name,
                     java.lang.String priv,
                     java.lang.Boolean hasReturn,
                     OwnerType ownerType)
For internal use only. Application developers should not use this

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr,
                     java.lang.String name,
                     java.lang.String priv,
                     java.lang.Boolean hasReturn)
Deprecated. since 11.1.4.0 Applications should not be using this class.
For internal use only. Application developers should not use this

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr,
                     java.lang.String name,
                     java.lang.String priv)
For internal use only. Application developers should not use this

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr,
                     java.lang.String name)
For internal use only. Application developers should not use this

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     ExpressionDef def)
For internal use only. Application developers should not use this

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr)
For internal use only. Application developers should not use this
Applications should not be using this class

ExpressionDef

public ExpressionDef(NamedObjectImpl parent,
                     java.lang.String expr,
                     OwnerType ownerType)
For internal use only. Application developers should not use this
Applications should not be using this class

ExpressionDef

public ExpressionDef(java.lang.String name,
                     java.lang.String expr)
For internal use only. Application developers should not use this
Applications should not be using this class

Method Detail

getExpressionSource

public java.lang.String getExpressionSource()
Description copied from interface: ExprDef
The source string of the expression.
Specified by:
getExpressionSource in interface ExprDef

getExprIdentifier

public java.lang.String getExprIdentifier()
Description copied from interface: ExprDef
A unique identfier for the expression.
Specified by:
getExprIdentifier in interface ExprDef

getCacheKey

public java.lang.String getCacheKey(java.lang.String exprStr)
Description copied from interface: ExprDef
The key to be used for caching compiled expression instances.
Specified by:
getCacheKey in interface ExprDef
Returns:
a cacheKey. If null then the compiled expression will not be cached.

getScriptClassName

public java.lang.String getScriptClassName(java.lang.String exprStr)
Description copied from interface: ExprDef
Returns the name used for the expression class.
Specified by:
getScriptClassName in interface ExprDef

isOperationsExpression

public boolean isOperationsExpression()
Description copied from interface: ExprDef
If the expression defines operations.
Specified by:
isOperationsExpression in interface ExprDef

getEvaluator

public ExprEval getEvaluator()
For internal use only. Application developers should not use this

useEvaluator

public void useEvaluator(ExprEval eval)
For internal use only. Application developers should not use this

getExpression

public java.lang.String getExpression()
For internal use only. Application developers should not use this

getInternalExpression

public java.lang.String getInternalExpression()
For internal use only. Application developers should not use this
Internal framework use only.

getEvalId

public java.lang.String getEvalId()
For internal use only. Application developers should not use this
Internal framework use only.

getName

public java.lang.String getName()
Description copied from class: NamedObjectImpl
Get the name of this object.
Specified by:
getName in interface DiffMergeable
Overrides:
getName in class NamedObjectImpl
Returns:
the name given to this object.
For internal use only. Application developers should not use this

getFullName

public java.lang.String getFullName()
Description copied from class: NamedObjectImpl
Gets this object's fully-qualified name.
Specified by:
getFullName in interface DiffMergeable
Specified by:
getFullName in interface DefPersistable
Overrides:
getFullName in class NamedObjectImpl
Returns:
this object's fully-qualified name; the package name concatenated with the class name.

hasReturn

public boolean hasReturn()
Description copied from interface: ExprDef
If the expression has a return value.
Specified by:
hasReturn in interface ExprDef
For internal use only. Application developers should not use this

setHasReturn

public void setHasReturn(boolean ret)
Deprecated. since 11.1.4.0 Applications should not be using this class.
For internal use only. Application developers should not use this

setPrivilege

public void setPrivilege(ExprEval.Privilege priv)
For internal use only. Application developers should not use this

getPrivilege

public ExprEval.Privilege getPrivilege()
For internal use only. Application developers should not use this

getPrivilegeString

public java.lang.String getPrivilegeString()
For internal use only. Application developers should not use this

setTrustMode

public void setTrustMode(ExprEval.TrustMode trusted)
For internal use only. Application developers should not use this

getTrustMode

public ExprEval.TrustMode getTrustMode()
Description copied from interface: ExprDef
The trust mode for the expression.
Specified by:
getTrustMode in interface ExprDef
For internal use only. Application developers should not use this

getTrustModeString

public java.lang.String getTrustModeString()
For internal use only. Application developers should not use this

getOwnerType

public OwnerType getOwnerType()
Description copied from interface: ExprDef
Returns the type of object that owners the expression class.
Specified by:
getOwnerType in interface ExprDef
For internal use only. Application developers should not use this

getOwnerName

public java.lang.String getOwnerName()
For internal use only. Application developers should not use this

getDisplayName

public java.lang.String getDisplayName()
For internal use only. Application developers should not use this

setOwnerType

public void setOwnerType(OwnerType type)
For internal framework use only.
For internal use only. Application developers should not use this

getAttributesMap

public java.util.LinkedHashMap getAttributesMap()
For internal use only. Application developers should not use this

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getImplicitVariableNames

public java.util.List<java.lang.String> getImplicitVariableNames()
Description copied from interface: DebugExprDef
Return a list of implicit variable names. The implicit variable names will appear in the debugger as variables of the expression's operation.
Specified by:
getImplicitVariableNames in interface DebugExprDef

getDebugComponentName

public java.lang.String getDebugComponentName()
Description copied from interface: DebugExprDef
Return the component name of the expression owner. The component name is typically a ViewObject or Entity name.
Specified by:
getDebugComponentName in interface DebugExprDef

getDebugAttrName

public java.lang.String getDebugAttrName()
Description copied from interface: DebugExprDef
Return the attribute name of the expression owner. If this is not an attribute expression return null. Operations always return null.
Specified by:
getDebugAttrName in interface DebugExprDef

getDebugTriggerName

public java.lang.String getDebugTriggerName()
Description copied from interface: DebugExprDef
Return the name of the trigger or validation rule of the expression. Operations always return null.
Specified by:
getDebugTriggerName in interface DebugExprDef

getDebugExpressionSource

public java.lang.String getDebugExpressionSource()
Description copied from interface: DebugExprDef
Return the version of the source that should be displayed in the debugger. The debugger source should only contain the expression body. The details of how operations are organized are hidden from the debugger user.
Specified by:
getDebugExpressionSource in interface DebugExprDef

getDebugOffset

public int getDebugOffset()
Description copied from interface: DebugExprDef
Return the offset of the start of the debug source in the containing ExprDef::ExpressionSource.
Specified by:
getDebugOffset in interface DebugExprDef

getTypeCheckedMode

public ExprEval.TypeCheckedMode getTypeCheckedMode()
Description copied from interface: ExprDef
Returns whether the expresion should be type checked when type checking is enabled for the groovy compiler.
Specified by:
getTypeCheckedMode in interface ExprDef
Returns:
ExprEval.TypeCheckedMode.always if the expr should always be type checked ExprEval.TypeCheckedMode.never if the expr should never be typ checked ExprEval.TypeCheckedMode.defer if type checking is dependent upon the application configuration

writeExpressionDef

public void writeExpressionDef(DefWriter jos,
                               java.lang.String elemName)

loadExpressionDef

public static ExpressionDef loadExpressionDef(NamedObjectImpl parent,
                                              DefElement rootElem,
                                              java.lang.String elemName)

loadExpressionDef

public static ExpressionDef loadExpressionDef(NamedObjectImpl parent,
                                              DefElement rootElem,
                                              java.lang.String elemName,
                                              OwnerType ownerType)

loadCDataElementAndAttrsMap

public static java.util.HashMap loadCDataElementAndAttrsMap(DefElement rootElem,
                                                            java.lang.String elemName,
                                                            boolean attrs)

getDefXMLElementTag

public java.lang.String getDefXMLElementTag()
Specified by:
getDefXMLElementTag in interface PersistentDefinition
Overrides:
getDefXMLElementTag in class PersistableDefObject

ensureDifferDetails

public DifferDetails ensureDifferDetails(DifferDetails difDetails)
Specified by:
ensureDifferDetails in interface DiffMergeable
Overrides:
ensureDifferDetails in class PersistableDefObject

diffContents

public DifferDetails diffContents(DiffMergeable docDef,
                                  DiffMergeable orgDef,
                                  DifferDetails difDetails)
Specified by:
diffContents in interface DiffMergeable
Overrides:
diffContents in class PersistableDefObject

diffChildren

public DifferDetails diffChildren(DiffMergeable docDef,
                                  DiffMergeable orgDef,
                                  DifferDetails difDetails)
Specified by:
diffChildren in interface DiffMergeable
Overrides:
diffChildren in class PersistableDefObject

diffObjects

public DifferDetails diffObjects(DiffMergeable docDef,
                                 DiffMergeable orgDef,
                                 DifferDetails difDetails)
Specified by:
diffObjects in interface DiffMergeable
Overrides:
diffObjects in class PersistableDefObject

applyDiffContents

public void applyDiffContents(DifferDetails dif,
                              DiffResolver resolver)
Specified by:
applyDiffContents in interface DiffMergeable
Overrides:
applyDiffContents in class PersistableDefObject

applyDiffChildren

public void applyDiffChildren(DifferDetails dif,
                              DiffResolver resolver)
Specified by:
applyDiffChildren in interface DiffMergeable
Overrides:
applyDiffChildren in class PersistableDefObject

setTypeCheckedMode

public void setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode)
For internal use only. Application developers should not use this

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.3)

E10653-11


Copyright © 1997, 2014, Oracle. All rights reserved.