I/O function sets and related types
The following table specifies the I/O functions that you must implement for the nondefault case, and their related data types.
Function set | Data format | SQL buffer type | Java™ buffer type | Java stream implementation |
---|---|---|---|---|
Server UDR | UDT | Internal Representation | IfxDataPointer | IfmxSQLInStream IfmxSQLOutStream |
Input Output | Text | LVARCHAR | String (String Buffer) | IfmxTextInStream IfmxTextOutStream |
Send Receive | Client Binary | SENDRECV | IfxDataPointer | IfmxSRInStream IfmxSROutStream |
Import Export | Text | IMPEXP | IfxDataPointer | IfmxIEInsStream IfmxIEOutStream |
Binary Import Export | Client Binary | IMPEXBIN | IfxDataPointer | IfmxIEBinStream IfmxIEBOutStream |
The columns in the preceding table represent the following:
- Function set
Names the type of function in conformance with UDT specifications
- Data format
A conceptual description of the format of the data in the SQL buffer that is being converted
- Buffer typeNames the actual data types being read or written
- SQLBuffer is the SQL (or database-server) type for this data.
- JavaBuffer is the Java type
to which the SQLBuffer is transformed before being passed to (or returned
from) the I/O method.
It is an intermediate type that is contained in and manipulated by a Java Stream. It is also the argument type for input methods and the return type for output methods.
- Java Stream implementation
Names the actual stream type that is passed to the SQLData interface when the default I/O functions are used. Each of the streams implements IfmxUDTSQLInput or IfmxUDTSQLOutput.