INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

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

DB_CATALOG_ITEM
redefine
out
end

DALE_SERVER
redefine
out
end
creation

make,
make_empty
feature -- Attributes:

table: DB_TABLE

non_unique: BOOLEAN

qualifier: STRING

name: STRING

column_names: ARRAY [STRING]

sorting_types: ARRAY [BOOLEAN]

filter_conditions: STRING
feature -- Commands:

make (tbl: DB_TABLE; nu: BOOLEAN; iq, in: STRING; si: INTEGER; cn: ARRAY [STRING]; st: ARRAY [BOOLEAN]; fc: STRING)
-- Creation procedure.

make_empty
-- ...
feature -- Settings:

set_table (tbl: DB_TABLE)
-- ...

set_non_unique (u: BOOLEAN)
-- ...

set_qualifier (q: STRING)
-- ...

set_name (n: STRING)
-- ...

set_column_names (n: ARRAY [STRING])
-- ...

set_sorting_types (t: ARRAY [BOOLEAN])
-- ...

set_filter_conditions (c: STRING)
-- ...

out: STRING
-- ...

create_sql (db_type: INTEGER): STRING
-- Returns the SQL string which creates the index.

drop_sql (db_type: INTEGER): STRING
-- Returns the SQL string which dropes the index.

print_it
-- Print index.
end -- class INDEX

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES