"Active Constraints" - just an idea

Hi,
I just crossposted this to JDO central (General Discussion) in case you
are interested in following what goes on over there.
Lets say I have a parent child relationship and the child has a
collection of things whose contents have to be a subset of a collection
on the parent. Removing an element from the collection on the parent
requires removal of the same element in the children's collections. To
do this in JDO, as far as I can tell, I have to query to find all the
children with a reference to the element being deleted, and then for
each child I find, I have to remove the element from its (the childs)
collection. What this means is that I have to haul a cart load of data
out of the database to find out what DELETE statements to issue. Which
isn't great.
Concrete but completely made up example:
public class Catalog {
private Collection lineItems;
private Catalog parent;
public void removeLineItem(LineItem li) {
lineItems.remove(li);
for(Iterator i=getAffectedChildren(li);i.hasNext();) {
((Catalog)i.next()).remove(li);
private Iterator getAffectedChildren(LineItem li) {
Query query = pm.newQuery(Catalog.class,"parent == me &&
lineItems.contains(li)");
query.declareParameters("Catalog me, LineItem li);
Collection results = (Collection) query.execute(this,li);
return results.iterator();
Now maybe there is a better way to do this. If there is please shout now
and stop reading the rest of this post ;-)
But, I would love if I could state this kind of business domain
invariant or constraint or whatever you want to call it in JDO meta data
and have it enforced by the JDO runtime. So the JDO runtime could issue
a single SQL DELETE statement, which a WHERE clauses that does all the
work. Surely better than reading in all this data to make a delete as I
(possibly erroneously) am.
Personally I call this notion active constraints or active invariants,
and I see it applying to parent-child relationships like this and cases
where you have to maintain derived attributes.
Cheers,
Mike

THis can be a problem and I sometimes ignore it but there is an occasion where I have to have the track comming in sequence as they are on the CD. for instance Crash Test Dummies - God Shuffeled His Feet, the tracks are sort of blended into each other, and did not sound right when I first uploaded it, so I done it again but this time I put a number in front of the song in the song title tag.
God Shuffled his feet
2 When I go Out With Artists
And so on, It works quite well for me, hope it helps for you.
JJ

Similar Messages

  • I got a blacklisted iphone 5 from att and I reset it and now when I try to set it up it needs a sim card so I went to the att store and they put a sim in and on the iPhone it says replacement needed couldn't complete activation.i just want use it as a ip

    I got a blacklisted iphone 5 from att and I reset it and now when I try to set it up it needs a sim card so I went to the att store and they put a sim in and on the iPhone it says replacement needed couldn't complete activation.i just want use it as a ipod

    To use it as an iPod it must be activated...to do that it has to accept a sim.  A blacklisted iPhone cannot do that.  Take it back to AT and T where you got it and get your money back.

  • Just some ideas would be nice

    Hi,
    Looking around for some innovative ideas for a project(FYP), I want to base my FYP on J2EE and/or J2ME, something like a front-end implementation(either web-based/mobile device) talking to back-end(mySQL/server integrated) through JSP. Mainly I want to play with JSP,Servlet,EJB,JDBC. I have a basic understanding of this technologies so it will be good to go in deep down.
    However, I am lacking some ideas, as to which route to take, whether to explore J2ME with J2EE at this point or whether web-based systems are what i should be developing compared to mobile device systems. basically where is the demand now a days in the industry?.
    It looks like most of the innovative/useful systems have been thought about/developed, (flight booking, shopping carts, online banking systems etc). Are there any web or mobile device based purposeful/useful system need researching/developing? something that could help the community. any ideas are very welcome.
    I would appreciate any help.
    thanks

    I think you have to pay more than 10 Duke Dollars for a lucrative idea. give me a lucrative idea, priceless!
    One that will teach Senator Orrin Hatch that
    destroying a few million computers for the sake of the
    entertainment industry is a bad idea.its the $18,000 which he earned in songwriting royalties which is talking and as long as he gets his CDs available on his website, he doesnt care about others. http://www.guardian.co.uk/usa/story/0,12271,980890,00.html
    I think Randy Saaf of MediaDefender tried educating him about this, so there is no need to come up with a whole system to teach such a person.
    However, i do not support copyright abuses. not fair.
    anymore ideas?
    You could kill two buzzwords with one stone, and develop a mobile->device app with J2ME that uses web services to communicate with a >server. Maybe it could be for buying movie tickets or something. 2-in-1, thought about it, even an m-commerce system such as m-banking system, reading about it, the security issues involving a bank is a project on its own. what you think of the idea?
    It looks like most of the innovative/useful systems have been thought about/developed...
    Why does it have to be original? Why not just pick something that's already done and make one that's faster/better in some way?
    That's what Microsoft always does :-) Considering this too.
    Here's and idea, write this for the SEC's members and you'll make a fortune.
    http://story.news.yahoo.com/news?tmpl=story&cid=74&ncid=74&e=3&u=/cmp/20030619/tc_cmp/10700408thanks will read about it.
    just to make things clear, I dont want a quick-get-rich scheme or a fortune yet, just a decent project where i can research & learn the technology.
    thank you all for your time, more ideas are always welcome.

  • Connect Exchange email without active sync just as I do on Mac mail on Mac book.  Using OWA site.

    I am trying to connect my exchange email to my iPhone without using active sync. I am able to connect it to the Mac mail program on my MacBook pro with out ay issues. Can this be done on the iPhone?  Please instruct.

    Hi,
    I have a similar issue, just purchased Iphone4, can't get my enterprise emails because i get the typical "Unable to verify" message. My It guys (which are totally unfamiliar with Iphone because we are a blackberry-organisation ) tried to create an acoount on my iphone with no succes, afterwards they said that our email application is not compatible with iphone and that "we will upgrade it but don't know when".
    After googeling (without understanding much ) i found that:
    Active Sync is needed for Iphone to get emails, Active Sync works only with Microsoft Exchange SP2.
    We have Microsoft Exchange 2003 RTM (6.5.6944.3) so no SP1, no SP2.
    Is this the issue why we can't get it work?  If yes, is there any other way to get my emails without this ActiveSync?
    (we have OWA in case this is usefull).
    Thanks a lot!

  • Activation date just came, and went..

    Hi all,
    It's kind of ironic that I decided to come back to BT because I had had enough of Sky. Being increasingly disgruntled with the service that Sky was providing over the last year (I had both line rental and Broadband with them), I literally couldn't wait to leave and come back to BT. So, I signed up with BT on Jan 1st (Through Return to Donor). I wanted to take my phone number with me. I then phoned up Sky a couple of days later and cancelled. At this point, Sky put the cancellation date for January 13th, but my BT activation date was 17th Jan (I think her name was Emily at BT who told me that, and who advised me to get Sky not to cancel on that date, otherwise I would have to pay a connection charge).
    I phoned Sky and got them to change the date (After a lot of pushing). BT changed the date to 21st January for activation and so the cancellation date with Sky was also January 21st. So here I am, expecting my Sky Line Rental and Broadband to stop today, and BT to provide the phone service (With me signing up for Broadband once I get paid at the end of the month). I phoned up multiple times prior to today to make sure that there were absolutely no problems. The guy I talked to yesterday said: "There are no problems, sir. Everything is going smoothly with the transfer." I was awake at 8am today, and around 9am, the broadband and phone stop working. Sitting there, I'm expecting the phone to start working sometime soon. 10am comes and goes. 1pm comes and goes. 5pm comes and goes. You get the picture. It's now 9.19pm and no service. But that's not what's irritating me. What's starting to annoy me is that BT have disconnected me on the agreed date as they told me to make in relation to Sky, but haven't reconnected me. And judging by other peoples' stories, that means I'll have to pay a connection charge when I'm not at fault and I did everything that I was asked to do. Also, I dread to think what will happen in relation to the phone number that I've had for a long time.
    The phone number to call is 0800 800 150 if you're not connected by 8pm. Since that's long gone, I'll be phoning in the morning. What would you guys advise doing? Get out now? My father had the same problem - He phoned regularly to make sure there were no problems until the day itself, and still got blessed with no working phone line. It took him over 2 months to sort it out, and I'm at University so can't afford to take so long, nor do I have the money to correct problems where I'm not at fault. I'm actually thinking of cancelling the order - Is that possible? Even though I placed the order on Jan 1st, and activation was supposed to be today (21st Jan), no service is being provided.
    Any advice would be greatly appreciated. Thanks in advance.

    Hi QuantumSanctum,
    Thanks for the post and welcome to the forum.  I am sorry for the delay in activating your BT phone service.  I can help you.
    Please drop me an email to the email address in my profile. (click on my name and you will find the address under the "about me" section). Include any order details that BT have provided and the link to this thread. 
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • System Connection Test was not fully tested but all web dynpro java app and Transaction iviews working fine.Any problem for this Kind of activity Lets give some idea.

    System Connection Tests
    You can test the connectivity to the backend application represented by the current system object. Choose the relevant tests.
    Note: The test is based on the properties currently defined in the system object. It does not check if the system properties are correct.
    System Connection Tests
    Test Name
    Description
    Status
    SAP Web AS Connection
    Tests the connection to an SAP Web Application Server
    ITS Connection
    Tests the connection to an SAP ITS server
    Connection Test for Connectors
    Tests the connection to a backend system using an associated connector
    Test
    Clear Results
    Results
    SAP Web AS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether a SAP system is defined in the system object
    4. Validate the following parameters: WAS protocol; WAS host name
    5. Checks if the host name of the server can be resolved.
    6. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. The system object represents an SAP system
    4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name 
    5. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    6. The Web AS ping service was pinged successfully.
    7. An HTTP/S connection to was obtained successfully.
    ITS Connection
    Test Details:
    The test consists of the following steps:
    1. Checks the validity of system ID in the system object.
    2. Checks if the system can be retrieved from the PCD.
    3. Check whether the system object has a valid system alias
    4. Check whether a SAP system is defined in the system object
    5. Validate the following parameters: ITS protocol; ITS host name
    6. Checks if the host name of the server can be resolved.
    7. Checks HTTP/S connectivity to the defined back-end application
    Results
    1. The system ID is valid
    2. The system was retrieved.
    3. Retrieval of the default alias was successful
    4. The system object represents an SAP system
    5. The following parameters are valid: ITS Protocol (http) ITS Host Name ()
    6. The host name ssprdxi.stylespasapnet.com was resolved successfully.
    7. An HTTP/S connection to was obtained successfully.
    Test Connection with Connector
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    regards
    Antony

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • IMac 24 - Just an idea

    After my first Mac work with FCExpress with a MacBook 2,16GHz, I'm thinking now to upgrade with FCStudio and the top of the iMac line.
    First to all: do you have some advice about it?
    I know iMac have only one firewire bus and this is maybe a problem, but I think to do a partition of the internal disk (100 for OS and 400 for video) and use this for my editing works.
    I will use one firewire port (800) only when I want to backup editing works with an external hard disk.
    And other firewire (400) to connect vcr during capture and Canopus analog to digital converter during editing to wacht the work on external monitor.
    Do you think it's a good idea?
    Message was edited by: snatty

    Not really, but I guess I fall into the elitist category regarding tool use.
    Here's the logic ...
    1. Partitioning your internal drive does nothing good as you still have ONLY ONE DISK doing all the work. Indeed, there is some evidence that partitioning slows things down as the heads must cover a wider area of the disk (moving between the system partition and the media partition) than simply keeping the system disk unpartitioned.
    2. You need an external disk. The iMac has only one firewire bus no matter how many ports.
    3. You can get away with running cameras and external disks on the same bus but there is no guarantee it will work. If it doesn't, you have no real recourse.
    4. You can not add an external sata card to move to faster drives. If you wish to edit something more than HDV, this becomes a necessity.
    5. You can not upgrade your video card to something Motion will appreciate.
    6. Adding a 3rd party card such as the Kona LH or Decklink Intensity to monitor/ingest HD is not possible.
    It's your money and your projects but look at a MacPro if you are at all serious about the business.
    Good luck.
    x

  • Why no Alt-Tab functionality (true last active, not just up or down the line)?

    I see the keyboard shortcuts for moving up and down the open tabs (ctrl-shift-tab and ctrl-tab) and the go direct to a numbered tab etc...
    what I really want is a last tab function that if pressed repeatedly would simply take you back and forth between the last two tabs. Such that if I have 8 tabs open and am presently on tab 7 and then switch to tab 4, then I press this keyboard shortcut it would take me directly back to 7. If pressed again it would go back to 4. etc.
    Take filling out a tax form or something as an example. I've got my browser open, several pages on tax help, tax code, and the like along with one with my paystub info and one that I am entering data into. I repeatedly need to bounce back and forth between the tab with the info on it (paystub) and the tab with the data entry on it.
    I suppose one could workaround by only having the two desired tabs open in the browser window or by having two browser windows open with each needed page, but this is such ingrained function (alt-tab in windows goes directly between your last two open applications no matter how many you have open) that it just seems very natural to want browser tabs to only go back and forth between the last two as well.
    really think this should be developed...seems simple (from an uneducated POV) and serves a definite purpose.
    thanks.

    Thanks, that works great.
    FYI I came across that several times, however none of them made it clear that the desired behavior was understood and that this was the actual fix for it.
    Thanks again and for those wondering - this does actually make ctrl-tab behave as normal windows alt-tab does....can't believe I've gone so long without this frustrated by every time I hit alt tab wanting to change tabs and changing applications instead.
    this is great...thanks firefox (still think this should be default instead of the climb up and down the open list of tabs)

  • Can i use the Iphone without Activating it just as an ipod

    Can i just use the iphone as an ipod. Put songs on it without having to activate it or canceling the plan and it still work like an ipod.

    It is what it is and before purchasing an iPhone, it is also YOUR choice to read/know the minimum computer system requirements, etc. and it is Apple's choice regarding what they include with the system requirements and other requirements for the iPhone.
    It isn't your right and choice to do whatever you want with the iPhone after your purchase since you agree to Apple's license agreement when using an iPhone.
    If you don't like the iPhone's minimum system requirements and other requirements and don't agree with the iPhone's license agreement, you can choose not to purchase an iPhone.
    Apple's goal as a corporation is no different from any other corporation whose stock is publicly traded - maximize profits and the stock's value for their stock holders. End of story. I hope Steve purchases a new yacht for every coast in the U.S. or wherever else. It is called risk taking and those who take the risks to begin with - the founders of the company and the risks taken along the way should be rewarded very handsomely for doing so and rightfully so. The ones who aren't smart enough and willing to take the same type of risks sit back and make judgements and statements about the ones that do.

  • How to update trial version to full using activation code just downloaded

    Can anyone help with this - there seems to be no way of doing this. I just got the activiation code sent thru for the full version, mainly to save having to do mail order/go to shop, but how do you update the trial?? The trial version hasn't converted automatically as is implied on the invoice! Thanks SA.

    Hi,
    It seems return table contains many errors and all errors cannot be sorted out at once. Try to correct one by one.
    E MEPO 002 PO header data still faulty
    W ME 658 Please also populate interface parameter
    POHEADERX
    For the above errors, Try to populate POHEADERX to the BAPI "BAPI_PO_CHANGE".
    W ME 887 Error transferring ExtensionIn data for
    enhancement CI_EKKODB
    Also please ensure the data must be transferred to extension structure.
    E SG 105 Enter rate INR / rate type M for 07.02.2014 in
    the system settings
    Maintain the exchange rates properly through the OB52 transaction. TCURR table will hold these values.
    Please try and let me know what other issues you are facing.
    Regards
    Gangadhar

  • No activation link, just licensing?

    I am rebuilding a workstation (upgrading to Windows 7) and installed the machines copy of Acrobat 8 Standard.  The install works fine with the license that I have on file.  When I open the software for the first time, I am prompted to purchase an e-license.  The license is not installed on any other machine and was deactivated prior to the rebuild.  Any help would be greatly appreciated.
    Ron

    Hi Ron,
    Acrobat 8.x is not Win 7 compatible. Even if you get it activated, there is no guarentee that it will work properly.
    Still you can try solution given in following article:
    http://helpx.adobe.com/acrobat/kb/suppress-e-license-download-prompt.html
    Regards,
    Anoop

  • How 2 access flash drives via iphone..(just an idea)

    guys im jus gona give idea or a new concept 4 the iphone4 ie a new feature which can be included in the future..what does the iphone doesn't have when compared to the mac book.??..a"USB port"..i have designed a cable such that in one end its a mini usb male pin and on the other end its a normal usb female pin...so if there is a female pin usb port in the iphone...and with some upgradation in the software(os)
    ..it will help accessing flash drives,memory cards..etc..the data transfer port which is now used in the iphone can also be transformed.."my main idea is to access flash drives"...im sure tat apple engineers r brainy enough 2 come up wit this concept in some other way...

    Firstly, you will have to buy more equipment as the Express doesn't support extra drives.
    If you can use BTMM, then the Time Capsule is good, or the AirPort Extreme. However, these don't offer a web interface to access them, or a way of accessing them from iOS.
    Synology NASes might work, or if you want to mess around a Raspberry Pi. Possibly even a Mac mini if you have the cash to spend.

  • Developer activation code just takes me to manage my account page.

    clicking the link in the activaton email just takes me to the manage my account page, change address etc....cannot get to any dev logon/registration page.
    help appreciated

    Try This...
    Close All Open Apps... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • During playback all im getting is high pitched sqeeks with the beat, cant hear anything else, sound on my pc is fine tho just itunes, ideas??

    playback is really high pitched, just squeeking, hard to explain but i only have this problem with itunes, sound on pc is fine, its happened since i updated couple days ago, tried reinstalling itunes etc, no joy, even tried repairing it but its not worked,

    Thanks Zipb - yes have done this now after a call to MOTU.
    Never done it before in 3 years of using it daily! apparently you need to change the opticals to ADAT and it resets!!!! Dont ask me why!?!

  • Just an idea for the setup

    OK the installation is pretty basic and works.
    There is one change i would like to see tho,
    OK when you partition your HDD it will give you the size etc,
    So when you go to mount the file systems, would it be to much to ask for the sizes to be besize the dev name?
    because on my layout i have 5 partitions on that drive (got a total of 4 drives) so as you can imangine i have to depend on my notepad to remember whats what...
    cheers

    http://bugs.archlinux.org/index.php?project=6

Maybe you are looking for

  • Preview Facebook Social Plugin in Fireworks CS5?

    Hi, Is it possible to preview Facebook Social Plugins like the "Facepile" in Fireworks CS5 just like you can do with a Google Map? The HTML for the Social Plugin is: <iframe src="//www.facebook.com/plugins/facepile.php?href=facebook.com%2Ftriplapp&si

  • Plug in for Math Calculation

    I am working in InDesign CS3. Need a plug in to change pricing in an 800pg catalog. For example need to increase all prices in a document by 15%. There is a Xtension for Quark called Math Grabber but it is not available for Indesign yet. Does anyone

  • BT Are Stealing Money From Customers

    Hi, i recently. Contacted a BT sales agent who, explained the new BT Package. I paid a fee of £141 up front, as was explained this allowed for cheaper monthly payments. The funds have been taken from my card. I did not get an order reference proviced

  • How to download cisco ise (service contract required)

    i to need download cisco ISE (Identity Services Engine) to prepare for ccie security exam however when i try to download the trial version they ask for some kind of contract can anyone help me with the process to download

  • Correct target video size of an exported DVD video

    I am trying to encode a video track from a DVD with wide-screen content to an MP4 file using the H.264 codec. What video frame size should I choose for optimal quality and minimal file size, 720 x 404 or 856 x 480? Or, if there is a way to do it, sho