public class EgovReflectionSupport<T> extends Object
개정이력(Modification Information)
수정일 수정자 수정내용
------- -------- ---------------------------
2012.07.20 실행환경개발팀 최초 생성
| Constructor and Description |
|---|
EgovReflectionSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateGetterMethodMap(String[] names,
T item)
VO의 Field명과 Getter Method들을 비교하여 Map에 Put 한다.
|
T |
generateObject(Class<?> type,
List<String> tokens,
String[] names) |
void |
generateSetterMethodMap(Class<?> type,
String[] names)
VO의 Field명과 Setter Method들을 비교하여 Map에 Put 한다.
|
void |
getFieldType(Class<?> type,
String[] names)
VO의 field의 타입 get
|
HashMap<String,Method> |
getMethodMap()
VO에 들어있는 Method 목록 get
|
String[] |
getSqlTypeArray(String[] params,
Object item)
sqlType을 배열 형식으로 받는 메소드
|
Object |
invokeGettterMethod(T item,
String names)
item의 field 정보를 가져오기 위해 getter를 invoke
|
Object |
invokeGettterMethod(T item,
String param,
Map<String,Method> mapMethod)
item의 field 정보를 가져오기 위해 getter를 invoke
|
public void generateSetterMethodMap(Class<?> type, String[] names) throws Exception
Exceptionpublic void generateGetterMethodMap(String[] names, T item) throws Exception
Exceptionpublic Object invokeGettterMethod(T item, String names)
item - 정보를 담고 있는 VOnames - VO의 field namepublic Object invokeGettterMethod(T item, String param, Map<String,Method> mapMethod)
item - item 정보를 담고 있는 VOparam - mapMethod - VO의 getter 메소드를 갖고 있는 Mappublic void getFieldType(Class<?> type, String[] names)
type - VO의 타입names - VO field namesCopyright © 2015. All rights reserved.