Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-dev] Missing Primitive Data Types?

Thanks Der Ping.

Could you explain how one goes about adding PrimitiveTypes and how those
can be integrated with the factory logic in DatabaseDefinitionImpl.  I can
probably figure out the former, but I'm unsure how to customize the latter.
Looking at the logic in
DatabaseDefinitionImpl.getPredefinedDataType(PredefinedDataTypeDefinition),
it would always return null for any data type definition that references a
PrimitiveType not in the base model.

Thanks in advance,
Rob



                                                                           
             Der Ping Chou                                                 
             <dpchou@xxxxxxxxx                                             
             m>                                                         To 
             Sent by:                  DTP development mailing list        
             dtp-dev-bounces@e         <dtp-dev@xxxxxxxxxxx>               
             clipse.org                                                 cc 
                                       DTP development mailing list        
                                       <dtp-dev@xxxxxxxxxxx>,              
             10/11/2006 01:16          dtp-dev-bounces@xxxxxxxxxxx         
             PM                                                    Subject 
                                       Re: [dtp-dev] Missing Primitive     
                                       Data Types?                         
             Please respond to                                             
              DTP development                                              
               mailing list                                                
             <dtp-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           





Rob,

I think it is more appropriate to add this into generic JDBC vendor doc
than SQLModel, since SQL spec does not define bit or tinyint. we will make
the change as needed.

Thank,


Der-Ping Chou
Information Management Tooling
Development Manager - Data Tools
Seattle IBM Office
tel : 1-206-587-5946 (T/L: 277-5946)


                                                                           
 rcernich@xxxxxxxxxx                                                       
 Sent by:                                                                  
 dtp-dev-bounces@xxxxxxxxxxx                                            To 
                                           DTP development mailing list    
                                           <dtp-dev@xxxxxxxxxxx>           
 10/11/2006 11:43 AM                                                    cc 
                                                                           
                                                                   Subject 
          Please respond to                Re: [dtp-dev] Missing Primitive 
    DTP development mailing list           Data Types?                     
        <dtp-dev@xxxxxxxxxxx>                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Thanks Hemant.

I can understand that.  However, these types are listed in java.sql.Types
and appear to correlate with then X/Open standard (according to the
javadoc).

Would it be possible to add these to the base SQL model and integrate them
with
DatabaseDefinitionImpl.getPredefinedDataType(PredefinedDataTypeDefinition)
method?

Thanks again,
Rob





            Hemant S
            Kolwalkar
            <hskolwal@xxxxxx.                                          To
            com>                      DTP development mailing list
            Sent by:                  <dtp-dev@xxxxxxxxxxx>
            dtp-dev-bounces@e                                          cc
            clipse.org                dtp-dev@xxxxxxxxxxx,
                                      dtp-dev-bounces@xxxxxxxxxxx
                                                                  Subject
            10/11/2006 12:38          Re: [dtp-dev] Missing Primitive
            PM                        Data Types?


            Please respond to
             DTP development
              mailing list
            <dtp-dev@eclipse.
                  org>







yes, it is possible. and the reason is the generic JDBC dbdefinition is
intended to be generic and cannot include all datatypes of all vendors.



rcernich@xxxxxxxxxx
Sent by: dtp-dev-bounces@xxxxxxxxxxx
                                                                       To
                                                dtp-dev@xxxxxxxxxxx
10/11/2006 11:11 AM                                                    cc

                                                                  Subject
           Please respond to                    [dtp-dev] Missing
      DTP development mailing list              Primitive Data Types?
         <dtp-dev@xxxxxxxxxxx>












Hey all,

'Nother SQL model question.  I'm working on a dbdefinition for generic JDBC
and have noticed that some primitive data types appear to be missing.  For
example, I can't find types for TINYINT or BIT.  Am I doing something wrong
or have I just missed something.

Thanks in advance,
Rob

_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev
_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev


_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev
_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev




Back to the top