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 OperationDefinitionsImpl

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.OperationDefinitionsImpl

All Implemented Interfaces:
java.io.Serializable, ExprDef, DiffMergeable, DefPersistable, PersistentDefinition, OperationDefinitions, VariableManagerOwner, VariableManagerOwnerBase

public final class OperationDefinitionsImpl
extends DefObject
implements OperationDefinitions, ExprDef

This class represents the metadata for a collection of operation definitions. If a component object has operations, and its definition object has metadata for those operations, then it can be accessed using the method findOperationDefinitions(ComponentObject)

Since:
release specific (what release of product did this appear in)
See Also:
Serialized Form

Nested Class Summary

 

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

 

Field Summary
static java.lang.String RESERVED_DISPLAYNAME
          For internal framework use only.
static java.lang.String RESERVED_FLATNAME
          For internal framework use only.
static java.lang.String RESERVED_OFFSETS
          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
OperationDefinitionsImpl(java.lang.String operType)
          For internal framework use only.
OperationDefinitionsImpl(java.lang.String operType, java.lang.String fullName)
          For internal framework use only.

 

Method Summary
 OperationDefinitionImpl addGroovyOperation(java.lang.String id, 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.
 OperationDefinitionImpl addOperation(OperationDefinitionImpl opDef)
          For internal framework use only.
 void addOperations(OperationDefinitionsImpl newOpDefs)
          For internal framework use only.
 void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
           
 OperationDefinitionsImpl clone()
          For internal framework use only.
 DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
           
static OperationDefinitions findOperationDefinitions(ComponentObject componentObject)
          For internal framework use only.
static OperationDefinitions findOperationDefinitions(Row componentObject)
          For internal framework use only.
 java.lang.String[] findParameterNames(java.lang.reflect.Method method)
          For internal framework use only.
 java.lang.String[] findParameterNames(java.lang.String signature)
          For internal framework use only.
 java.lang.String getCacheKey(java.lang.String exprStr)
          The key to be used for caching compiled expression instances.
 int getDefTypeId()
          For internal framework use only.
 java.lang.String getDefXMLElementTag()
          For internal framework use only.
 java.lang.String getDefXMLNameSpace()
          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.
 ExprEval getGroovyExpr()
          For internal framework use only.
 groovy.lang.Script getGroovyScript()
          For internal framework use only.
 java.lang.Class getMessageBundleClass()
           
 java.util.HashMap<java.lang.String,OperationDefinitionImpl> getOperations()
          For internal framework use only.
 OperationDefinitions getOperDefValues()
           
 java.lang.String getOwnerName()
          For internal framework use only.
 OwnerType getOwnerType()
          Returns the type of object that owners the expression class.
 ResourceBundleDef getResourceBundleDef()
           
 java.lang.String getScriptClassName(java.lang.String exprStr)
          Returns the name used for the expression class.
static java.lang.String getSignature(java.lang.reflect.Method method)
           
 java.util.List<OperationDefinitionImpl> getSortedOperations()
           
 ExprEval.TrustMode getTrustMode()
          The trust mode for the expression.
 ExprEval.TypeCheckedMode getTypeCheckedMode()
          Returns whether the expresion should be type checked when type checking is enabled for the groovy compiler.
 java.lang.String getUniqueID(java.lang.String prefix)
          For internal framework use only.
 java.lang.String getXMLElementTag()
          For internal framework use only.
protected  boolean hasGroovy()
          For internal framework use only.
 boolean hasReturn()
          If the expression has a return value.
 boolean isGlobal()
          For internal framework use only.
 boolean isOperationsExpression()
          If the expression defines operations.
static OperationDefinitions loadOperationDefinitions(DefElement xmlElement, java.lang.String name)
          For internal framework use only.
 void loadXMLContents(DefElement xmlElement, java.lang.String fullNameFromParent)
          For internal framework use only.
 OperationDefinitionImpl removeOperation(java.lang.String id)
          For internal framework use only.
protected  void setDefForComponent(ComponentObjectImpl comp)
          For internal framework use only.
 void setFullName(java.lang.String fullName)
          For internal framework use only.
protected  void unsetDefForComponent(ComponentObjectImpl comp)
          For internal framework use only.
 void writeChildren(DefWriter jos)
          For internal framework use only.
 void writeObject(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, applyDiffContents, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffContents, 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, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, unlockDefinitionContext, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeContents, 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, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, suppressUpdateCheck

 

Methods inherited from class oracle.jbo.common.NamedObjectImpl
getFullName, 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.xml.DefPersistable
getFullName

 

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

 

Field Detail

RESERVED_OFFSETS

public static final java.lang.String RESERVED_OFFSETS
For internal framework use only.
See Also:
Constant Field Values
For internal use only. Application developers should not use this

RESERVED_FLATNAME

public static final java.lang.String RESERVED_FLATNAME
For internal framework use only.
See Also:
Constant Field Values
For internal use only. Application developers should not use this

RESERVED_DISPLAYNAME

public static final java.lang.String RESERVED_DISPLAYNAME
For internal framework use only.
See Also:
Constant Field Values
For internal use only. Application developers should not use this

Constructor Detail

OperationDefinitionsImpl

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

OperationDefinitionsImpl

public OperationDefinitionsImpl(java.lang.String operType,
                                java.lang.String fullName)
For internal framework use only.
For internal use only. Application developers should not use this

Method Detail

getSignature

public static java.lang.String getSignature(java.lang.reflect.Method method)

findOperationDefinitions

public static OperationDefinitions findOperationDefinitions(ComponentObject componentObject)
For internal framework use only.
For internal use only. Application developers should not use this

findOperationDefinitions

public static OperationDefinitions findOperationDefinitions(Row componentObject)
For internal framework use only.
For internal use only. Application developers should not use this

loadOperationDefinitions

public static OperationDefinitions loadOperationDefinitions(DefElement xmlElement,
                                                            java.lang.String name)
For internal framework use only.
For internal use only. Application developers should not use this

getExpressionSource

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

getTrustMode

public ExprEval.TrustMode getTrustMode()
Description copied from interface: ExprDef
The trust mode for the expression.
Specified by:
getTrustMode 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

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

isOperationsExpression

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

findParameterNames

public java.lang.String[] findParameterNames(java.lang.reflect.Method method)
For internal framework use only.
Specified by:
findParameterNames in interface OperationDefinitions
Returns:
null if the method is not implemented, or if no metadata is available
For internal use only. Application developers should not use this

findParameterNames

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

getOperDefValues

public OperationDefinitions getOperDefValues()

getOperations

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

getSortedOperations

public java.util.List<OperationDefinitionImpl> getSortedOperations()

hasGroovy

protected boolean hasGroovy()
For internal framework use only.

getGroovyExpr

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

getGroovyScript

public groovy.lang.Script getGroovyScript()
For internal framework use only.
For internal use only. Application developers should not use this

clone

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

addOperations

public void addOperations(OperationDefinitionsImpl newOpDefs)
For internal framework use only.
For internal use only. Application developers should not use this

addOperation

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

addGroovyOperation

public OperationDefinitionImpl addGroovyOperation(java.lang.String id,
                                                  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

removeOperation

public OperationDefinitionImpl removeOperation(java.lang.String id)
For internal framework use only.
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

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

setFullName

public void setFullName(java.lang.String fullName)
For internal framework use only.
Overrides:
setFullName in class PersistableDefObject
Parameters:
fullName - this object's fully-qualified name; the package name concatenated with the class name.
For internal use only. Application developers should not use this

getOwnerName

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

isGlobal

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

writeObject

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

getDefTypeId

public int getDefTypeId()
For internal framework use only.
Specified by:
getDefTypeId in class DefObject
For internal use only. Application developers should not use this

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

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

loadXMLContents

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

getUniqueID

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

diffChildren

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

applyDiffChildren

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

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

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.