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 column. This is necessary so we can perform any necessary postInsert, postUpdate nonsense for inserting BLOBs.
    • Constructor Detail

      • OracleCollectionMapping

        public OracleCollectionMapping()
    • Method Detail

      • postInsert

        public void postInsert​(org.datanucleus.state.ObjectProvider ownerOP)
        Retrieve the empty BLOB created by the insert statement and write out the current BLOB field value to the Oracle BLOB object.
        Specified by:
        postInsert in interface MappingCallbacks
        Overrides:
        postInsert in class CollectionMapping
        Parameters:
        ownerOP - ObjectProvider of the owner
      • postUpdate

        public void postUpdate​(org.datanucleus.state.ObjectProvider ownerOP)
        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:
        ownerOP - ObjectProvider of the owner
        See Also:
        MappingCallbacks.postUpdate(org.datanucleus.state.ObjectProvider)