Java API
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The API for programmatic access to the functionality is defined in
the MergeProperties class, which is in the com.progress.common.property Java package. The class
definition is as follows:
Syntax
|
Constructors
The default MergeProperties()
constructor creates an object with no values assigned.
Alternatively, you can use the MergeProperties(prop_type, target_filename) constructor to load a target file on which
multiple actions are to be performed. You can then call the mergeprop(action_type, delta_file) method repeatedly, as required, without reloading
the target file.
Methods
Call the set...() methods as needed
to specify the file type, action, and other input values globally.
mergeprop() method. The three variations of this method enable you to
use any of the following approaches, as appropriate:- Use all global parameter values as declared by the
set...()methods. - Directly specify the action and the delta file. This method is useful for executing multiple operations on the same target file.
- Directly specify the file type, action, target file, delta file, and backup option.
File type and action parameters
Valid values for the prop_type and
action_type parameters are defined in MergePropertiesConst.
The prop_type parameters are used
with the setType() and mergerprop() methods. For more information, see File
type. The valid values are:
-
TYPE_UBROKER -
TYPE_DATABASE -
TYPE_TOOLS -
TYPE_PLUGINS -
TYPE_NONE
The action_type parameters are used
with the setAction() and mergerprop() methods. For more information on -action switche options, see mergeprop-utility.html#mergeprop-utility__action_switch.
The valid values are:
-
ACTION_UPDATE -
ACTION_CREATE -
ACTION_DELETE -
ACTION_LIST -
ACTION_LISTALL