Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awGet | awGetTypeDefFieldType
 
awGetTypeDefFieldType
BrokerError awGetTypeDefFieldType(
BrokerTypeDef type_def,
char *field_name,
short *field_type);
type_def
The event type definition.
field_name
The field name whose type is to be obtained.
field_type
A type value. This parameter is used for output.
Obtains the data type of the specified field, as specified by the defined constants in awetdef.h:
FIELD_TYPE_BYTE
FIELD_TYPE_SHORT
FIELD_TYPE_INT
FIELD_TYPE_LONG
FIELD_TYPE_FLOAT
FIELD_TYPE_DOUBLE
FIELD_TYPE_BOOLEAN
FIELD_TYPE_DATE
FIELD_TYPE_CHAR
FIELD_TYPE_SEQUENCE
FIELD_TYPE_STRING
FIELD_TYPE_STRUCT
FIELD_TYPE_UNICODE_CHAR
FIELD_TYPE_UNICODE_STRING
FIELD_TYPE_UNKNOWN
See Specifying Field Names for complete information on specifying field_name.
Possible BrokerError major codes
Meaning
AW_ERROR_FIELD_NOT_FOUND
The field_name does not exist in the event type.
AW_ERROR_FIELD_TYPE_MISMATCH
The field_name incorrectly accesses a type, such as using a subscript on a non-sequence field.
AW_ERROR_INVALID_FIELD_NAME
The field_name is invalid.
AW_ERROR_INVALID_TYPEDEF
The type_def parameter is invalid.
AW_ERROR_NULL_PARAM
The field_name or field_type parameter is NULL.
See also: