Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "Object that enable basic database management." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2019-08-26 07:54:41 -0800 (Mon, 26 Aug 2019) $" revision: "$Revision: 103422 $" class interface DATABASE_MANAGER [reference G -> DATABASE create default_create end] create default_create -- Process instances of classes with no creation clause. -- (Default: do nothing.) -- (from ANY) feature -- Access database_handle_name: STRING_8 -- Database handle name ensure not_void: Result /= Void Db_change: DB_CHANGE -- Performs a change in the database (i.e. a command). Db_selection: DB_SELECTION -- Performs a selection in the database (i.e. a query). generating_type: TYPE [detachable DATABASE_MANAGER [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 session_control: detachable DB_CONTROL -- Session control. string_format (s: READABLE_STRING_GENERAL): STRING_8 -- String representation in SQL of s. require s_not_void: s /= Void string_format_32 (s: READABLE_STRING_GENERAL): STRING_32 -- String representation in SQL of s. require s_not_void: s /= Void 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_MANAGER [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_MANAGER [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_MANAGER [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 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 database_handle_created: BOOLEAN -- Has the database handle been created? error_message_32: detachable STRING_32 -- Error message if an error occurred during last -- database operation. has_error: BOOLEAN -- Has an error occurred during last database operation? is_connected: BOOLEAN -- Is the application connected to a database? 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)) session_control_created: BOOLEAN -- Is session_control created? feature -- Duplication copy (other: DATABASE_MANAGER [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_MANAGER [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_MANAGER [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_MANAGER [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_MANAGER [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_MANAGER [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_MANAGER [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 feature -- Connection disconnect -- Disconnect from database. require is_connected: is_connected establish_connection -- Establish connection. require not_connected: not is_connected set_connection_information (user_name, password, data_source: STRING_8) -- Set information required to connect to the database. -- It overrides the information set by set_connection_string_information when login. require not_void: user_name /= Void and password /= Void and data_source /= Void set_connection_string_information (a_connection_string: STRING_8) -- Set connection string required to connect to the database. -- It overrides the information set by set_connection_information when login. require not_void: a_connection_string /= Void 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 -- Queries load_data_with_select (s: READABLE_STRING_GENERAL): detachable ANY -- Load directly a single data from the database. require meaningful_select: s /= Void load_list_with_select (s: READABLE_STRING_GENERAL; an_obj: ANY): ARRAYED_LIST [like an_obj] -- Load list of objects whose type are the same as an_obj, -- following the SQL query s. require not_void: an_obj /= Void meaningful_select: s /= Void ensure result_not_void: Result /= Void feature -- Queries without result to load. begin_transaction -- Start a transaction which will be terminated by a call to rollback or commit. commit -- Commit updates in the database. execute_query (a_query: READABLE_STRING_GENERAL) -- Execute a_query and commit changes. require not_void: a_query /= Void execute_query_without_commit (a_query: READABLE_STRING_GENERAL) -- Execute a_query in the database. -- Warning: query executed is not committed. -- Note: Commit is still performed if auto-commit is enabled, use -- begin_transaction to disable auto-commit. require not_void: a_query /= Void insert_with_repository (an_obj: ANY; rep: DB_REPOSITORY) -- Store in the database object an_obj with db_repository. require repository_loaded: rep.loaded rollback -- Rollback updates in the database. invariant -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note copyright: "Copyright (c) 1984-2019, 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_MANAGER
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

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