|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.persist.ClassMolderHelper
public final class ClassMolderHelper
Utility class that provides (mostly) static methods in relation to the functions
required by a ClassMolder.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
Logger used for logging. |
| Method Summary | |
|---|---|
static ArrayList |
extractIdentityList(TransactionContext tx,
ClassMolder molder,
Object col)
Return all the object identity of a Collection of object of the same type. |
static Collection |
getAddedValuesList(TransactionContext tx,
ArrayList orgIds,
Object collection,
ClassMolder ch)
It is assumed the returned collection will not be modified. |
static FieldMapping[] |
getFullFields(ClassMapping clsMap)
Get all the field mapping, including all the field in extended class, but id fields. |
static FieldMapping[] |
getIdFields(ClassMapping clsMap)
Get the all the id fields of a class If the class, C, is a dependent class, then the depended class', D, id fields will be appended at the back and returned. |
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 Collection |
getRemovedIdsList(TransactionContext tx,
ArrayList orgIds,
Object collection,
ClassMolder ch)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Method Detail |
|---|
public static boolean isEquals(Object o1,
Object o2)
o1 - First object instanceo2 - Second object instance
public static boolean isEquals(Collection c1,
Collection c2)
c1 - collection one.c2 - collection two.
public static ArrayList extractIdentityList(TransactionContext tx,
ClassMolder molder,
Object col)
tx - the transaction contextmolder - class molder of the type of the objectscol - a Collection or Vector containing
public static Iterator getIterator(Object object)
object - - a Collection instance.
public static FieldMapping[] getFullFields(ClassMapping clsMap)
throws MappingException
clsMap - ClassMapping instance.
MappingException
public static FieldMapping[] getIdFields(ClassMapping clsMap)
throws MappingException
MappingException
public static Collection getAddedValuesList(TransactionContext tx,
ArrayList orgIds,
Object collection,
ClassMolder ch)
public static Collection getRemovedIdsList(TransactionContext tx,
ArrayList orgIds,
Object collection,
ClassMolder ch)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||