Class InstanceClassConverter

  • All Implemented Interfaces:
    java.io.Serializable, CoreConverter<DatabaseMapping,​Session>, Converter

    public class InstanceClassConverter
    extends java.lang.Object
    implements Converter

    Purpose: A converter used in conjunction with sdoJava:instanceClass The customClass on the converter must be set and that class must have a Constructor that takes a String argument and a toString method. Used when the javaClass open content property is set.

    See Also:
    Serialized Form
    • Constructor Detail

      • InstanceClassConverter

        public InstanceClassConverter()
    • 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
      • setCustomClass

        public void setCustomClass​(java.lang.Class customClass)
      • getCustomClass

        public java.lang.Class getCustomClass()