note description: "Abstract Define Variable" legal: "See notice at end of class." status: "See notice at end of class." author: "$Author$" date: "$Date$" revision: "$Revision$" history: "$History: oci_define.e $" deferred class OCI_DEFINE inherit OCI_VARIABLE feature -- Status report is_defined: BOOLEAN feature -- Basic operations define_by_pos (stmt: OCI_STATEMENT; errh: OCI_ERROR_HANDLER; pos: INTEGER) -- Associate an item in a select-list with the output data buffer require not_defined: not is_defined valid_position: pos > 0 valid_data_type_and_size: valid_data_type_and_size (data_type, data_size) buffer_allocated: buffer_allocated local status: INTEGER l_handle: like handle do status := oci_define_by_pos (stmt.handle, $l_handle, errh.handle, pos, buffer, data_size, data_type, indicator_ptr, actual_length_ptr, return_code_ptr, Oci_default) handle := l_handle errh.check_error (status) is_allocated := status = Oci_success is_defined := status = Oci_success ensure allocated: is_allocated defined: is_defined end feature {NONE} -- Implementation handle_type: INTEGER -- Handle type do Result := Oci_htype_define end feature {NONE} -- Externals oci_define_by_pos (stmtp: POINTER; defnpp: POINTER; errhp: POINTER; position: INTEGER; valuep: POINTER; value_sz: INTEGER; dty: INTEGER_16; indp: POINTER; rlenp: POINTER; rcodep: POINTER; mode: INTEGER): INTEGER external "C (void *, void **, void *, int, void *, int, short, void *, short *, short *, int):% %short | %"oci.h%"" alias "OCIDefineByPos" end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class OCI_DEFINE