|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.model.utils.JSR227Util
public class JSR227Util
Utility methods for runtime classes to create OperationDefinition instances for standard operations. This class is for use by internal RT classes.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_VALUE
|
static java.lang.String |
IS_NESTED_APPMODULE
|
static java.lang.String |
IS_ROW_LEVEL_VIEW_OBJECT_METHOD
|
static java.lang.String |
IS_VIEW_OBJECT_METHOD
|
static java.lang.String |
IS_VIEWOBJECT
|
static java.lang.String |
LOV_NAME
|
static java.lang.String |
VO_NAME
|
Constructor Summary | |
---|---|
JSR227Util()
|
Method Summary | |
---|---|
static java.util.Collection |
addStandardOperationsForCollectionReturnType(StructureDefinition parentDef,
DataControlDefinition dcDef)
Returns definitions for standard operations for a Collection return type. |
static StandardOperationDef |
createCommitAction()
Utility method for creation a OpreationDefinition for the standard operation "COMMIT". |
static StandardOperationDef |
createCreateAction()
Utility method for creation a OpreationDefinition for the standard operation "CREATE". |
static void |
createCreateActions(boolean addCreateAction,
java.util.Collection actions,
StructureDefinition parentDef,
DataControlDefinition dcDef)
Helper method for creating definitions for CREATE_INSERT and, if necessary, CREATE actions. |
static StandardOperationDef |
createCreateInsertAction()
Utility method for creation a OpreationDefinition for the standard operation "CREATEINSERT". |
static StandardOperationDef |
createCreateTempWithParamsAction()
Utility method for creating an OperationDefinition for the standard operation OperationDefinition.ACTION_CREATE_TEMP_WITH_PARAMS . |
static StandardOperationDef |
createCreateWithParamsAction()
Utility method for creating an OperationDefinition for the standard operation OperationDefinition.ACTION_CREATE_WITH_PARAMS . |
static StandardOperationDef |
createExecuteAction()
Utility method for creation a OpreationDefinition for the standard operation "EXECUTE". |
static StandardOperationDef |
createExecuteWithParamAction()
Utility method for creation a OpreationDefinition for the standard operation "ExecuteWithParam". |
static StandardOperationDef |
createFindAction()
Utility method for creation a OpreationDefinition for the standard operation "FIND". |
static StandardOperationDef |
createFirstAction()
Utility method for creation a OpreationDefinition for the standard operation "FIRST". |
static StandardOperationDef |
createLastAction()
Utility method for creation a OpreationDefinition for the standard operation "LAST". |
static StandardOperationDef |
createNextAction()
Utility method for creation a OpreationDefinition for the standard operation "NEXT". |
static StandardOperationDef |
createNextSetAction()
Utility method for creation a OpreationDefinition for the standard operation "NEXT_SET". |
static StandardOperationDef |
createPreviousAction()
Utility method for creation a OpreationDefinition for the standard operation "PREVIOUS". |
static StandardOperationDef |
createPreviousSetAction()
Utility method for creation a OpreationDefinition for the standard operation "PREVIOUS_SET". |
static StandardOperationDef |
createRemoveAction()
Utility method for creation a OpreationDefinition for the standard operation "REMOVE". |
static StandardOperationDef |
createRemoveRowWithKeyAction()
Utility method for creation a OpreationDefinition for the standard operation "REMOVEROW_WITH_KEY". |
static StandardOperationDef |
createRollbackAction()
Utility method for creation a OpreationDefinition for the standard operation "ROLLBACK". |
static StandardOperationDef |
createSetCurrentRowWithKeyAction()
Utility method for creation a OpreationDefinition for the standard operation "SETCURRENTROW_WITH_KEY". |
static StandardOperationDef |
createSetCurrentRowWithKeyValueAction()
Utility method for creation a OpreationDefinition for the standard operation "SETCURRENTROW_WITH_KEYVALUE". |
static OperationDefinition |
findOperationDefinitionByActionId(DefinitionContainer defs,
int actionId)
Find the OperationDefinition from the given definition container with the given action id. |
static java.util.Collection |
getActionDefinitions(StructureDefinition parentDef,
DataControlDefinition dcDef,
boolean addActions,
boolean addTransactionActions,
boolean addNavigationActions,
boolean addCreateAction)
Returns a Collection of Definitions representing the actions or in JSR227 terminology, standard operation |
static StructureDefinition |
getStructureDefinition(NamedDefinition def)
Utility method to get the StructureDefinition from a given named definition, if the named definition is one of the definition types that contains a structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_VALUE
public static final java.lang.String IS_VIEWOBJECT
public static final java.lang.String IS_NESTED_APPMODULE
public static final java.lang.String VO_NAME
public static final java.lang.String IS_ROW_LEVEL_VIEW_OBJECT_METHOD
public static final java.lang.String IS_VIEW_OBJECT_METHOD
public static final java.lang.String LOV_NAME
Constructor Detail |
---|
public JSR227Util()
Method Detail |
---|
public static StandardOperationDef createFirstAction()
public static StandardOperationDef createLastAction()
public static StandardOperationDef createNextAction()
public static StandardOperationDef createPreviousAction()
public static StandardOperationDef createNextSetAction()
public static StandardOperationDef createPreviousSetAction()
public static StandardOperationDef createFindAction()
public static StandardOperationDef createExecuteAction()
public static StandardOperationDef createExecuteWithParamAction()
public static StandardOperationDef createCreateAction()
public static StandardOperationDef createCreateInsertAction()
public static StandardOperationDef createCreateWithParamsAction()
OperationDefinition.ACTION_CREATE_WITH_PARAMS
.
Caller needs to set the parent and dataControlDefinition of
the OperationDefinition returned.
OperationDefinition.ACTION_CREATE_WITH_PARAMS
standard operation.public static StandardOperationDef createCreateTempWithParamsAction()
OperationDefinition.ACTION_CREATE_TEMP_WITH_PARAMS
.
Caller needs to set the parent and dataControlDefinition of
the OperationDefinition returned.
OperationDefinition.ACTION_CREATE_TEMP_WITH_PARAMS
standard operation.public static StandardOperationDef createRemoveAction()
public static StandardOperationDef createCommitAction()
public static StandardOperationDef createRollbackAction()
public static StandardOperationDef createRemoveRowWithKeyAction()
public static StandardOperationDef createSetCurrentRowWithKeyAction()
public static StandardOperationDef createSetCurrentRowWithKeyValueAction()
public static OperationDefinition findOperationDefinitionByActionId(DefinitionContainer defs, int actionId)
defs
- The DefinitionContainer to be searched.actionId
- Look for OperationDefinition with this Action Id.
public static StructureDefinition getStructureDefinition(NamedDefinition def)
def
- The NamedDefinition whose StructureDefinition should be returned
public static java.util.Collection getActionDefinitions(StructureDefinition parentDef, DataControlDefinition dcDef, boolean addActions, boolean addTransactionActions, boolean addNavigationActions, boolean addCreateAction)
parentDef
- The StructureDefinition which is the parent definition of the action definitions.addActions
- Whether create,remove,find, execute, createCurrentRowWithKey[Value], and
removeRowWithKey should be added if supported by the data control.addTransactionActions
- Whether commit/rollback should be added if supported by
the data control.addNavigationActions
- Whether first/next/prev/last/prev set/next set should be added
if supported by the data control.addCreateAction
- if true, add both the CREATE and CREATE_INSERT actions to the
return collection. Otherwise, only CREATE_INESRT action is added.
Neither CREATE or CREATE_INSERT will be added if addActions is false.
public static void createCreateActions(boolean addCreateAction, java.util.Collection actions, StructureDefinition parentDef, DataControlDefinition dcDef)
addCreateAction
- If true, definition for CREATE should also be created.actions
- Collection which the newly created definitions should be added to.parentDef
- Parent definition of the newly created definitions.dcDef
- DataControl definition that the newly created definitions belong to.public static java.util.Collection addStandardOperationsForCollectionReturnType(StructureDefinition parentDef, DataControlDefinition dcDef)
parentDef
-
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |