Class JdbcDataType


  • public class JdbcDataType
    extends java.lang.Object
    Models a JDBC DATATYPE. Mainly breaks down into 3 pieces of information:
    • type code - The JDBC type code; generally matches a code from Types though not necessarily.
    • type name - The database type name for the given type code.
    • getJavaType() java type} - The java type recommended for representing this JDBC type (if known)
    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcDataType​(int typeCode, java.lang.String typeName, java.lang.Class javaType)  
    • Constructor Detail

      • JdbcDataType

        public JdbcDataType​(int typeCode,
                            java.lang.String typeName,
                            java.lang.Class javaType)
    • Method Detail

      • getTypeCode

        public int getTypeCode()
      • getTypeName

        public java.lang.String getTypeName()
      • getJavaType

        public java.lang.Class getJavaType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object