Internally and inside the JDBC driver, JDBCType is being used for the standard SQL representation. Unfortunately this is too restrictive as it doesn't cover even the standard SQL types (such as INTERVAL).
Fortunately, Java 8 introduced SQLType an interface for extensibility which we should be using instead.