Class OracleCollectionMapping

  • All Implemented Interfaces:
    MappingCallbacks

    public class OracleCollectionMapping
    extends CollectionMapping
    Oracle variant of the CollectionMapping for cases where we are serialising the field into a single (BLOB/CLOB) column.
    • Constructor Detail

      • OracleCollectionMapping

        public OracleCollectionMapping()
    • Method Detail

      • performSetPostProcessing

        public void performSetPostProcessing​(org.datanucleus.state.DNStateManager sm)
        Description copied from class: JavaTypeMapping
        Perform any INSERT/UPDATE post processing as required by constituent ColumnMappings. Default implementation does nothing.
        Overrides:
        performSetPostProcessing in class JavaTypeMapping
        Parameters:
        sm - StateManager of the object with this mapping
      • postInsert

        public void postInsert​(org.datanucleus.state.DNStateManager ownerSM)
        Description copied from interface: MappingCallbacks
        Method called after the insert of the object so that additional operations can be performed if necessary.
        Specified by:
        postInsert in interface MappingCallbacks
        Overrides:
        postInsert in class CollectionMapping
        Parameters:
        ownerSM - StateManager of the owner
      • postUpdate

        public void postUpdate​(org.datanucleus.state.DNStateManager ownerSM)
        Description copied from class: CollectionMapping
        Method to be called after any update of the owner class element. This method could be called in two situations
        • Update a collection field of an object by replacing the collection with a new collection, so UpdateRequest is called, which calls here
        • Persist a new object, and it needed to wait til the element was inserted so goes into dirty state and then flush() triggers UpdateRequest, which comes here
        Specified by:
        postUpdate in interface MappingCallbacks
        Overrides:
        postUpdate in class CollectionMapping
        Parameters:
        ownerSM - StateManager of the owner