org.kuali.rice.core.util
Class OrmUtils

java.lang.Object
  extended by 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)

Constructor Summary
OrmUtils()
           
 
Method Summary
static Long getNextAutoIncValue(Class entityClass, javax.persistence.EntityManager manager)
           
static boolean isJpaAnnotated(Class<?> clazz)
           
static boolean isJpaEnabled()
           
static boolean isJpaEnabled(String prefix)
           
static void merge(javax.persistence.EntityManager manager, Object entity)
           
static void populateAutoIncValue(Object entity, javax.persistence.EntityManager manager)
           
static void populateAutoIncValue(Object entity, Long value)
           
static void reattach(Object attached, Object detached)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrmUtils

public OrmUtils()
Method Detail

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)

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)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.