Skip navigation links

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

E52932-01


oracle.jbo.server
Class OperationDefinitionImpl

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.server.DefObject
                  extended by oracle.jbo.server.OperationDefinitionImpl

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, ExprDef, DiffMergeable, DefPersistable, PersistentDefinition, DebugExprDef, VariableManagerOwner, VariableManagerOwnerBase

public class OperationDefinitionImpl
extends DefObject
implements java.io.Serializable, java.lang.Comparable, 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

 

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
OperationDefinitionImpl()
          For internal framework use only.
OperationDefinitionImpl(java.lang.String tag)
          For internal framework use only.
OperationDefinitionImpl(java.lang.String uniqueid, java.lang.String name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
          For internal framework use only.

 

Method Summary
 void addParameter(OperationParamImpl param)
          For internal framework use only.
 void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
           
 void applyDiffContents(DifferDetails dif, DiffResolver resolver)
           
 OperationDefinitionImpl clone()
          For internal framework use only.
 int compareTo(java.lang.Object operationDef)
           
 DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
 DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
 boolean equals(OperationDefinitionImpl opDef)
           
 ExprEval.Privilege getAccess()
          For internal framework use only.
 java.lang.String getAccessStr()
          For internal framework use only.
 java.lang.String getCacheKey(java.lang.String exprStr)
          The key to be used for caching compiled expression instances.
 java.lang.String getCategory()
          For internal framework use only.
 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.
 int getDefTypeId()
           
 java.lang.String getDefXMLElementTag()
          For internal framework use only.
 java.lang.String getDefXMLNameSpace()
          For internal framework use only.
 java.lang.String getExample()
          For internal framework use only.
 java.lang.String getExpressionSource()
          The source string of the expression.
 java.lang.String getExprIdentifier()
          A unique identfier for the expression.
 java.lang.String getFullName()
          For internal framework use only.
 java.lang.String getHelpText()
          For internal framework use only.
 java.lang.String getId()
          For internal framework use only.
 java.util.List<java.lang.String> getImplicitVariableNames()
          Return a list of implicit variable names.
 java.lang.String getInsertText()
          For internal framework use only.
 java.lang.Class getJavaReturnType()
          For internal framework use only.
 java.lang.Class getMessageBundleClass()
           
 java.lang.String getMethodBody()
          For internal framework use only.
 java.lang.String getMethodName()
          For internal framework use only.
 java.lang.String getMethodText()
          For internal framework use only
protected  java.lang.String getMethodText(int offset, boolean global)
          For internal framework use only.
 java.lang.String getMethodType()
          For internal framework use only.
 OwnerType getOwnerType()
          Returns the type of object that owners the expression class.
 java.lang.String[] getParameterNames()
          For internal framework use only.
 java.util.HashMap<java.lang.String,java.lang.String> getParameters()
          For internal framework use only.
 java.lang.Class[] getParameterTypes()
          For internal framework use only.
 ResourceBundleDef getResourceBundleDef()
           
 java.lang.String getReturnType()
          For internal framework use only.
 java.lang.String getScriptClassName(java.lang.String exprStr)
          Returns the name used for the expression class.
 java.lang.String getSignature()
          For internal framework use only.
 ExprEval.TrustMode getTrustMode()
          For internal framework use only.
 java.lang.String getTrustModeStr()
          For internal framework use only.
 ExprEval.TypeCheckedMode getTypeCheckedMode()
          Returns whether the expresion should be type checked when type checking is enabled for the groovy compiler.
 java.lang.String getXMLElementTag()
          For internal framework use only.
 boolean hasReturn()
          If the expression has a return value.
 boolean isGroovy()
          For internal framework use only.
 boolean isOperationsExpression()
          If the expression defines operations.
 void loadXMLContents(DefElement xmlElement, java.lang.String fullName)
          For internal framework use only.
 OperationParamImpl lookupParameter(java.lang.String name)
          For internal framework use only.
static void popPriv(java.lang.Object context, ExprPrivCounter counter)
          For internal framework use only.
static void pushPriv(java.lang.Object context, ExprPrivCounter counter)
          For internal framework use only.
 void removeParameter(java.lang.String paramId)
          For internal framework use only.
 void setAccess(ExprEval.Privilege priv)
          For internal framework use only.
 void setAccess(java.lang.String priv)
          For internal framework use only.
 void setAccessStr(java.lang.String priv)
           
 void setCategory(java.lang.String category)
          For internal framework use only.
protected  void setDefForComponent(ComponentObjectImpl comp)
          For internal framework use only.
 void setDefScope(int defScope)
          For internal framework use only.
 void setExample(java.lang.String example)
          For internal framework use only.
 void setHelpText(java.lang.String helpText)
          For internal framework use only.
 void setId(java.lang.String id)
          For internal framework use only.
 void setInsertText(java.lang.String insertText)
          For internal framework use only.
 void setMethodBody(java.lang.String methodBody)
          For internal framework use only.
 void setMethodName(java.lang.String methodName)
          For internal framework use only.
 void setMethodType(java.lang.String typ)
          For internal framework use only.
 void setParameters(java.util.LinkedHashMap<java.lang.String,OperationParamImpl> parameters)
          For internal framework use only.
 void setReturnType(java.lang.String typStr)
          For internal framework use only.
 void setTrustMode(ExprEval.TrustMode trusted)
          For internal framework use only.
 void setTrustModeStr(java.lang.String s)
           
 void setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode)
           
protected  void unsetDefForComponent(ComponentObjectImpl comp)
          For internal framework use only.
 void writeChildren(DefWriter jos)
          For internal framework use only.
 void writeContents(DefWriter jos)
          For internal framework use only.

 

Methods inherited from class oracle.jbo.server.DefObject
ensureVariableManager, finishedLoading, getAdfmConfigStartupProperty, getAllProperties, getBaseDefObject, getBooleanAdfmConfigProperty, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, loadProperties, loadVariables, resolvePropertyRaw, resolveReferences, setBaseDefObject, setBaseDefObject, setName, setParent

 

Methods inherited from class oracle.jbo.mom.PersistableDefObject
addDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffObjects, ensureDifferDetails, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMajorVersion, getMinorVersion, getOrigObject, getPropertyMap, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, lockDefinitionContext, 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, unlockDefinitionContext, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeObject, writeVersion, writeXMLContents

 

Methods inherited from class oracle.jbo.mom.DefinitionObject
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, suppressUpdateCheck

 

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

 

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

 

Methods inherited from interface oracle.jbo.VariableManagerOwner
getName

 

Methods inherited from interface oracle.jbo.mom.DiffMergeable
getName

 

Constructor Detail

OperationDefinitionImpl

public OperationDefinitionImpl()
For internal framework use only.
For internal use only. Application developers should not use this

OperationDefinitionImpl

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

OperationDefinitionImpl

public OperationDefinitionImpl(java.lang.String uniqueid,
                               java.lang.String name,
                               java.lang.String returnType,
                               java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
                               java.lang.String body)
For internal framework use only.
For internal use only. Application developers should not use this

Method Detail

setDefScope

public void setDefScope(int defScope)
For internal framework use only.
Overrides:
setDefScope in class DefinitionObject
For internal use only. Application developers should not use this

getDefXMLElementTag

public java.lang.String getDefXMLElementTag()
For internal framework use only.
Specified by:
getDefXMLElementTag in interface PersistentDefinition
Overrides:
getDefXMLElementTag in class PersistableDefObject
For internal use only. Application developers should not use this

getXMLElementTag

public java.lang.String getXMLElementTag()
For internal framework use only.
Specified by:
getXMLElementTag in interface PersistentDefinition
Overrides:
getXMLElementTag in class PersistableDefObject
Returns:
returns the Statement required to store in Persitent Storage. Incase of XML, it just returns the String. In the case of SQL a JDBC PreparedStatement is returned.
For internal use only. Application developers should not use this

getId

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

setId

public void setId(java.lang.String id)
For internal framework use only.
For internal use only. Application developers should not use this

getFullName

public java.lang.String getFullName()
For internal framework use only.
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.
For internal use only. Application developers should not use this

getDefXMLNameSpace

public java.lang.String getDefXMLNameSpace()
For internal framework use only.
Specified by:
getDefXMLNameSpace in interface PersistentDefinition
Overrides:
getDefXMLNameSpace in class DefObject
For internal use only. Application developers should not use this

getDefTypeId

public int getDefTypeId()
Specified by:
getDefTypeId in class DefObject

setDefForComponent

protected void setDefForComponent(ComponentObjectImpl comp)
For internal framework use only.
Specified by:
setDefForComponent in class DefObject

unsetDefForComponent

protected void unsetDefForComponent(ComponentObjectImpl comp)
For internal framework use only.
Specified by:
unsetDefForComponent in class DefObject

getResourceBundleDef

public ResourceBundleDef getResourceBundleDef()
Specified by:
getResourceBundleDef in interface VariableManagerOwnerBase

getMessageBundleClass

public java.lang.Class getMessageBundleClass()
Specified by:
getMessageBundleClass in interface VariableManagerOwnerBase

writeContents

public void writeContents(DefWriter jos)
For internal framework use only.
Specified by:
writeContents in interface PersistentDefinition
Overrides:
writeContents in class PersistableDefObject
Parameters:
jos - the Output storage for persistence
For internal use only. Application developers should not use this

writeChildren

public void writeChildren(DefWriter jos)
For internal framework use only.
Specified by:
writeChildren in interface PersistentDefinition
Overrides:
writeChildren in class DefObject
Parameters:
jos - the Output storage for persistence
For internal use only. Application developers should not use this

clone

public OperationDefinitionImpl clone()
For internal framework use only.
Overrides:
clone in class java.lang.Object
For internal use only. Application developers should not use this

loadXMLContents

public void loadXMLContents(DefElement xmlElement,
                            java.lang.String fullName)
For internal framework use only.
Overrides:
loadXMLContents in class PersistableDefObject
For internal use only. Application developers should not use this

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 DefObject

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 DefObject

getCategory

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

setCategory

public void setCategory(java.lang.String category)
For internal framework use only.
For internal use only. Application developers should not use this

getMethodName

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

getSignature

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

isGroovy

public boolean isGroovy()
For internal framework use only.
For internal use only. Application developers should not use this

getReturnType

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

setReturnType

public void setReturnType(java.lang.String typStr)
For internal framework use only.
For internal use only. Application developers should not use this

getParameters

public java.util.HashMap<java.lang.String,java.lang.String> getParameters()
For internal framework use only.
For internal use only. Application developers should not use this

lookupParameter

public OperationParamImpl lookupParameter(java.lang.String name)
For internal framework use only.
For internal use only. Application developers should not use this

setParameters

public void setParameters(java.util.LinkedHashMap<java.lang.String,OperationParamImpl> parameters)
For internal framework use only.
For internal use only. Application developers should not use this

addParameter

public void addParameter(OperationParamImpl param)
For internal framework use only.
For internal use only. Application developers should not use this

removeParameter

public void removeParameter(java.lang.String paramId)
For internal framework use only.
For internal use only. Application developers should not use this

getParameterNames

public java.lang.String[] getParameterNames()
For internal framework use only.
For internal use only. Application developers should not use this

getParameterTypes

public java.lang.Class[] getParameterTypes()
For internal framework use only.
For internal use only. Application developers should not use this

getJavaReturnType

public java.lang.Class getJavaReturnType()
For internal framework use only.
For internal use only. Application developers should not use this

getMethodBody

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

getMethodText

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

getMethodText

protected java.lang.String getMethodText(int offset,
                                         boolean global)
For internal framework use only.
For internal use only. Application developers should not use this

setInsertText

public void setInsertText(java.lang.String insertText)
For internal framework use only.
For internal use only. Application developers should not use this

getInsertText

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

setHelpText

public void setHelpText(java.lang.String helpText)
For internal framework use only.
For internal use only. Application developers should not use this

getHelpText

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

setExample

public void setExample(java.lang.String example)
For internal framework use only.
For internal use only. Application developers should not use this

getExample

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

setAccess

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

setAccess

public void setAccess(java.lang.String priv)
For internal framework use only.
For internal use only. Application developers should not use this

getAccess

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

getAccessStr

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

setAccessStr

public void setAccessStr(java.lang.String priv)

getTrustModeStr

public java.lang.String getTrustModeStr()
For internal framework use only.

setTrustModeStr

public void setTrustModeStr(java.lang.String s)

setTrustMode

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

getTrustMode

public ExprEval.TrustMode getTrustMode()
For internal framework use only.
Specified by:
getTrustMode in interface ExprDef
For internal use only. Application developers should not use this

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

setTypeCheckedMode

public void setTypeCheckedMode(ExprEval.TypeCheckedMode typeCheckedMode)

equals

public boolean equals(OperationDefinitionImpl opDef)

setMethodName

public void setMethodName(java.lang.String methodName)
For internal framework use only.
For internal use only. Application developers should not use this

getMethodType

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

setMethodType

public void setMethodType(java.lang.String typ)
For internal framework use only.
For internal use only. Application developers should not use this

setMethodBody

public void setMethodBody(java.lang.String methodBody)
For internal framework use only.
For internal use only. Application developers should not use this

pushPriv

public static void pushPriv(java.lang.Object context,
                            ExprPrivCounter counter)
For internal framework use only.
For internal use only. Application developers should not use this

popPriv

public static void popPriv(java.lang.Object context,
                           ExprPrivCounter counter)
For internal framework use only.
For internal use only. Application developers should not use this

compareTo

public int compareTo(java.lang.Object operationDef)
Specified by:
compareTo in interface java.lang.Comparable

getExpressionSource

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

hasReturn

public boolean hasReturn()
Description copied from interface: ExprDef
If the expression has a return value.
Specified by:
hasReturn 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

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

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

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

Skip navigation links

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

E52932-01


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