Module org.hsqldb

Class OdbcUtil


  • public class OdbcUtil
    extends java.lang.Object
    Static values and methods to facilitate servicing ODBC clients.
    Since:
    1.9.0
    Author:
    Blaine Simpson (blaine dot simpson at admc dot com)
    • Constructor Summary

      Constructors 
      Constructor Description
      OdbcUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static short getIdForColumn​(int colIndex, org.hsqldb.result.ResultMetaData md)
      Temporary hack.
      static int getTableOidForColumn​(int colIndex, org.hsqldb.result.ResultMetaData md)  
      static java.lang.String hexCharsToOctalOctets​(java.lang.String hexChars)  
      static void main​(java.lang.String[] sa)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OdbcUtil

        public OdbcUtil()
    • Method Detail

      • getTableOidForColumn

        public static int getTableOidForColumn​(int colIndex,
                                               org.hsqldb.result.ResultMetaData md)
      • getIdForColumn

        public static short getIdForColumn​(int colIndex,
                                           org.hsqldb.result.ResultMetaData md)
        Temporary hack. This ID should stick with the table column. Here, it will change based on user-specified column label. The int has is also being truncated into a short.
        Parameters:
        colIndex - int
        md - ResultMetaData
        Returns:
        short
      • hexCharsToOctalOctets

        public static java.lang.String hexCharsToOctalOctets​(java.lang.String hexChars)
        Parameters:
        hexChars - A String containing an EVEN number of hex characters.
        Returns:
        String
      • main

        public static void main​(java.lang.String[] sa)