Class EntityListUpdator<P extends TopiaEntity,E extends TopiaEntity>

java.lang.Object
org.nuiton.topia.persistence.legacy.EntityListUpdator<P,E>
Type Parameters:
P - type of parent of childs
E - type of child
All Implemented Interfaces:
ListUpdator<P,E>

public class EntityListUpdator<P extends TopiaEntity,E extends TopiaEntity> extends Object implements ListUpdator<P,E>
A implementation of ListUpdator for TopiaEntity type. Some factory methods are defined to simplify the generic cast, prefer used them instead of the (protected) constructor.
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • propertyName

      protected String propertyName
      name of the field containing the childs
    • descriptor

      protected PropertyDescriptor descriptor
      descriptor of the filed containing the childs
    • getMethod

      protected Method getMethod
    • addMethod

      protected Method addMethod
    • removeMethod

      protected Method removeMethod
    • removeAllMethod

      protected Method removeAllMethod
    • sizeMethod

      protected Method sizeMethod
    • emptyMethod

      protected Method emptyMethod
  • Constructor Details

    • EntityListUpdator

      protected EntityListUpdator(Class<P> parentClass, Class<E> childClass, String propertyName)
  • Method Details