public interface JCoListMetaData extends JCoMetaData
JCoParameterList
,
JCoRequest
,
JCoResponse
Modifier and Type | Field and Description |
---|---|
static int |
CHANGING_PARAMETER
Flag that indicates a export parameter.
|
static int |
EXPORT_PARAMETER
Flag that indicates a export parameter.
|
static int |
IMPORT_PARAMETER
Flag that indicates a import parameter.
|
static int |
OPTIONAL_PARAMETER
Flag that indicates that a parameter is optional.
|
TYPE_ABAPOBJECT, TYPE_BCD, TYPE_BOX, TYPE_BYTE, TYPE_CDAY, TYPE_CHAR, TYPE_DATE, TYPE_DECF16, TYPE_DECF34, TYPE_DTDAY, TYPE_DTMONTH, TYPE_DTWEEK, TYPE_EXCEPTION, TYPE_FLOAT, TYPE_GENERIC_BOX, TYPE_INT, TYPE_INT1, TYPE_INT2, TYPE_INT8, TYPE_INVALID, TYPE_ITAB, TYPE_NUM, TYPE_STRING, TYPE_STRUCTURE, TYPE_TABLE, TYPE_TIME, TYPE_TMINUTE, TYPE_TSECOND, TYPE_UTCLONG, TYPE_UTCMINUTE, TYPE_UTCSECOND, TYPE_XSTRING, UNINITIALIZED
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
int type,
int nucByteLength,
int ucByteLength,
int flags)
Adds a new scalar field descriptor to the metadata object.
|
void |
add(String name,
int type,
int nucByteLength,
int ucByteLength,
int decimals,
String defaults,
String description,
int flags,
Object tabMetaData,
JCoExtendedFieldMetaData extended)
Adds a new field descriptor to the metadata object.
|
void |
add(String name,
int type,
int nucByteLength,
int ucByteLength,
int decimals,
String defaults,
String description,
int flags,
Object tabMetaData,
String recordFieldName,
JCoExtendedFieldMetaData extended)
Adds a new field descriptor to the metadata object.
|
void |
add(String name,
int type,
JCoRecordMetaData recordMetaData,
int flags)
Adds a new complex field descriptor to the metadata object, i.e.
|
String |
getDefault(int index)
Returns the default value of the data field at the specified index.
|
String |
getDefault(String fieldName)
Returns the default value for the field with the specified name.
|
String |
getRecordFieldName(int index)
If the parameter is defined by referencing a field in a table or structure, the name of this field
for the parameter field at the specified index is returned,
null otherwise. |
String |
getRecordFieldName(String fieldName)
If the parameter is defined by referencing a field in a table or structure, the name of this field
for the parameter field with the specified name is returned,
null otherwise. |
boolean |
isChanging(int index)
Checks whether the field at the specified index is a changing parameter.
|
boolean |
isChanging(String fieldName)
Checks whether the field with the specified name is a changing parameter.
|
boolean |
isException(int index)
Checks whether this field is a exception.
|
boolean |
isException(String fieldName)
Checks whether this field with the specified name is a exception.
|
boolean |
isExport(int index)
Checks whether the field at the specified index is an export parameter.
|
boolean |
isExport(String fieldName)
Checks whether the field with the specified name is an export parameter.
|
boolean |
isImport(int index)
Checks whether the field at the specified index is an import parameter.
|
boolean |
isImport(String fieldName)
Checks whether the field with the specified name is an import parameter.
|
boolean |
isOptional(int index)
Checks whether the field at the specified index is an optional parameter.
|
boolean |
isOptional(String fieldName)
Checks whether the field with the specified name is an optional parameter.
|
getByteLength, getByteLength, getClassNameOfField, getClassNameOfField, getDecimals, getDecimals, getDescription, getDescription, getExtendedFieldMetaData, getExtendedFieldMetaData, getFieldCount, getLength, getLength, getName, getName, getRecordMetaData, getRecordMetaData, getRecordTypeName, getRecordTypeName, getType, getType, getTypeAsString, getTypeAsString, getUnicodeByteLength, getUnicodeByteLength, hasField, indexOf, isAbapObject, isAbapObject, isLocked, isNestedType1Structure, isNestedType1Structure, isStructure, isStructure, isTable, isTable, lock, setName
static final int OPTIONAL_PARAMETER
static final int IMPORT_PARAMETER
static final int EXPORT_PARAMETER
static final int CHANGING_PARAMETER
void add(String name, int type, int nucByteLength, int ucByteLength, int flags)
name
- Field name for identifying this data fieldtype
- Data field typenucByteLength
- Data field length in bytes for non-Unicode layoutucByteLength
- Data field length in bytes for Unicode layoutflags
- Bit-vector for additional attributes of the field. The vector can be ORed together fromFlag | Description |
---|---|
IMPORT_PARAMETER | The field is an import parameter |
EXPORT_PARAMETER | The field is an export parameter |
CHANGING_PARAMETER | The field is a changing parameter |
OPTIONAL_PARAMETER | The field is an optional parameter |
void add(String name, int type, JCoRecordMetaData recordMetaData, int flags)
name
- Field name for identifying this data fieldtype
- Data field typerecordMetaData
- the metadata for the structure or tableflags
- Bit-vector for additional attributes of the field. The vector can be ORed together fromFlag | Description |
---|---|
IMPORT_PARAMETER | The field is an import parameter |
EXPORT_PARAMETER | The field is an export parameter |
CHANGING_PARAMETER | The field is a changing parameter |
OPTIONAL_PARAMETER | The field is an optional parameter |
void add(String name, int type, int nucByteLength, int ucByteLength, int decimals, String defaults, String description, int flags, Object tabMetaData, JCoExtendedFieldMetaData extended)
name
- Field name for identifying this data fieldtype
- Data field typenucByteLength
- Data field length in bytes for non-Unicode layoutucByteLength
- Data field length in bytes for Unicode layoutdecimals
- Data field number of decimals (only necessary for the data types TYPE_BCD and TYPE_FLOAT)defaults
- Data Field default valuedescription
- Descriptional text of the data fieldflags
- Bit-vector for additional attributes of the field. The vector can be ORed together fromFlag | Description |
---|---|
IMPORT_PARAMETER | The field is an import parameter |
EXPORT_PARAMETER | The field is an export parameter |
CHANGING_PARAMETER | The field is a changing parameter |
OPTIONAL_PARAMETER | The field is an optional parameter |
void add(String name, int type, int nucByteLength, int ucByteLength, int decimals, String defaults, String description, int flags, Object tabMetaData, String recordFieldName, JCoExtendedFieldMetaData extended)
name
- Field name for identifying this data fieldtype
- Data field typenucByteLength
- Data field length in bytes for non-Unicode layoutucByteLength
- Data field length in bytes for Unicode layoutdecimals
- Data field number of decimals (only necessary for the data types TYPE_BCD and TYPE_FLOAT)defaults
- Data Field default valuedescription
- Descriptional text of the data fieldflags
- Bit-vector for additional attributes of the field. The vector can be ORed together fromFlag | Description |
---|---|
IMPORT_PARAMETER | The field is an import parameter |
EXPORT_PARAMETER | The field is an export parameter |
CHANGING_PARAMETER | The field is a changing parameter |
OPTIONAL_PARAMETER | The field is an optional parameter |
tabMetaData
- metadata if the field is a complex field, i.e. structure or table. In case of scalar fields either the data element can be set there,
or the record containing the referenced table fieldrecordFieldName
- in case the parameter is a scalar type and is defined by referencing a certain field in a table or structure, recordFieldName is the name of this fieldextended
- extended metadata for this field or null
if none available.boolean isException(int index)
index
- the index of the fieldtrue
if the specified field is an exception,
false
otherwiseboolean isException(String fieldName)
fieldName
- the name of the fieldtrue
if the specified field is an exception, false
otherwiseJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existString getDefault(int index)
index
- the index of the fieldString getDefault(String fieldName)
fieldName
- the name of the fieldJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existString getRecordFieldName(int index)
null
otherwise. In the first
case getRecordTypeName(index)
would contain the name of the enclosing record.index
- the index of the parameter fieldJCoMetaData.getRecordTypeName(int)
String getRecordFieldName(String fieldName)
null
otherwise. In the first
case getRecordTypeName(fieldName)
would contain the name of the enclosing record.fieldName
- the name of the parameter fieldJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existJCoMetaData.getRecordTypeName(String)
boolean isOptional(int index)
index
- the index of the fieldtrue
if the specified field is an optional parameter, false
otherwiseboolean isOptional(String fieldName)
fieldName
- the name of the fieldtrue
if the specified field is an optional parameter, false
otherwiseJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existboolean isImport(int index)
index
- the index of the fieldtrue
if the specified field is an import parameter, false
otherwiseboolean isImport(String fieldName)
fieldName
- the name of the fieldtrue
if the specified field is an import parameter, false
otherwiseJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existboolean isExport(int index)
index
- the index of the fieldtrue
if the specified field is an export parameter, false
otherwiseboolean isExport(String fieldName)
fieldName
- the name of the fieldtrue
if the specified field is an export parameter, false
otherwiseJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existboolean isChanging(int index)
index
- the index of the fieldtrue
if the specified field is a changing parameter, false
otherwiseboolean isChanging(String fieldName)
fieldName
- the name of the fieldtrue
if the specified field is a changing parameter, false
otherwiseJCoRuntimeException
- with group JCO_ERROR_FIELD_NOT_FOUND if a field with this name does not existCopyright © 2016 SAP. All Rights Reserved.