INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Information about database%'s properties and capabilities"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: dale
class DB_INFORMATION
inherit

DALE_SERVER
end
creation {DATABASE}

attach
feature -- Commands:

forget (code: INTEGER)
-- forget specified information about the data source capabilities

forget_all
-- forget all information about the data source capabilities
feature -- Queries:

to_integer (code: INTEGER): INTEGER
-- returns information presented by 16-bit or 32-bit integer value
require
attached: is_attached

to_string (code: INTEGER): STRING
-- returns information presented by character string
require
attached: is_attached
ensure
not_void: Result /= void

to_boolean (code: INTEGER): BOOLEAN
-- returns information presented by one-character string whose value
-- can be either "Y" (True) or "N" (FALSE)
require
attached: is_attached

to_bit (code, bitn: INTEGER): BOOLEAN
-- returns True if specified bit is set in the 32-bit bitmask value
require
attached: is_attached

function_supported (code: INTEGER): BOOLEAN
-- returns True if function having the specified code
-- is supported by the associated database
require
attached: is_attached
valid_function: valid_function_code (code)

is_attached: BOOLEAN
-- is associated database ok?
feature -- Validation:

valid_function_code (c: INTEGER): BOOLEAN
-- ...
feature {DATABASE}

attach (db: DATABASE)
-- creation; associates this object with corresponding database
require
valid_database: db /= void and then db.is_connected
ensure
is_attached: is_attached
end -- class DB_INFORMATION

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES