
public abstract class TypeCastingUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
TypeCastingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getParamValue(Map<?,?> dataMap,
String key,
Field field) |
static Object |
getParamValue(Map<?,?> dataMap,
String key,
String type) |
static BigDecimal |
toBigDecimal(Object fromObject)
ÀÌ ¸Þ¼Òµå´Â ÆÄ¶ó¹ÌÅÍ·Î ¹ÞÀº fromObject¸¦ BigDecimal ŸÀÔÀ¸·Î º¯È¯ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
static Long |
toLong(Object fromObject)
ÀÌ ¸Þ¼Òµå´Â ÆÄ¶ó¹ÌÅÍ·Î ¹ÞÀº fromObject¸¦ Long ŸÀÔÀ¸·Î º¯È¯ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
static String |
toString(Object fromObject)
ÀÌ ¸Þ¼Òµå´Â ÆÄ¶ó¹ÌÅÍ·Î ¹ÞÀº fromObject¸¦ StringŸÀÔÀ¸·Î º¯È¯ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
static Timestamp |
toTimestamp(Object fromObject)
ÀÌ ¸Þ¼Òµå´Â ÆÄ¶ó¹ÌÅÍ·Î ¹ÞÀº fromObject¸¦ Timestamp ŸÀÔÀ¸·Î º¯È¯ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
static Timestamp |
toTimestamp(Object fromObject,
String patten)
ÀÌ ¸Þ¼Òµå´Â ÆÄ¶ó¹ÌÅÍ·Î ¹ÞÀº fromObject¸¦ Timestamp ŸÀÔÀ¸·Î º¯È¯ÇÏ´Â ¸Þ¼ÒµåÀÌ´Ù.
|
public static String toString(Object fromObject)
fromObject - º¯È¯ÇÏ·Á´Â Objectpublic static BigDecimal toBigDecimal(Object fromObject)
fromObject - º¯È¯ÇÏ·Á´Â Objectpublic static Timestamp toTimestamp(Object fromObject, String patten)
fromObject - º¯È¯ÇÏ·Á´Â Objectpublic static Timestamp toTimestamp(Object fromObject)
fromObject - º¯È¯ÇÏ·Á´Â Objectpublic static Long toLong(Object fromObject)
fromObject - º¯È¯ÇÏ·Á´Â ObjectCopyright © 2013–2020 POSCO ICT. All rights reserved.