|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trg.search.InternalUtil
public class InternalUtil
Utilities for TRG Generic DAO Search
| Constructor Summary | |
|---|---|
InternalUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
convertIfNeeded(java.lang.Object value,
java.lang.Class<?> type)
Return an instance of the given class type that has the given value. |
static java.lang.String |
paramDisplayString(java.lang.Object val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalUtil()
| Method Detail |
|---|
public static java.lang.Object convertIfNeeded(java.lang.Object value,
java.lang.Class<?> type)
throws java.lang.ClassCastException
Return an instance of the given class type that has the given value. For
example, if type is Long and Integer type with
the value 13 is passed in, a new instance of Long will be
returned with the value 13.
If the value is already of the correct type, it is simply returned.
java.lang.ClassCastException - if the value cannot be converted to the given type.public static java.lang.String paramDisplayString(java.lang.Object val)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||