public class CreateLookupEntry extends AbstractOperation<String>
Operation
that creates a lookup entry. The invoke()
method will return a
string containing the SYSROWID of the created entry.Constructor and Description |
---|
CreateLookupEntry(String ddc,
Map<String,Object> props)
Constructs a new
operation that creates an entry in the given
lookup-ddc with the given properties. |
CreateLookupEntry(String ddc,
Properties props)
Constructs a new
operation that creates an entry in the given
lookup-ddc with the given properties. |
Modifier and Type | Method and Description |
---|---|
String |
getDDC() |
Map<String,Object> |
getProperties() |
String |
invoke()
The method that will be called on the server side.
|
static Map<String,Object> |
naivePropertiesConversion(Properties props)
Used to convert a
Properties instance to a Map . |
String |
toString() |
getResult, setResult
beforeInvoke, getClientToken
public CreateLookupEntry(String ddc, Map<String,Object> props)
operation
that creates an entry in the given
lookup-ddc with the given properties. For a given ddc-field the accepted java types depend on the type of the field:
String
Number
(this includes
the wrapper classes of the given primitive types)Number
(this includes
the wrapper classes of the given primitive types)Calendar
and Date
. Keep in mind that
Date
, Time
and Timestamp
are subclasses of
Date
and thus are acceptedBoolean
List
of the types accepted for the fieldSaPropertyValueImpl
ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.public CreateLookupEntry(String ddc, Properties props)
operation
that creates an entry in the given
lookup-ddc with the given properties. For the types accepted in the properties see
CreateLookupEntry(String, java.util.Map)
ddc
- the name of the lookup-ddc to add the entry in.props
- properties of the new entry.public static Map<String,Object> naivePropertiesConversion(Properties props)
Properties
instance to a Map
.props
- properties to convertpublic String invoke() throws Exception
Operation
Exception
- exception when invoking this operationpublic String getDDC()
public String toString()
toString
in class AbstractOperation<String>
Copyright © 2016 SAPERION AG. All rights reserved.