Class ArrayMapping

    • Constructor Detail

      • ArrayMapping

        public ArrayMapping()
    • Method Detail

      • getJavaType

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

        protected boolean containerIsStoredInSingleColumn()
        Convenience method to return if the array is stored in the owning table as a column. Overrides the superclass since arrays can be stored in a single column also when the no join is specified and the array is of a primitive/wrapper type.
        Overrides:
        containerIsStoredInSingleColumn in class AbstractContainerMapping
        Returns:
        Whether it is stored in a single column in the main table.
      • 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
        Parameters:
        ownerSM - StateManager of the owner
      • postUpdate

        public void postUpdate​(org.datanucleus.state.DNStateManager ownerSM)
        Method to be called after any update of the owner class element. This method could be called in two situations
        • Update an array field of an object by replacing the array with a new array, 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:
        ownerSM - StateManager of the owner
      • preDelete

        public void preDelete​(org.datanucleus.state.DNStateManager ownerSM)
        Description copied from interface: MappingCallbacks
        Method called before the delete of objects, so that additional operations can be performed if necessary.
        Specified by:
        preDelete in interface MappingCallbacks
        Parameters:
        ownerSM - StateManager of the owner