public final class ClassMolderHelper extends Object
ClassMolder
.Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG
Logger used for logging.
|
Modifier and Type | Method and Description |
---|---|
static Collection<Object> |
getAddedEntitiesList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
It is assumed the returned collection will not be modified.
|
static List<Identity> |
getIdsList(TransactionContext tx,
ClassMolder molder,
Object col)
Return all the object identity of a Collection of object of the same
type.
|
static Iterator |
getIterator(Object object)
Return the iterator on values of the specified Collection
or, return the iterator on values of the specified Map.
|
static List<Identity> |
getRemovedIdsList(TransactionContext tx,
List<Identity> orgIds,
Object collection,
ClassMolder molder)
It is assumed the returned collection will not be modified.
|
static boolean |
isEquals(Collection c1,
Collection c2)
Utility method to compare collections for equality.
|
static boolean |
isEquals(Object o1,
Object o2)
A utility method which compare object.
|
public static boolean isEquals(Object o1, Object o2)
o1
- First object instanceo2
- Second object instancepublic static boolean isEquals(Collection c1, Collection c2)
c1
- collection one.c2
- collection two.public static List<Identity> getIdsList(TransactionContext tx, ClassMolder molder, Object col)
tx
- the transaction contextmolder
- class molder of the type of the objectscol
- a Collection or Vector containingpublic static Iterator getIterator(Object object)
object
- - a Collection instance.public static Collection<Object> getAddedEntitiesList(TransactionContext tx, List<Identity> orgIds, Object collection, ClassMolder molder)
public static List<Identity> getRemovedIdsList(TransactionContext tx, List<Identity> orgIds, Object collection, ClassMolder molder)
Copyright © 2018. All rights reserved.