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