ObjectContext Questions

From: Michael Gentry (mgentr..asslight.net)
Date: Thu Oct 08 2009 - 12:09:07 EDT

  • Next message: Andrey Razumovsky: "Re: Beta 1 ?"

    In changing ObjectContext, I added:

        void deleteObjects(Collection<Persistent> objects) throws
    DeleteDenyException;

    Does it make sense to use <Persistent> here? After all,
    deleteObject() doesn't use it:

        void deleteObject(Object object) throws DeleteDenyException;

    Neither do the things that return collections:

        ...
        Collection<?> deletedObjects();
        Collection<?> modifiedObjects();
        ...

    Also, I noticed this added to 3.0:

        void prepareForAccess(Persistent object, String property, boolean
    lazyFaulting);

    Seems like that boolean would be another good place to have an enum instead?

    Thanks,

    mrg



    This archive was generated by hypermail 2.0.0 : Thu Oct 08 2009 - 12:10:48 EDT