INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Base class for database and query options"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: dale
deferred class ODBC_ELEMENT_OPTIONS
inherit

DALE_SERVER
redefine
copy,
is_equal
end
feature -- Commands:

attach (e: ODBC_ELEMENT)
-- creation procedure
require
element_attached: e.is_attached

from_integer (code, n: INTEGER)
-- set value of the specified option to integer value 'n'
require
valid_option: valid_option_code (code)

from_string (code: INTEGER; s: STRING)
-- set the specified option to string 's'
require
valid_option: valid_option_code (code)
valid_string: s /= void
feature -- Queries:

to_integer (code: INTEGER): INTEGER
-- get integer value of the specified option
require
valid_option: valid_option_code (code)

to_string (code: INTEGER): STRING
-- get string value of the specified option
require
valid_option: valid_option_code (code)
feature -- Validation:

valid_option_code (code: INTEGER): BOOLEAN
-- is this option code valid?
feature -- Redefined from ANY

copy (other: like Current)
-- redefined from ANY: set only touched options
-- note: it's supposed that all statement options are integer

is_equal (other: like Current): BOOLEAN
-- ...
end -- class ODBC_ELEMENT_OPTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES