public static boolean isBasicType(String idType) { return isPrimitive(idType) || Arrays.asList("Boolean", "Byte", "Double", "Float", "Integer", "Long", "Short", "String").contains( idType); }
public static boolean isBasicType(String idType) { return isPrimitive(idType) || Arrays.asList("Boolean", "Byte", "Double", "Float", "Integer", "Long", "Short", "String").contains( idType); }
public static boolean isBasicType(String idType) { return isPrimitive(idType) || Arrays.asList("Boolean", "Byte", "Double", "Float", "Integer", "Long", "Short", "String").contains( idType); }
private boolean validImport(final String type) { return !Strings.isNullOrEmpty(type) && !Types.isPrimitive(type); }
private boolean validImport(final String type) { return !Strings.isNullOrEmpty(type) && !Types.isPrimitive(type); }
private boolean validImport(final String type) { return !Strings.isNullOrEmpty(type) && !Types.isPrimitive(type); }
/** * Returns the default value for a given type * * @param type * @return */ public static String getDefaultValue(String type) { final String result; if (Types.isPrimitive(type)) { if (BOOLEAN.equals(type) || Boolean.TYPE.getName().equals(type)) { result = "false"; } else { result = "0"; } } else { result = "null"; } return result; }
/** * Returns the default value for a given type * * @param type * @return */ public static String getDefaultValue(String type) { final String result; if (Types.isPrimitive(type)) { if (BOOLEAN.equals(type) || Boolean.TYPE.getName().equals(type)) { result = "false"; } else { result = "0"; } } else { result = "null"; } return result; }
private boolean validImport(final String type) { String className = Types.toSimpleName(type); // check if this class name is equal to the class to import if (className.equals(getName())) { return false; } // check if any import has the same class name for (final Import imprt : getImports()) { String importClassName = imprt.getSimpleName(); if (importClassName.equals(className)) { return false; } } return !Strings.isNullOrEmpty(type) && !Types.isPrimitive(type) && !Strings.isNullOrEmpty(Types.getPackage(type)); }
private boolean validImport(final String type) { String className = Types.toSimpleName(type); // check if this class name is equal to the class to import if (className.equals(getName())) { return false; } // check if any import has the same class name for (final Import imprt : getImports()) { String importClassName = imprt.getSimpleName(); if (importClassName.equals(className)) { return false; } } return !Strings.isNullOrEmpty(type) && !Types.isPrimitive(type) && !Strings.isNullOrEmpty(Types.getPackage(type)); }
map.put("orderClause", orderClause); map.put("resourcePath", resourcePath); map.put("idIsPrimitive", Types.isPrimitive(idType));
if (Types.isPrimitive(result))
if (Types.isPrimitive(result))
if (Types.isPrimitive(result))
if (Types.isPrimitive(result))
if (Types.isPrimitive(result))
if (Types.isPrimitive(arrayType))
if (Types.isPrimitive(arrayType))
if (Types.isPrimitive(arrayType))
if (Types.isPrimitive(arrayType))