Java SQL Type getSQLTypeRadix(int sqlType)

Here you can find the source of getSQLTypeRadix(int sqlType)

Description

get SQL Type Radix

License

Open Source License

Declaration

public static int getSQLTypeRadix(int sqlType) 

Method Source Code

//package com.java2s;

public class Main {
    public static int getSQLTypeRadix(int sqlType) {
        // returns the radix for the given type
        int result = -1; // default returned if not applicable
        switch (sqlType) {
        case java.sql.Types.REAL:
        case java.sql.Types.DOUBLE: {
            result = 10;//from   ww  w  .  j a  v  a2  s .  c o  m
            break;
        }
        default:
            result = -1;
        }
        return result;
    }
}

Related

  1. getSQLTypeName(int sqlType)
  2. getSQLTypeName(int sqlType)
  3. getSqlTypeName(int type)
  4. getSQLTypeName(Integer sqltypecode)
  5. getSQLTypePrecision(int sqlType)
  6. getSqlValue(Object o)
  7. getStringFormat(int colType)
  8. getTableTypes(DatabaseMetaData dbmd)
  9. getTinyIntTypeString(Connection conn)