Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1674

Investigate reducing the number of classes & methods in DataDictionary used to represent system tables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • SQL
    • Low

    Description

      Currently two classes exists for each system table, one to represent the table (e.g.SYSTABLESRowFactory) , one to represent a row (e.g. TableDescriptor)

      Look at having a single row factory (CatalogRowFactory) and using polymorphism (method overloading) on the descriptor objects to perform the work
      that is done today (e.g. converting a descriptor to and from a Row object).

      In addition the DataDictionary has a specific method to drop each type of unique descriptor (e.g. dropSPSDescriptor, dropAliasDescriptor)
      Would it be possible to have a single dropDescriptor(UniqueSQLObjectDescriptor) method and again use polymorphism on the descriptors.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: