Java tutorial
//package com.java2s; import java.util.HashSet; public class Main { private static final HashSet<String> DB_PRIMITIVE_TYPES = new HashSet<String>(14); public static boolean isDbPrimitiveType(Class<?> fieldType) { return DB_PRIMITIVE_TYPES.contains(fieldType.getCanonicalName()); } }