Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-611

support the db mappings for the tcomp runtime as common

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 0.24.0
    • None
    • None
    • None

    Description

      Now we need to support the db mappings for the jdbc components, it's a common function, for doing that, need to know some basic knowledge for that :
      We have several classes for doing that :
      1. org.talend.core.model.metadata.MetadataTalendType, MappingTypeRetriever : they works for the studio and also javajet inside at code generation time(not runtime),
      2. routines.system.MetadataTalendType : for the dynamic support majorly at runtime

      So we need to adjust them or copy them to make they can be accessed at tcomp runtime(seems the definition part don't need it).

      What need to use in my opinion :
      1. the whole routines.system.MetadataTalendType
      2. some methods in org.talend.core.model.metadata.MetadataTalendType and MappingTypeRetriever, not all as some methods only works for studio part, and some methods are duplicated with routines.system.MetadataTalendType, need to use :

      isLengthIgnored
      isPrecisionIgnored
      isPreBeforeLength
      

      Wiki page: https://wiki.talend.com/display/rd/Database+metadata+types+mapping

      Task decomposition:

      1. Design and implement improved mapping class model (Dbms)
      2. Design and implement mapping file (configuration) parser
      3. Find a way to reuse same code both in Studio and components
      4. Refactor MappingTypeRetriever to use new version of Dbms class
      5. Refactor Studio classes to use new parser (Studio should provide path to configuration file) and Dbms class
      6. Implement analog of "Manager" class which provides common functionality for database components

      Attachments

        Activity

          People

            Unassigned Unassigned
            wwang Wei Wang
            Ivan Gonchar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 week, 3 days
                1w 3d
                Remaining:
                Time Spent - 1 day, 7 hours Remaining Estimate - 1 week, 1 day, 1 hour
                1w 1d 1h
                Logged:
                Time Spent - 1 day, 7 hours Remaining Estimate - 1 week, 1 day, 1 hour
                1d 7h