org.kuali.rice.core.util
Class OrmUtils
java.lang.Object
org.kuali.rice.core.util.OrmUtils
public class OrmUtils
- extends Object
A utility for common ORM related functions.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
cache
private static Map<String,Boolean> cache
OrmUtils
public OrmUtils()
populateAutoIncValue
public static void populateAutoIncValue(Object entity,
Long value)
populateAutoIncValue
public static void populateAutoIncValue(Object entity,
javax.persistence.EntityManager manager)
getNextAutoIncValue
public static Long getNextAutoIncValue(Class entityClass,
javax.persistence.EntityManager manager)
getNextAutoIncValue
private static Long getNextAutoIncValue(Sequence sequence,
javax.persistence.EntityManager manager)
reattach
public static void reattach(Object attached,
Object detached)
merge
public static void merge(javax.persistence.EntityManager manager,
Object entity)
isJpaAnnotated
public static boolean isJpaAnnotated(Class<?> clazz)
isJpaEnabled
public static boolean isJpaEnabled()
isJpaEnabled
public static boolean isJpaEnabled(String prefix)
getPrivateField
private static Field getPrivateField(Class clazz,
String fieldName)
throws NoSuchFieldException
- Throws:
NoSuchFieldException
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.