|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.util.AgConvert
This class provides static conversion routines between various java types.
Method Summary | |
static boolean |
equals(Object v1,
Object v2)
Compare two values by converting one to the type of the other. |
static boolean |
equals(Object v1,
Object v2,
Locale locale)
Compare two values by converting one to the type of the other. |
static boolean |
equals(Object v1,
Object v2,
Locale locale,
String zoneStr)
Compare two values by converting one to the type of the other. |
static BigDecimal |
toBigDecimal(Object v)
Convert the object to a BigDecimal using the default locale |
static BigDecimal |
toBigDecimal(Object v,
Locale locale)
Convert the object to a BigDecimal using the specified locale |
static Blob |
toBlob(Object v)
Convert the object to a Blob using the default locale. |
static Blob |
toBlob(Object v,
Locale locale)
Convert the object to a Blob using the specified locale. |
static Boolean |
toBoolean(Object v)
Convert the object to a Boolean using the default locale |
static Boolean |
toBoolean(Object v,
Locale locale)
Convert the object to a Boolean using the specified locale. |
static Byte |
toByte(Object v)
Convert the object to a Byte using the default locale. |
static Byte |
toByte(Object v,
Locale locale)
Convert the object to a Byte using the specified locale. |
static byte[] |
toByteArray(Object v)
Convert the object to a byte array using the default locale. |
static byte[] |
toByteArray(Object v,
Locale locale)
Convert the object to a byte array using the specified locale. |
static Character |
toChar(Object v)
Convert the object to a Character using the default locale. |
static Character |
toChar(Object v,
Locale locale)
Convert the object to a Character using the specified locale. |
static Object |
toClassInstance(Object o,
Class c)
Returns Object of desired class. |
static Object |
toClassInstance(Object o,
Class c,
Locale locale)
Returns Object of desired class using the specified locale. |
static Object |
toClassInstance(Object o,
Class c,
Locale locale,
String zoneStr)
Returns Object of desired class using the specified locale and timezone. |
static Clob |
toClob(Object v)
Convert the object to a Clob using the default locale. |
static Clob |
toClob(Object v,
Locale locale)
Convert the object to a Clob using the specified locale. |
static Double |
toDouble(Object v)
Convert the object to a Double using the default locale |
static Double |
toDouble(Object v,
Locale locale)
Convert the object to a Double using the specified locale |
static Float |
toFloat(Object v)
Convert the object to a Float using the default locale |
static Float |
toFloat(Object v,
Locale locale)
Convert the object to a Double using the specified locale |
static Integer |
toInteger(Object v)
Convert the object to a Integer using the default locale |
static Integer |
toInteger(Object v,
Locale locale)
Convert the object to a Integer using the specified locale |
static Long |
toLong(Object v)
Convert the object to a Integer using the default locale |
static Long |
toLong(Object v,
Locale locale)
Convert the object to a Integer using the specified locale |
static boolean |
toPrimitiveBoolean(Object v)
Converts the object to a primitive boolean. |
static byte |
toPrimitiveByte(Object v)
Converts the object to a primitive byte. |
static char |
toPrimitiveCharacter(Object v)
Converts the object to a primitive char. |
static double |
toPrimitiveDouble(Object v)
Converts the object to a primitive double. |
static float |
toPrimitiveFloat(Object v)
Converts the object to a primitive float. |
static int |
toPrimitiveInteger(Object v)
Converts the object to a primitive integer. |
static long |
toPrimitiveLong(Object v)
Converts the object to a primitive long. |
static Short |
toShort(Object v)
Convert the object to a Short using the default locale. |
static Short |
toShort(Object v,
Locale locale)
Convert the object to a Short using the specified locale. |
static Date |
toSqlDate(Object v)
Convert the object to a java.sql.Date using the default locale. |
static Date |
toSqlDate(Object v,
Locale locale)
Convert the object to a java.sql.Date using the specified locale. |
static Date |
toSqlDate(Object v,
Locale locale,
String zoneStr)
Convert the object to a java.sql.Date using the specified locale and timezone. |
static String |
toString(Object v)
Convert the object to a String using the default locale |
static String |
toString(Object v,
Locale locale)
Convert the object to a String using the specified locale |
static String |
toString(Object v,
Locale locale,
String zoneStr)
Convert the object to a String using the specified locale and timezone |
static Time |
toTime(Object v)
Convert the object to a java.sql.Time using the default locale. |
static Time |
toTime(Object v,
Locale locale)
Convert the object to a java.sql.Time using the specified locale. |
static Time |
toTime(Object v,
Locale locale,
String zoneStr)
Convert the object to a java.sql.Time using the specified locale and timezone. |
static Timestamp |
toTimestamp(Object v)
Convert the object to a java.sql.Timestamp using the default locale. |
static Timestamp |
toTimestamp(Object v,
Locale locale)
Convert the object to a java.sql.Timestamp using the specified locale. |
static Timestamp |
toTimestamp(Object v,
Locale locale,
String zoneStr)
Convert the object to a java.sql.Timestamp using the specified locale and timezone. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static String toString(Object v)
public static String toString(Object v, Locale locale)
public static String toString(Object v, Locale locale, String zoneStr)
public static Integer toInteger(Object v)
public static Integer toInteger(Object v, Locale locale)
public static Short toShort(Object v)
public static Short toShort(Object v, Locale locale)
public static Byte toByte(Object v)
public static Byte toByte(Object v, Locale locale)
public static Character toChar(Object v)
public static Character toChar(Object v, Locale locale)
public static Long toLong(Object v)
public static Long toLong(Object v, Locale locale)
public static Double toDouble(Object v)
public static Double toDouble(Object v, Locale locale)
public static Float toFloat(Object v)
public static Float toFloat(Object v, Locale locale)
public static BigDecimal toBigDecimal(Object v)
public static BigDecimal toBigDecimal(Object v, Locale locale)
public static Boolean toBoolean(Object v)
public static Boolean toBoolean(Object v, Locale locale)
public static Blob toBlob(Object v)
public static Blob toBlob(Object v, Locale locale)
public static Clob toClob(Object v)
public static Clob toClob(Object v, Locale locale)
public static Date toSqlDate(Object v)
public static Date toSqlDate(Object v, Locale locale)
public static Date toSqlDate(Object v, Locale locale, String zoneStr)
public static Time toTime(Object v)
public static Time toTime(Object v, Locale locale)
public static Time toTime(Object v, Locale locale, String zoneStr)
public static Timestamp toTimestamp(Object v)
public static Timestamp toTimestamp(Object v, Locale locale)
public static Timestamp toTimestamp(Object v, Locale locale, String zoneStr)
public static byte[] toByteArray(Object v)
public static byte[] toByteArray(Object v, Locale locale)
public static Object toClassInstance(Object o, Class c)
public static Object toClassInstance(Object o, Class c, Locale locale)
public static Object toClassInstance(Object o, Class c, Locale locale, String zoneStr)
public static int toPrimitiveInteger(Object v)
public static boolean toPrimitiveBoolean(Object v)
public static double toPrimitiveDouble(Object v)
public static long toPrimitiveLong(Object v)
public static float toPrimitiveFloat(Object v)
public static byte toPrimitiveByte(Object v)
public static char toPrimitiveCharacter(Object v)
public static boolean equals(Object v1, Object v2)
public static boolean equals(Object v1, Object v2, Locale locale)
public static boolean equals(Object v1, Object v2, Locale locale, String zoneStr)
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |