org.kuali.rice.core.framework.persistence.jpa
Class OrmUtils

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.jpa.OrmUtils

public final class OrmUtils
extends Object

A utility for common ORM related functions.

Author:
Kuali Rice Team (rice.collab@kuali.org)

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 detached, Object attached)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 detached,
                            Object attached)

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 © 2005-2012 The Kuali Foundation. All Rights Reserved.