edu.internet2.middleware.grouper.hibernate
Class HibUtilsMapping

java.lang.Object
  extended by edu.internet2.middleware.grouper.hibernate.HibUtilsMapping

public class HibUtilsMapping
extends Object

metadata and other methods for hibernate


Constructor Summary
HibUtilsMapping()
           
 
Method Summary
static boolean isInsert(Object object)
          see if this object would be an insert for hibernate, or if it would be an update.
static Serializable primaryKeyCurrentValue(Object object)
          get the hibernate primary key property value (current value)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibUtilsMapping

public HibUtilsMapping()
Method Detail

isInsert

public static boolean isInsert(Object object)
see if this object would be an insert for hibernate, or if it would be an update. Note this only works if we dont have assigned keys...

Parameters:
object -
Returns:
true if insert

primaryKeyCurrentValue

public static Serializable primaryKeyCurrentValue(Object object)
get the hibernate primary key property value (current value)

Parameters:
object -
Returns:
the value