Class AbstractColumnMapping

    • Constructor Detail

      • AbstractColumnMapping

        public AbstractColumnMapping()
        Default constructor.
    • Method Detail

      • cascadePerformRemoveIfRequired

        public void cascadePerformRemoveIfRequired​(java.lang.Object object,
                                                   org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
                                                   java.util.Map visitedObjects)
        INTERNAL: Cascade perform delete through mappings that require the cascade.
        Specified by:
        cascadePerformRemoveIfRequired in class DatabaseMapping
      • cascadeRegisterNewIfRequired

        public void cascadeRegisterNewIfRequired​(java.lang.Object object,
                                                 org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
                                                 java.util.Map visitedObjects)
        INTERNAL: Cascade registerNew for Create through mappings that require the cascade.
        Specified by:
        cascadeRegisterNewIfRequired in class DatabaseMapping
      • clone

        public java.lang.Object clone()
        INTERNAL: The mapping clones itself to create deep copy.
        Overrides:
        clone in class DatabaseMapping
      • convertClassNamesToClasses

        public void convertClassNamesToClasses​(java.lang.ClassLoader classLoader)
        INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings This method is implemented by subclasses as necessary.
        Overrides:
        convertClassNamesToClasses in class DatabaseMapping
      • fixObjectReferences

        public void fixObjectReferences​(java.lang.Object object,
                                        java.util.Map objectDescriptors,
                                        java.util.Map processedObjects,
                                        ObjectLevelReadQuery query,
                                        DistributedSession session)
        INTERNAL: An object has been serialized from the server to the client. Replace the transient attributes of the remote value holders with client-side objects.
        Specified by:
        fixObjectReferences in class DatabaseMapping
      • getConverter

        public Converter getConverter()
        PUBLIC: Return the converter on the mapping. A converter can be used to convert between the object's value and database value of the attribute.
      • getField

        public org.eclipse.persistence.internal.helper.DatabaseField getField()
        INTERNAL: Returns the field which this mapping represents.
        Overrides:
        getField in class DatabaseMapping
      • getFieldValue

        public abstract java.lang.Object getFieldValue​(java.lang.Object objectValue,
                                                       org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Convert the object (attribute or property) value to a field value.
      • getObjectValue

        public abstract java.lang.Object getObjectValue​(java.lang.Object fieldValue,
                                                        Session session)
        INTERNAL: Allows for subclasses to convert the the attribute or property value.
      • hasConverter

        public boolean hasConverter()
        Indicates if the mapping has a converter set on it.
        Returns:
        true if there is a converter set on the mapping, false otherwise.
      • iterate

        public void iterate​(org.eclipse.persistence.internal.descriptors.DescriptorIterator iterator)
        INTERNAL: Iterate on the appropriate attribute.
        Specified by:
        iterate in class DatabaseMapping
      • setConverter

        public void setConverter​(Converter converter)
        PUBLIC: Set the converter on the mapping. A converter can be used to convert between the object's value and database value of the attribute.
      • setConverterClassName

        public void setConverterClassName​(java.lang.String converterClassName)
        PUBLIC: Set the converter class name on the mapping. It will be instantiated during the convertClassNamesToClasses. A converter can be used to convert between the object's value and database value of the attribute.
      • setField

        public void setField​(org.eclipse.persistence.internal.helper.DatabaseField theField)
        ADVANCED: Set the field in the mapping. This can be used for advanced field types, such as XML nodes, or to set the field type.