Here you can find the source of getOdaTypeName(int odaTypeCode)
Parameter | Description |
---|---|
odaTypeCode | a parameter |
public static String getOdaTypeName(int odaTypeCode)
//package com.java2s; //License from project: Apache License import java.sql.Types; public class Main { /**/*from w ww. ja v a 2 s .c o m*/ * Returns oda type name * * @param odaTypeCode * @return */ public static String getOdaTypeName(int odaTypeCode) { switch (odaTypeCode) { case Types.INTEGER: return "INT"; //$NON-NLS-1$ case Types.DOUBLE: case Types.FLOAT: return "DOUBLE"; //$NON-NLS-1$ case Types.VARCHAR: return "STRING"; //$NON-NLS-1$ case Types.DATE: return "DATE"; //$NON-NLS-1$ case Types.TIME: return "TIME"; //$NON-NLS-1$ case Types.TIMESTAMP: return "TIMESTAMP"; //$NON-NLS-1$ case Types.NUMERIC: case Types.DECIMAL: return "BIGDECIMAL"; //$NON-NLS-1$ case Types.BLOB: return "BLOB"; //$NON-NLS-1$ case Types.CLOB: return "CLOB"; //$NON-NLS-1$ case Types.BOOLEAN: return "BOOLEAN"; //$NON-NLS-1$ default: return "STRING"; //$NON-NLS-1$ } } }