Package io.jans.configapi.core.util
Class DataUtil
java.lang.Object
io.jans.configapi.core.util.DataUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsField(List<Field> allFields, String attribute) static List<io.jans.orm.search.filter.Filter>createFilter(List<io.jans.model.FieldFilterData> fieldFilterData, String primaryKey, io.jans.orm.PersistenceEntryManager persistenceEntryManager) static DatedecodeStringDate(String dateString, String primaryKey, io.jans.orm.PersistenceEntryManager persistenceEntryManager) static StringencodeDate(Date date, String primaryKey, io.jans.orm.PersistenceEntryManager persistenceEntryManager) static DateformatStrDate(String dateString, String datePattern) getAllFields(Class<?> type) getAllFields(List<Field> fields, Class<?> type) getFieldDataType(Class<?> clazz, List<String> fieldList) getFieldType(Class<?> clazz, List<io.jans.model.FieldFilterData> fieldFilterData) getFieldTypeMap(Class<?> clazz) static io.jans.orm.reflect.property.GettergetGetterMethod(Class<?> clazz, String name) static LocalDateTimegetIso8601Date(String dateString, String pattern) static Class<?>getPropertType(String className, String name) static Methodstatic io.jans.orm.reflect.property.SettergetSetterMethod(Class<?> clazz, String name) static Objectstatic ObjectinvokeGetterMethod(Object obj, String variableName) static ObjectinvokeMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) invokeReflectionGetter(Object obj, String variableName) static voidinvokeReflectionSetter(Object obj, String propertyName, Object variableValue) static booleanstatic booleanisKeyPresentInMap(String key, Map<String, String> map) booleanisStringField(Map<String, String> objectPropertyMap, String attribute)
-
Constructor Details
-
DataUtil
public DataUtil()
-
-
Method Details
-
getPropertType
public static Class<?> getPropertType(String className, String name) throws io.jans.orm.exception.MappingException - Throws:
io.jans.orm.exception.MappingException
-
getGetterMethod
public static io.jans.orm.reflect.property.Getter getGetterMethod(Class<?> clazz, String name) throws io.jans.orm.exception.MappingException - Throws:
io.jans.orm.exception.MappingException
-
getSetterMethod
public static io.jans.orm.reflect.property.Setter getSetterMethod(Class<?> clazz, String name) throws io.jans.orm.exception.MappingException - Throws:
io.jans.orm.exception.MappingException
-
getValue
public static Object getValue(Object object, String property) throws io.jans.orm.exception.MappingException - Throws:
io.jans.orm.exception.MappingException
-
getSetter
- Throws:
IntrospectionException
-
invokeMethod
public static Object invokeMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException -
invokeReflectionGetter
-
invokeReflectionSetter
-
containsField
-
isStringField
-
getAllFields
-
getAllFields
-
getFieldTypeMap
-
invokeGetterMethod
-
isKeyPresentInMap
-
isAttributeInExclusion
-
getFieldDataType
-
getFieldType
-
formatStrDate
-
createFilter
-
encodeDate
-
decodeStringDate
-
getIso8601Date
-