Interface ExecutionContextReference

  • All Known Subinterfaces:
    All Known Implementing Classes:
    ExecutionContextImpl, ExecutionContextThreadedImpl

    public interface ExecutionContextReference
    Reference for an ExecutionContext, for use in the enhancement contract. This is used because if we just used ExecutionContext it would drag in many other classes etc, so reducing exposure. TODO The signature of findObject could return Persistable. Would need to update enhancer if we do that.
    • Method Detail

      • getOwner

        Object getOwner()
        Accessor for the owner of the ExecutionContext. This will be a PersistenceManager (JDO) or EntityManager (JPA/Jakarta).
        The owner
      • findObject

        Object findObject​(Object id,
                          boolean validate)
        Accessor for an object given the object id.
        id - The id of the object
        validate - Whether to validate the id
        The object