Class XMLListConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convertDataValueToObjectValue​(java.lang.Object dataValue, Session session)
      PUBLIC: Convert the databases' data representation of the value to the object's representation.
      java.lang.Object convertObjectValueToDataValue​(java.lang.Object objectValue, Session session)
      PUBLIC: Convert the object's representation of the value to the databases' data representation.
      java.lang.Class getObjectClass()
      Get the Class of the elements of this collection's "sub-collection".
      java.lang.String getObjectClassName()
      Get the Class name of the elements of this collection's "sub-collection".
      void initialize​(DatabaseMapping mapping, Session session)
      PUBLIC: Allow for any initialization.
      boolean isMutable()
      PUBLIC: If the converter converts the value to a mutable value, i.e.
      void setObjectClass​(java.lang.Class aClass)
      Set the Class of the elements of this collection's "sub-collection".
      void setObjectClassName​(java.lang.String aClassName)
      Set the Class name of the elements of this collection's "sub-collection".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLListConverter

        public XMLListConverter()
    • Method Detail

      • isMutable

        public boolean isMutable()
        Description copied from interface: Converter
        PUBLIC: If the converter converts the value to a mutable value, i.e. a value that can have its' parts changed without being replaced, then it must return true. If the value is not mutable, cannot be changed without replacing the whole value then false must be returned. This is used within the UnitOfWork to determine how to clone.
        Specified by:
        isMutable in interface Converter
      • getObjectClassName

        public java.lang.String getObjectClassName()
        Get the Class name of the elements of this collection's "sub-collection". Only applicable for DirectCollections of Lists (for example, for an ArrayList<ArrayList<Double>>, FieldSubElementClassName would be "java.lang.Double").
        Returns:
        String the name of the Class of the elements of this collection's "sub-collection"
      • setObjectClassName

        public void setObjectClassName​(java.lang.String aClassName)
        Set the Class name of the elements of this collection's "sub-collection". Only applicable for DirectCollections of Lists (for example, for an ArrayList<ArrayList<Double>>, FieldSubElementClassName would be "java.lang.Double").
        Parameters:
        aClassName - the name of the Class of the elements of this collection's "sub-collection"
      • getObjectClass

        public java.lang.Class getObjectClass()
        Get the Class of the elements of this collection's "sub-collection". Only applicable for DirectCollections of Lists (for example, for an ArrayList<ArrayList<Double>>, FieldSubElementClass would be java.lang.Double.class).
        Returns:
        Class the Class of the elements of this collection's "sub-collection"
      • setObjectClass

        public void setObjectClass​(java.lang.Class aClass)
        Set the Class of the elements of this collection's "sub-collection". Only applicable for DirectCollections of Lists (for example, for an ArrayList<ArrayList<Double>>, FieldSubElementClass would be java.lang.Double.class).
        Parameters:
        aClass - the Class of the elements of this collection's "sub-collection"