INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Base class of SESSION, DATABASE and SIMPLE_QUERY"
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
inherit

COMPARABLE
redefine
is_equal
end

DALE_SERVER
redefine
is_equal
end

MEMORY
export
{NONE}
all
redefine
dispose,
is_equal
end
feature -- Attribute:

status: ODBC_STATUS
feature -- Commands:

attach (prnt: ODBC_ELEMENT)
-- attach to the parent
require
valid_parent: prnt = void or else prnt.is_attached
ensure
attached: is_attached

attach_to (prnt: ODBC_ELEMENT)
-- ...

close
-- detach from parent, close current element
require
attached: is_attached
ensure
closed: not is_attached
feature -- Removal

dispose
-- redefined from MEMORY
feature -- Queries:

is_attached: BOOLEAN
-- is this element attached to a parent?

is_active: BOOLEAN
-- is this ODBC element active?
require
attached: is_attached
feature -- * Advanced attributes:

parent: ODBC_ELEMENT

children: SORTED_LIST_ [ODBC_ELEMENT]

handler: INTEGER
feature -- * Advanced queries:

infix "<" (other: like Current): BOOLEAN
-- redefined from COMPARABLE; compares only by handlers

is_equal (other: like Current): BOOLEAN
-- redefined from ANY
end -- class ODBC_ELEMENT

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES