ch.elca.el4j.services.persistence.generic.dao
Class IdentityFixerCollectionField

java.lang.Object
  extended by ch.elca.el4j.services.persistence.generic.dao.IdentityFixerCollectionField

public class IdentityFixerCollectionField
extends Object

This class is container for a collection containing object, holding both the instance and the field giving access to the collection. This container is used in the AbstractIdentityFixer to remember which collections has to be replaced in the 2-way merging.

Author:
Andreas Rueedlinger (ARR)
File-location:
IdentityFixerCollectionField
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Constructor Summary
IdentityFixerCollectionField(Object instance, Field field)
          Constructs a new collection field.
 
Method Summary
 boolean equals(Object o)
          
 Field getField()
           
 Object getInstance()
           
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityFixerCollectionField

public IdentityFixerCollectionField(Object instance,
                                    Field field)
Constructs a new collection field.

Parameters:
instance - the instance containing the collection.
field - the field containing the collection.
Method Detail

getInstance

public Object getInstance()
Returns:
the contained instance.

getField

public Field getField()
Returns:
the contained field.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object


Copyright © 2005-2011 ELCA. All Rights Reserved.