Re: [jira] Commented: (CAY-1065) Add registerNewObjects() method to DataContext

From: Kevin Menard (kmenar..ervprise.com)
Date: Wed Jun 04 2008 - 10:21:23 EDT

  • Next message: Andrus Adamchik: "Re: [jira] Commented: (CAY-1065) Add registerNewObjects() method to DataContext"

    I advocate this being applied to ObjectContext rather than
    DataContext. deleteObjects doesn't exist in ObjectContext, which is
    really quite annoying for the client. I'd hate to see further
    disparity.

    -- 
    Kevin
    

    On Jun 4, 2008, at 10:11 AM, Andrus Adamchik (JIRA) wrote:

    > > [ https://issues.apache.org/cayenne/browse/CAY-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906 > #action_12906 ] > > Andrus Adamchik commented on CAY-1065: > -------------------------------------- > > A few notes: > > 1. void registerNewObjects(List objects) -> void > registerNewObjects(Collection objects) > > 2. void registerNewObjects(Object[] objects) - no specific > objections, but if we do that, than to preserve some symmetry, we > need to provide a similar method for deleteObjects, > unregsiterObjects, etc. Maybe that's ok... Currently I have no > opinion... Also check out Java 5 vararg notation: void > registerNewObjects(Object... objects) > > > >> Add registerNewObjects() method to DataContext >> ---------------------------------------------- >> >> Key: CAY-1065 >> URL: https://issues.apache.org/cayenne/browse/CAY-1065 >> Project: Cayenne >> Issue Type: New Feature >> Components: Cayenne Core Library >> Affects Versions: 3.0 >> Environment: N/A >> Reporter: Michael Gentry >> Assignee: Michael Gentry >> Priority: Minor >> Fix For: 3.0 >> >> >> Add registerNewObjects() method to DataContext which is a cover >> method which calls registerNewObject(). Make at least two methods: >> void registerNewObjects(List objects) >> void registerNewObjects(Object[] objects) > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >



    This archive was generated by hypermail 2.0.0 : Wed Jun 04 2008 - 10:21:49 EDT