How is Inheritance handled by JDO.?(Seeking Clarification)

Question about the following:
From the JDO Spec: 6.5
"For example, if an abstract class Component declares a key field masterId, the objectid class (which should be abstract as well) ComponentKey must also declare a field of the same type and name. Note that an instance of ComponentKey cannot be used to find a persistent instance, since it has no corresponding concrete persistent class.
A non-abstract class Part that extends Component must declare a non-abstract objectid class (for example, PartKey) that extends ComponentKey. There might be no key fields declared in Part or PartKey. Persistence-capable subclasses of Part must not have an objectid class.
Another non-abstract class Assembly that extends Component must declare a non-abstract objectid class (for example, AssemblyKey) that extends ComponentKey. If there is a key field, it must be declared in both Assembly and AssemblyKey. Persistence-capable subclasses of Assembly must not have an objectid class.
There might be other abstract classes or non-persistence-capable classes in the inheritance hierarchy between Component and Part, or between Component and Assembly. These classes are ignored for the purposes of objectid classes and key fields.
So the question is, If i have the following construct:
public abstract class DataModelObject {
  private Comparable id;
  public Comparable getId() { return this.id;}
  public void setId(Comparable id) { this.id = id; }
public abstract class MutableObject extends DataModelObject {
public class Customer extends MutableObject {
  private String name;
  public String getName() { return this.name; }
  public void setName(String name) { this.name = name; }
}Now, my goal is that when I make Customer a persistent object that the is field is an attribute of my persistent object and not a separate object in itself. The reason is that many objects in my data model have an iD and Id like to encapsulate it on the abstract level to facilitate its use. However, from what I read above, this is not the case? Could someone help clarfy this for me?
-- Regards,
-- Derisor

Hmmm ... maybe over everyone's head?

Similar Messages

  • How do I handle my Final SELECT based on a @ReportType Run Parameter

    So I have multiple CTEs in my SQL...
    WITH CTE_1 AS
    (SELECT...)
    CTE_2 AS
    (SELECT...)
    CTE_3 AS
    (SELECT...)
    My Final SELECT then will be based on my CTE drill-downs and the filtering will be based on the @ReportType that will be chosen within SSRS and Report Manager. How can I handle the varying portions of my FINAL SELECT based on @ReportType? Do I have to do
    this via dynamic SQL? I know that dynamic SQL is frowned upon. So this is what I'm talking about...
    SELECT ...
    CASE WHEN @ReportType = 'Renewal People'
    THEN INNER JOIN...
    WHEN @ReportType = 'New People'
    THEN NOT IN (SELECT...)
    END
    CASE WHEN @ReportType = 'Renewal People'
    THEN WHERE...
    WHEN @ReportType = 'New People'
    THEN WHERE...
    END

    > I know that dynamic SQL is frowned upon.
    That depends. I love (*) dynamic SQL for one thing:
    http://www.sqlusa.com/bestpractices/dynamicsql/
    Second, there are many things you cannot in static SQL:
    http://www.sqlusa.com/bestpractices2008/rebuild-all-indexes/
    * First choice is static SQL always.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • In ldap how do you handle to users logged in at the same time

    in ldap if i am logged in as one user and make a change to a page and another user makes another change how do i handle refresh the other persons logged in pages...

    Hi,
    to which page do you add a change and what has LDAP to do with this ?
    Frank

  • How do you handle multiple at the same address?

    My wife just got an iMac. She is using the Birthday feature in Address Book and iCal to track our friends and family birthdays and anniversaries.
    Question:
    How do you track it when multiple people are at the same address? For instance, our friends are a family of four, but they all live at the same address. Do you need to make a separate Address Book card for each of them, even the 1 year old baby? Or can you track multiple people in a single card with custom fields?
    If you do need to make multiple cards, then how do you handle mailing lists? For instance, if I make separate cards for all four of them, how do I make sure I only send on Christmas card when I use my Mac to print labels?
    Thanks for any advice.

    This is really an issue that you're going to have to resolve yourself since Apple's address book isn't really built with this in mind - darn it. For me there are three scenarios. First, a singleton. No problem. Second a family for which all members share the same information - acquantences to whom I don't send birthday greetings. These get one card and I'll put in both (or all) their names in the first name field (as in Bob and Jean). If there are children, in the last name field I'll add 'and Ken' or 'and the kids'. Third, a family for which some fields are different - perhaps cell phone number, birthday, etc.
    For mailing purposes, I create a holiday group and put the people I'll be sending cards to into the group.

  • How does IITTrackCollection handle ItemByName if there are multiple tracks by the same name?

    I am writing a program in C# that is trying to check if a track already exists in the iTunes Library before adding it (thus preventing duplicates).  The best method I have come up to do this with is to use 'MyPlaylist.ItemByName(SongName)' to retrieve a possible duplicate and then compare the rest of that track's attributes (i.e. the artist and album).  However, I have several examples of tracks in my library which have the exact same name, but are in fact completely different and unrelated.  How is this handled by the iTunes COM?  Or is there a better way to do it?

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can we handle browser settings while dealing with the security ?

    Hi ,
    how can we handle browser settings while dealing with the security ?When we configured security in web.xml , during the first request the container is asking for the authentication credentials once they are provided it go's on. but when the user gives a fresh request from the second window within the same browser that time it is not asking for authentication. How can we overcome this.Is there anything to do with server configurations?
    How can we make the container no to keep the things or act like session?

    Ya... I am taking a small example need not happen always but a kind of possibility i am thinking off.
    once the user sign out and just left without closing the browser and a friend (suppose not a good friend ... just kidding...) of that user may open the same jsp or file .This time the security is breached. If that feature or property exists....
    I know what you might say ... the user will log-out before leaving where a programer might invalidate the session at the time of log out.
    Consider the case of a bad Programing or just a programer might forget to invalidate,At that time as a application administrator how can he solve that issue.
    Thanks.......
    Edited by: user8483670 on Jun 6, 2011 1:08 AM
    Edited by: user8483670 on Jun 6, 2011 1:09 AM

  • How best to handle multiple web sites using iWeb 08

    I currently am using iWeb08. I am maintaining two websites; The church site resides on a Rogers server. I use Transmit as a FTP loader. The other site is an engineering society's website that is posted on Apple's server. I have an ME account just for the latter group. iWebsites is used to alternate between the two sites. The church group has a .ca web address.
    Is it worth upgrading to iWeb 09? How does iWeb09 handle 2 websites? I wish I could publish both to the Mac account but have not figured out how. I must retain the rogers account for viewing the church site
    Has anyone deleted iWebsites from OX10.5.6? How was it done? I know that backups are mandatory before attempting these changes.
    Thanks,
    Bill

    In its current form, iWeb '09 doesn't handle publishing well at all!
    I keep all my sites on separate domain files, each in their own folder. Any site is launched in iWeb by double clicking the domain file. I start each new site from a new, blank domain file.
    I keep all my website folders in a folder in a second dock so that I can launch any site with two mouse clicks - faster than you can launch iWebsites!
    You can publish as many sites as you want to one MobileMe account but you can only have domain name forwarded as Cname. Any more have to use masking with all its inherent problems.
    I would be more inclined to dump MobileMe and publish both sites to a decent hosting company.
    The new iWeb '09 FTP works for some. I have tested it with my server - Host Excellence - which doesn't force you to upload to a Public_html folder and this goes as planned.
    Having said that, I still publish to a local folder as I optimize and upload my files using Web Site Maestro. Once you have published your site for the first time, this application will then use its Smart Handling feature to process the changed files only.
    Unless all your viewers use Macs you have to optimize to get your pages to download in that browser that all the Fred Flintstones of the world use.

  • How do you handle an incoming call while playing a game?

    If you're playing a game on your iPhone, how do you handle an incoming call? A call will stop my app from running, but how do I save the state and restore it when the user starts the app again?
    I have a bunch of objects on-screen and I need to record where they are so that the user doesn't lose the progress of their game.
    I've looked through the SDK, but I can't see anything obvious. Any ideas?

    I don't have a device to test with, but I suspect you'd want to save state in one of the UIApplicationDelegate callbacks:
    applicationWillResignActive:
    applicationWillTerminate:

  • In BI 7 how do we handle if any delta load gets fails

    Hello All
    Iam having a doubt like,in BW 3.5 if we are loading delta data from one source ODS to 2 targets(either cube or ODS),and if for one target if the load gets failed we will delete the bad request from the 2 target ods , reomve datamart flag from source ods and then relaod the delta load again.
    But in BI 7 how do we handle this type of scenarios.
    Many Thanks
    Swami

    In 7.0 we have DTP between one source and one target right?
    If a load fails then delete the concerned request and reload.
    It is independent of the other load.

  • My itunes won't sync to my iphone anymore. How do I handle this?

    My itunes won't sync to my iphone anymore. How do I handle this?

    Double click your Home button, swipe right on the multitask window, you will find the orientation lock on the left. Tap it to unlock and Home button to close Multitask windows. Now landscape orientation will work when you turn your phone

  • How do I handle large resultsets in CRXI without a performance issue?

    Hello -
    Problem Definition
    I have a performance problem displaying large/huge resultset of data on a crystal report.  The report takes about 4 minutes or more depending on the resultset size.
    How do you handle large resultsets in Crystal Reports without a performance issue?
    Environment
    Crystal Reports XI
    Apache WebSvr 2.X, Jboss 4.2.3, Struts
    Java Reporting Component (JRC),Crystal Report Viewer (CRV)
    Firefox
    DETAILS
    I use the CRXI thick client to build my report (.rpt) and then use it in my webapplication (webapp) under Jboss.
    User specifies the filter criteria to generate a report (date range etc) and submits the request to the webapp.  Webapp  queries the database, gets a "resultset".
    I initialize the JRC and CRV according to all the specifications and finally call the "processHttpRequest" method of Crystal Report Viewer to display the report on browser.
    So.....
    - Request received to generate a report with a filter criteria
    - Query DB to get resultset
    - Initialize JRC and CRV
    - finally display the report by calling
        reportViewer.processHttpRequest(request, response, request.getSession().getServletContext(), null);
    The performance problem is within the last step.  I put logs everywhere and noticed that database query doesnt take too long to return resultset.  Everything processes pretty quickly till I call the processHttpRequest of CRV.  This method just hangs for a long time before displaying the report on browser.
    CRV runs pretty fast when the resultset is smaller, but for large resultset it takes a long long time.
    I do have subreports and use Crystal report formulas on the reports.  Some of them are used for grouping also.  But I dont think Subreports is the real culprit here.  Because I have some other reports that dont have any subreports, and they too get really slow displaying large resultsets.
    Solutions?
    So obviously I need a good solution to this generic problem of "How do you handle large resultsets in Crystal Reports?"
    I have thought of some half baked ideas.
    A) Use external pagination and fetch data only for the current page being displayed.  But for this, CRXI must allow me to create my own buttons (previous, next, last), so I can control the click event and fetch data accordingly.  I tried capturing events by registering event handler "addToolbarCommandEventListener" of CRV.  But my listener gets invoked "after" processHttpRequest method completes, which doesnt help.
    Some how I need to be able to control the UI by adding my own previous page, next page, last page buttons and controlling it's click events. 
    B) Automagically have CRXI use a javascript functionality, to allow browser side page navigation.  So maybe the first time it'll take 5 mins to display the report, but once it's displayed, user can go to any page without sending the request back to server.
    C) Try using Crystal Reports 2008.  I'm open to using this version, but I couldnt figureout if it has any features that can help me do external pagination or anything that can handle large resultsets.
    D) Will using the Crystal Reports Servers like cache server/application server etc help in any way?  I read a little on the Crystal Page Viewer, Interactive Viewer, Part Viewer etc....but I'm not sure if any of these things are going to solve the issue.
    I'd appreciate it if someone can point me in the right direction.

    Essentialy the answer is use smaller resultsets or pull from the database directly instead of using resultsets.

  • Plz help me how con i handle

    Respected Sir/madem'
    i m new to java.So i don't know how can i handle this problem.plz guide me
    my problem is i m using mysql connector to access my database and made the class (MyConnection.class) that establish the connection but i do not want to give my class that establish a connection to client. i have to store this class on the server for security and use this class in my program to connect to database.
    How can i use class or any file that was stored on server.
    Plz help me i don,t know what ccn i do.

    Chipomasi wrote:
    How do i delete my chat history.
    Please help.
    Hi @Chipomasi,
    You can delete your Chat history by going to Tools>Options in the desktop client; click on the IM and SMS tab; click on IM settings; then show advanced settings; then you can clear the history and modify how long chat history goes back.
    Note that this will not delete the other user's chat history with you, only yours.
    Anthony
    This post was by Anthony- I do not work for Microsoft!
    If this solved your issue - Mark it as a solution! If you like my post - Please add Kudos!
    Spotify Community Profile - Anthony
    Feel free to PM me - Here

  • Labor for purchase - How do we handle that?

    Hi Forum,
    When an item is Labor or Travel, it is available only for sales? How do you handle a Contract Wage that you buy for 75 dollars an hour but sell it for 150 dollars an hour?
    Yes we can make the above item a non-inventory regular item (that is not a labor item). Is that right?
    When do we use Labor Item as given in SAP B1 then? When actually selling services such as Professional services?
    Thanks.

    I just read the help over again : it is fairly clear -
    To define an item as non-inventory, deselect the Inventory Item checkbox. Items such as services, electricity or labor costs are typical non-inventory items. The additional costs resulting from such non-inventory items are included in the production order. Non-inventory items must use the standard evaluation method and have an expense account (unless it is an item group).
    When you define an item as non-inventory, on the Item Master Data: Inventory Data Tab, you can define the valuation method as standard, and set an item cost for that item. Then, when you base the gross profit on the item cost, the base prices for non-inventory items are included in the calculation of gross profit.
    You can change an inventory item to non-inventory, or the opposite, provided that:
    No transactions have been posted for the item
    There are no documents for the item, that is, sales quotation, sales order, purchase order, A/R or A/P down payment request, or draft
    Item Type Select one of the following:
    Items u2013 to define as an SAP Business One item.
    Labor u2013 to use in the Service module to calculate the amount of time spent completing a task.
    Travel u2013 to use in the Service module to calculate the amount of time the technician spends traveling.
    Service type item on the fly is only for onte time occurance. So not suitable for recurring purchasing.
    Service u2013 to create a purchasing document for a service, such as a one-time consultation, that has not been defined as an Item in SAP Business One.

  • How do I handle message Service Apple Mobile Device failed to start?

    I am not able to install itunes 11.1.4 on my PC. After download program runs starting services. I then get the message service "Apple Mobile Device" failed to start. How do I handle this?

    Hello DEstadt,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    Best of luck,
    Mario

  • How can you handle Third Party Payment in Oracle Payroll

    People I hope you all are at your Good Health!
    I have a question and that is i would like to know how i can restrict a dependent from getting an Insurance benefit after he has crossed the Age =18 Also the To date must be calculated and populated automatically.
    Also, how can we handle this third party payment in the Oracle Payroll.
    All comments are welcomed.
    Chetan

    For the payment piece, create a payment method on the person record as a third party. you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check .
    Ankur thank you for the response i have understood that we must create a Payment Method and Check the Check box for Third party Payment on Payment Method window.But how will that be handled for case where an employee has taken a Loan from a Bank and he has to be deducted every month from his salary how can we handle such a requiremet.
    I did not understand when you said :
    "you would need to have setup the recieving party as a third party organization before setting up at employee level.
    During normal payroll processing, you may run Third party check writer to generate a check ."
    Could you please explain me.
    Regards,
    Chetan

Maybe you are looking for

  • Sony PVM 20N5U=Broadcast Color Correction Monitor?

    Hello, folks. Posted this on the "Getting started with video production on a Mac" forum, but no responses . . . so I'm trying here. I have a Sony 14M2U that IS indeed a professional grade broadcast monitor that can be used for color correction. Howev

  • Photoshop Elements 12 Organizer will not open on Apple 10.6.8.

    I downloaded Photoshop Elements 12 two days ago and opened and ran the program successfully. I've downloaded nothing new to the computer since then, made no updates. but today it will not open at all, giving me a message that Adobe Elements 12 Organi

  • Gridbag layout - set size

    can I set a pixel width size for the cell of a gridbag?

  • Reg:working without Keyfield in FCC node structures

    Hi All, I have a scenerio of FCC to RFC , where i need to read a Text file and want to post it to R/3 through RFC Recordset Structure : Header,1,Item,*,Trailer,1 Is it possible to read the file without Keyfield vale ? Please give your valuable sugges

  • Ad unit size 300 x 50 question

    Hi, i want to use banner with size 300x50 in my game, but i always see there are no ads, ads appear when i change my banner to 300x70 or 300x80. Is it legal to change my banner to bigger?