Class JdbcDataType

java.lang.Object
org.hibernate.boot.model.source.spi.JdbcDataType

public class JdbcDataType extends Object
Models a JDBC data type. 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 Details

    • JdbcDataType

      public JdbcDataType(int typeCode, String typeName, Class<?> javaType)
  • Method Details

    • getTypeCode

      public int getTypeCode()
    • getTypeName

      public String getTypeName()
    • getJavaType

      public Class<?> getJavaType()
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object