|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.util.serial.HibernateUtil
public class HibernateUtil
Constructor Summary | |
---|---|
HibernateUtil()
|
Method Summary | ||
---|---|---|
static
|
safeCollection(Collection<T> collection)
If the pass-in List is a Hibernate type, replace it with a java type. |
|
static
|
safeList(List<T> list)
If the pass-in List is a Hibernate type, replace it with a java type. |
|
static
|
safeMap(Map<K,V> map)
If the pass-in Map is a Hibernate type, replace it with a java type. |
|
static
|
safeSet(Set<T> set)
If the pass-in List is a Hibernate type, replace it with a java type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateUtil()
Method Detail |
---|
public static <T> List<T> safeList(List<T> list)
T
- list
-
public static <T> Set<T> safeSet(Set<T> set)
T
- set
-
public static <T> Collection<T> safeCollection(Collection<T> collection)
T
- collection
-
public static <K,V> Map<K,V> safeMap(Map<K,V> map)
K
- V
- map
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |