public class DataTypeUtil extends Object
| Constructor and Description |
|---|
DataTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
determineDataType(Class<?> attributeClass) |
static String |
determineFieldDataType(Class<? extends BusinessObject> businessObjectClass,
String attributeName) |
static boolean |
isBooleanable(Class clazz)
Determines if the given class is enough like a boolean, to index it as a String "Y" or "N"
|
static boolean |
isDateLike(Class clazz)
Determines if the given class is enough like a date to store values of it as a SearchableAttributeDateTimeValue
|
static boolean |
isDecimaltastic(Class clazz)
Determines if the given class is enough like a Float to store values of it as a SearchableAttributeFloatValue
|
static boolean |
isIntsy(Class clazz)
Determines if the given class is enough like a "long" to store values of it as a SearchableAttributeLongValue
|
static boolean |
isStringy(Class clazz)
Determines if the given Class is a String
|
public DataTypeUtil()
public static String determineFieldDataType(Class<? extends BusinessObject> businessObjectClass, String attributeName)
public static String determineDataType(Class<?> attributeClass)
public static boolean isStringy(Class clazz)
clazz - the class to check for Stringinesspublic static boolean isDateLike(Class clazz)
clazz - the class to determine the type ofpublic static boolean isDecimaltastic(Class clazz)
clazz - the class to determine of the type ofpublic static boolean isIntsy(Class clazz)
clazz - the class to determine the type ofpublic static boolean isBooleanable(Class clazz)
clazz - the class to determine the type ofCopyright © 2005–2016 The Kuali Foundation. All rights reserved.