Class CollectionMapping

    • Constructor Detail

      • CollectionMapping

        public CollectionMapping()
    • Method Detail

      • getJavaType

        public Class getJavaType()
        Accessor for the Java type represented here.
        Specified by:
        getJavaType in class JavaTypeMapping
        Returns:
        The java type
      • insertPostProcessing

        public void insertPostProcessing​(org.datanucleus.state.ObjectProvider ownerOP)
        Description copied from class: JavaTypeMapping
        Perform any INSERT post processing as required by constituent ColumnMappings. TODO Not yet utilised, see RDBMS-14
        Specified by:
        insertPostProcessing in interface MappingCallbacks
        Overrides:
        insertPostProcessing in class JavaTypeMapping
        Parameters:
        ownerOP - ObjectProvider of the object with this mapping
      • postInsert

        public void postInsert​(org.datanucleus.state.ObjectProvider ownerOP)
        Method to be called after the insert of the owner class element.
        Specified by:
        postInsert in interface MappingCallbacks
        Parameters:
        ownerOP - ObjectProvider of the owner
      • postUpdate

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

        public void preDelete​(org.datanucleus.state.ObjectProvider ownerOP)
        Method to be called before any delete of the owner class element.
        Specified by:
        preDelete in interface MappingCallbacks
        Parameters:
        ownerOP - ObjectProvider of the owner