public abstract class HibernateUtils
extends java.lang.Object
unloaded
entities and
nulled collections as well as determining the index of certain properties in
a dehydrated Hibernate array.Constructor and Description |
---|
HibernateUtils() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Collection |
copy(java.util.Collection c) |
protected static java.util.Map |
copy(java.util.Map m) |
static int |
detailsIndex(java.lang.String[] propertyNames) |
static void |
fixNulledOrFilteredCollections(IObject entity,
IObject target,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.SessionImplementor source)
loads collections which have been filtered or nulled by the user
|
static Details |
getDetails(java.lang.Object[] state,
java.lang.String[] names) |
static boolean |
idEqual(IObject arg1,
IObject arg2)
returns true under the following circumstances:
both arguments are null, or
both arguments are identical (==), or
both arguments have the same id value(equals)
|
static int |
index(java.lang.String str,
java.lang.String[] propertyNames) |
static boolean |
isUnloaded(java.lang.Object original) |
static java.lang.Long |
nullSafeGroupId(IObject iobject)
|
static java.lang.Long |
nullSafeOwnerId(IObject iobject)
|
static boolean |
onlyPermissionsChanged(Details new_d,
Details old_d) |
public static boolean isUnloaded(java.lang.Object original)
public static java.lang.Long nullSafeOwnerId(IObject iobject)
owner
of this entity, or null
if: (1) the object is null, (2) the Details
is null, (3) the
owner is null.iobject
- Can be null.public static java.lang.Long nullSafeGroupId(IObject iobject)
group
of this entity,
or null if: (1) the object is null, (2) the Details
is null, (3) the
group is null.iobject
- Can be null.public static void fixNulledOrFilteredCollections(IObject entity, IObject target, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.SessionImplementor source)
public static boolean onlyPermissionsChanged(Details new_d, Details old_d)
new_d
- the new detailsold_d
- the old detailspublic static boolean idEqual(IObject arg1, IObject arg2)
public static Details getDetails(java.lang.Object[] state, java.lang.String[] names)
public static int detailsIndex(java.lang.String[] propertyNames)
public static int index(java.lang.String str, java.lang.String[] propertyNames)
protected static java.util.Map copy(java.util.Map m)
protected static java.util.Collection copy(java.util.Collection c)
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.