Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Implementation of DB_PROC" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2017-05-23 04:29:02 -0800 (Tue, 23 May 2017) $" revision: "$Revision: 100428 $" class interface DATABASE_PROC [G -> DATABASE create default_create end] create make -- If the database has row numbers -- initialize `row_number` feature -- Initialization make -- If the database has row numbers -- initialize `row_number` feature -- Access db_spec: DATABASE -- Handle to actual database -- (from HANDLE_SPEC) ensure -- from HANDLE_SPEC not_void: Result /= Void generating_type: TYPE [detachable DATABASE_PROC [G]] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty Manager: DATABASE_SESSION_MANAGER -- The session manager -- (from DATABASE_SESSION_MANAGER_ACCESS) feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: DATABASE_PROC [G]): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: DATABASE_PROC [G]): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: DATABASE_PROC [G]): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report arguments_name_32: detachable ARRAY [STRING_32] -- Argument names of stored procedure arguments_set: BOOLEAN -- Have arguments been set? ensure arguments_set: Result implies (arguments_name_32 /= Void and arguments_type /= Void) arguments_type: detachable ARRAY [detachable ANY] -- Argument types of stored procedure conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void exists: BOOLEAN -- Does current procedure exist in server? same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) text_32: STRING_32 -- SQL statement attached to stored procedure feature -- Element change change_name (new_name: STRING_8) -- Change procedure name with new_name. ensure then name_changed: name.same_string_general (new_name) or else name.same_string_general (new_name.as_lower) set_arguments_32 (args_name: attached like arguments_name_32; args_type: attached like arguments_type) -- Set `arguments_name_32` and `arguments_type` -- of current as a variable list of argument -- names and a variable list of argument -- types, respectively. require args_name_not_void: args_name /= Void args_type_not_void: args_type /= Void not_arguments_set: not arguments_set ensure arguments_set set_with_input_parameter1: arguments_name_32 = args_name set_with_input_parameter2: arguments_type = args_type set_no_arguments -- No arguments for the current procedure. ensure arguments_type_void: arguments_type = Void arguments_name_void: arguments_name_32 = Void no_arguments: not arguments_set feature -- Duplication copy (other: DATABASE_PROC [G]) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: DATABASE_PROC [G]) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: DATABASE_PROC [G] -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: DATABASE_PROC [G]) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: DATABASE_PROC [G] -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: DATABASE_PROC [G] -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable DATABASE_PROC [G] -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class drop -- Drop current procedure from server. execute (destination: DB_EXPRESSION) -- Execute current procedure with destination -- as a DB_SELECTION or a DB_CHANGE object mapping -- entity values with procedure parameter names -- if any. require else argument_not_void: destination /= Void execute_string (destination: DB_EXPRESSION; sql: READABLE_STRING_GENERAL) -- Execute the procedure using the sql statement sql load -- Make result of stored procedure execution available. -- Activate current stored procedure from server -- so that presence may be accurately tested using `exists`. store (sql: READABLE_STRING_GENERAL) -- Store current procedure performing sql statement. require else argument_not_void: sql /= Void feature -- Decimal decimal_creation_function: FUNCTION [STRING_8, INTEGER_32, INTEGER_32, INTEGER_32, ANY] -- Function to create decimal -- (from GLOBAL_SETTINGS) decimal_factor_function: FUNCTION [ANY, TUPLE [digits: STRING_8; sign: INTEGER_32; precision: INTEGER_32; scale: INTEGER_32]] -- Function to get base type to form a decimal from a given ANY object. -- (from GLOBAL_SETTINGS) decimal_output_function: FUNCTION [ANY, STRING_8] -- Function to output a decimal for the purpose of building correct SQL statement -- (from GLOBAL_SETTINGS) default_decimal_presicion: INTEGER_32 -- Default presicion of decimal. Used when creating tables etc. -- (from GLOBAL_SETTINGS) default_decimal_scale: INTEGER_32 -- Default scale of decimal. Used when creating tables etc. -- (from GLOBAL_SETTINGS) is_decimal_function: FUNCTION [ANY, BOOLEAN] -- Fuction to check if an object is a decimal -- (from GLOBAL_SETTINGS) feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Qeury is_database_set: BOOLEAN -- Is database set? -- (from HANDLE_USE) feature -- Query is_decimal_used: BOOLEAN -- Is decimal type used? -- (from GLOBAL_SETTINGS) map_zero_null_value: BOOLEAN -- Map zero to NULL value for numeric types? -- (from GLOBAL_SETTINGS) use_extended_types: BOOLEAN -- Use extended types? STRING_32 etc. -- (from GLOBAL_SETTINGS) feature -- Status Change set_decimal_functions (a_decimal_creation_func: like decimal_creation_function; a_is_decimal_func: like is_decimal_function; a_decimal_factor_func: like decimal_factor_function; a_decimal_output_func: like decimal_output_function) -- (from GLOBAL_SETTINGS) set_default_decimal_presicion (a_presicsion: INTEGER_32) -- Set `default_decimal_presicion` -- (from GLOBAL_SETTINGS) set_default_decimal_scale (a_scale: INTEGER_32) -- Set `default_decimal_scale` -- (from GLOBAL_SETTINGS) set_is_decimal_used (a_b: BOOLEAN) -- Set `is_decimal_used` with a_b. -- (from GLOBAL_SETTINGS) set_map_zero_null_value (a_b: BOOLEAN) -- Set `map_zero_null_value` with a_b. -- (from GLOBAL_SETTINGS) set_use_extended_types (a_b: BOOLEAN) -- Set `use_extended_types` with a_b. -- (from GLOBAL_SETTINGS) invariant -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2017, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., 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 DATABASE_PROC
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org