Data Structures

This programs in this package utilize the following data structures for table, column, and index metadata. These are loaded via methods in the Util class.

Type of InfoClassDescription
objects
(one or more)
TreeMapThe TreeMap contains one or more tables, keyed by object name (uppercase). Each entry is a HashMap describing a particular object (table or view). See Util getObjectMeta for how to load this map.
objects
(one)
HashMapThe HashMap describes one object, containing an entry for each attribute in the object's metadata (for the object and table or view), keyed by attribute name (uppercase). Each entry is the string value of that attribute.

Additionally, there may be an entry whose key is "$ATTRIBUTES" which is a TreeMap of the attributes for that object, and an entry "$STORAGECLAUSE" which is the storage clause for an Oracle table. See Util getObjectMeta for how to load this map.

attributes
(for a given object)
TreeMapThe TreeMap contains the attributes for a given table or view.

The first entry has key "$MAXATTRIBUTES", value is a child TreeMap populated from the MaxAttribute table. This child TreeMap has a key of attributename or attributeno, and value HashMap of values from MaxAttribute for that row.

The second entry has key "$MAXVIEWCOLUMNS" and will be present only if this is a view; value is a child TreeMap populated from the MaxViewColumn table. This child TreeMap has a key of viewcolumnname, and value HashMap of values from MaxViewColumn for that row. See Util getAttributeMeta for how to load this map.

indexes
(one or more)
(maxsysindexes)
TreeMapThe TreeMap contains indexes, keyed by index name (uppercase). Each entry is a HashMap describing a particular index. See Util getIndexMeta for how to load this map.
indexes
(one)
(maxsysindexes)
HashMapThe HashMap describes one index, containing an entry for each attribute in the index's metadata, keyed by attribute name (uppercase). The index name is always stored as "IXNAME" (whether from maxsysindexes or maxsyskeys), and the "changed" attribute is stored as "IXCHANGED" for maxsysindexes, and "KEYCHANGED" for maxsyskeys. Additionally, there is an entry whose key is "$MAXSYSKEYS" which is a TreeMap of the columns in that index, and an entry "$STORAGECLAUSE" which is the storage clause for Oracle. See Util getIndexMeta for how to load this map.
keys
(for one index)
(maxsyskeys)
TreeMapThe TreeMap contains the columns in a given index, keyed by column sequence. Each entry is a HashMap describing that particular column's attributes in the index. See Util getIndexMeta for how to load this map.
keys
(maxsyskeys -- one row)
HashMapThe HashMap describes one part of a given index, containing an entry for each attribute in the key's metadata, keyed by attribute name (uppercase). (However, the "changed" attribute's key is "KEYCHANGED".) Each entry is the string value of that attribute. See Util getIndexMeta for how to load this map.

Click here to return to package description.