Java SQL Type isScaleRequired(int type)

Here you can find the source of isScaleRequired(int type)

Description

is Scale Required

License

Open Source License

Declaration

public static boolean isScaleRequired(int type) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isScaleRequired(int type) {
        switch (type) {
        case java.sql.Types.DECIMAL:
        case java.sql.Types.NUMERIC:
            return true;
        default://from  w w  w .  j a  va 2 s.c  o  m
            return false;
        }
    }
}

Related

  1. isNumericType(int type)
  2. isPlainJdbcType(int type)
  3. isPrecisionRequired(int jdbcType)
  4. isPrimitive(Class type)
  5. isPrimitiveCollection(Method m)
  6. isSerializationClass(Class clazz)
  7. isSimpleType(Class type)
  8. isSqlTypeBinayBased(int javaSqlType)
  9. isSqlTypeSupported(int sqlType)