Automatic generation produced by ISE Eiffel
note description: "" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2012-01-16 01:25:58 -0900 (Mon, 16 Jan 2012) $" revision: "$Revision: 88184 $" class interface LOGIN [G -> DATABASE create default_create end] create make feature -- Initialization make feature -- Access db_spec: DATABASE -- Handle to actual database -- (from HANDLE_SPEC) ensure -- from HANDLE_SPEC not_void: Result /= Void generating_type: TYPE [detachable LOGIN [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: LOGIN [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: LOGIN [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: LOGIN [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 application: STRING_8 -- Application name. 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 connection_string: STRING_8 -- Connect String data_source: STRING_8 -- Data Source. group_id: STRING_8 -- Group Identifier. hostname: STRING_8 -- Host name is_login_by_connection_string: BOOLEAN -- Login by connection string name: STRING_8 -- User name passwd: STRING_8 -- User password role_id: STRING_8 -- Role identifier . role_passwd: detachable STRING_8 -- Role password. 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)) feature -- Status setting set (a_name, a_passwd: STRING_8) -- Set user name and password before connection becomes possible. require user_name_ok: db_spec.user_name_ok (a_name) password_ok: db_spec.password_ok (a_passwd) ensure password_ensure: db_spec.password_ensure (name, passwd, a_name, a_passwd) set_application (appname: STRING_8) -- Set name of application require argument_not_void: appname /= Void ensure name_set: application.is_equal (appname) set_connection_string (a_str: like connection_string) require a_str_not_void: a_str /= Void ensure connect_string_set: connection_string = a_str set_data_source (a_data_source: STRING_8) -- Set Data Source of ODBC. require argument_not_void: a_data_source /= Void ensure data_source_set: data_source.same_string (a_data_source) set_group (a_group_id: STRING_8) require argument_not_void: a_group_id /= Void ensure name_set: group_id.same_string (a_group_id) set_hostname (a_hostname: STRING_8) require argument_not_void: a_hostname /= Void ensure name_set: hostname.same_string (a_hostname) set_is_login_by_connection_string (a_b: like is_login_by_connection_string) -- Set `is_login_by_connection_string` with a_b. ensure is_login_by_connection_string_set: is_login_by_connection_string = a_b set_role (a_role_id: STRING_8; a_role_passwd: detachable STRING_8) -- Set role identifier of data base. require argument_not_void: a_role_id /= Void ensure name_set: role_id.same_string (a_role_id) feature -- Duplication copy (other: LOGIN [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: LOGIN [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: LOGIN [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: LOGIN [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: LOGIN [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: LOGIN [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 LOGIN [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 -- 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 invariant -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) 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 LOGIN -- Generated by Eiffel Studio --
For more details: eiffel.org