Try OpenEdge Now
skip to main content
Java Open Clients
Using the Open Client Java OpenAPI to Directly Access the AppServer : Setting up parameters : Defining the schema for temp-tables in a ProDataSet : Adding field descriptions to the ProDataObjectMetaData object
 
Adding field descriptions to the ProDataObjectMetaData object
For each field (ProDataObject column property) in the temp-table, add its meta data by calling the setFieldMetaData() method on the ProDataObjectMetaData object:
Syntax
public void setFieldMetaData(int fieldNumber, String fieldName,
                             int extentValue, int proType,
                             int userOrder, int xmlMapping)
fieldNumber
Specifies a 1-based position that corresponds to the position of a mapped field in an ABL temp-table.
fieldName
Specifies a name that is typically identical to a mapped field in the corresponding ABL temp-table. The value cannot be null and must be unique among fields (column properties) in the specified ProDataObject type.
extentValue
Specifies if and how the field represents an array field in the corresponding temp-table. The value must be 0 or greater. If the value is greater than 1, this column property is many-valued (represents an array field) and the value is its extent. If the property represents a BLOB or CLOB field, the value must be 0 or 1.
proType
Specifies the value of a class constant defined in the com.progress.open4gl.Parameter class. The specified class constant indicates the ABL data type of the mapped temp-table field. For more information on these class constants, see the sections on specifying field data type meta data for temp-tables in Passing Parameters. To identify the Java data type that the column property assumes for the specified ABL data type, see the information on managing ProDataObject mappings to temp-tables in AccessingABL ProDataSets.
userOrder
Specifies a 0-based user order position for the column property.
xmlMapping
Reserved for future use.  Always specify 0.