gnu.caf.util
Class DataUtil

java.lang.Object
  extended by gnu.caf.util.DataUtil

public class DataUtil
extends java.lang.Object

Object를 특정Class또는 type으로 리턴하는 유틸 클래스.

Since:
1.0
Author:
이호성

Field Summary
static int typeDouble
           
static int typeFloat
           
static int typeInt
           
static int typeString
           
 
Constructor Summary
DataUtil()
           
 
Method Summary
static int compare(java.lang.Object preObj, java.lang.Object nextObj, int sortType)
           
static int compareColumn(java.lang.Object[] preObjRow, java.lang.Object[] nextObjRow, int colIndex, int sortType)
           
static boolean getBoolean(java.lang.Object obj)
           
static byte[] getByteArray(java.lang.Object obj)
           
static java.lang.String getClassName(java.lang.Object obj)
           
static java.lang.String getDateString(java.lang.Object obj, java.lang.String dateFormat)
           
static double getDouble(java.lang.Object obj)
           
static float getFloat(java.lang.Object obj)
           
static int getInt(java.lang.Object obj)
           
static java.lang.String getString(java.lang.Object obj)
           
static java.lang.String[] getStringArray(java.lang.Object obj)
           
static void main(java.lang.String[] argvs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeString

public static final int typeString
See Also:
Constant Field Values

typeInt

public static final int typeInt
See Also:
Constant Field Values

typeFloat

public static final int typeFloat
See Also:
Constant Field Values

typeDouble

public static final int typeDouble
See Also:
Constant Field Values
Constructor Detail

DataUtil

public DataUtil()
Method Detail

getClassName

public static java.lang.String getClassName(java.lang.Object obj)

getString

public static java.lang.String getString(java.lang.Object obj)

main

public static void main(java.lang.String[] argvs)

getInt

public static int getInt(java.lang.Object obj)

getFloat

public static float getFloat(java.lang.Object obj)

getDouble

public static double getDouble(java.lang.Object obj)

getBoolean

public static boolean getBoolean(java.lang.Object obj)

compare

public static int compare(java.lang.Object preObj,
                          java.lang.Object nextObj,
                          int sortType)

compareColumn

public static int compareColumn(java.lang.Object[] preObjRow,
                                java.lang.Object[] nextObjRow,
                                int colIndex,
                                int sortType)

getByteArray

public static byte[] getByteArray(java.lang.Object obj)

getStringArray

public static java.lang.String[] getStringArray(java.lang.Object obj)

getDateString

public static java.lang.String getDateString(java.lang.Object obj,
                                             java.lang.String dateFormat)


Copyright © 2003 All Rights Reserved.