| By Alan Williamson | Article Rating: |
|
| October 17, 2008 09:00 AM EDT | Reads: |
4,096 |
I have recently updated the beautiful class that Ian Schumacher originally developed to access Amazon's SimpleDB without using any external dependencies.
Back in July I made some enhancements to this class by adding a very simple in-class XML parser that would pull back the results in a format that the calling class could actually use.
I have added a couple of new methods to catch the new methods added by Amazon to SimpleDB. Namely the QueryWithAttributes directive that lets you pull back all the attributes for a given Item that matches the query results. This makes querying SimpleDB even more efficient as you can get all your data in one call.
As usual, you can get at this data as a List of HashMap's.
SimpleDB sDb = new SimpleDB( amzID, amzKey ); Listresults = sDb.queryWithAttributesAsListMap
( amzDomain, qry, null );
I also added in a new method to delete a whole record from SimpleDB given a domain and an Item.
SimpleDB sDb = new SimpleDB( amzID, amzKey ); sDb.deleteItem( amzDomain, item);
Now if anything goes wrong, with any of the calls, an Exception is thrown. Remember, if you delete something and straight afterwards do a query, you may still see it, that's because of Amazon's caching and updating mechanisms.
Thanks again to Ian Schumacher for developing the original class and making it available on Amazon under a very liberal license (Absolutely free in all senses of the word, absolutely no restrictions, no attribution necessary).
In the same spirit, I include the updated version of that code here, to be used in the same spirit as the original author. Just "Copy and Paste" It!
Continued...
Cloud Computing Bootcamp
Being held for the first time at The Fairmont Hotel in San Jose, CA, on November 19, 2008, the Cloud Computing Bootcamp will show you how to take advantage of the cloud.
Click Here to Register Now and Save!
Cloud computing is an opportunity for businesses to implement low-cost, low-power and high-efficiency systems to deliver scalable infrastructure. But moving to a cloud infrastructure is not necessarily as nice and clean as the providers would want you to think. With cloud infrastructures problems don't magically go away; they just shift: you don't have scalability or storage problems any more, but you need to constantly monitor the cloud and your application in it.
Led by Alan Williamson, the Cloud Computing Bootcamp will illustrate all the major players and provide a hands-on program with configuration samples, live demos and working setups you can further adapt and play with.
Alan Williamson, founder of Blog-City.com, is a Sun Java Champion and creator of OpenBlueDragon (an open source Java CFML runtime engine). He is currently engaged with a number of startups providing technology and expertise. He has worked with SpikeSource for nearly three years as technical evangelist and architect in SpikeLabs. He has assisted VCs in preparing technical overview and due diligence, was editor-in-chief of Java Developer's Journal, founding editor of LinuxWorld Magazine, and has more than 16 years of experience in the world of software development.
Join Alan Williamson and your fellow attendees at the Cloud Computing Bootcamp on November 19, 2008, from 8:30 a.m. to 5:30 p.m. We'll see you in San Jose, California!
Cloud Computing Bootcamp is timed to coincide with SYS-CON's Cloud Computing Expo (19-21 November, 2008), also being held at The Fairmont Hotel, San Jose, CA.
Published October 17, 2008 Reads 4,096
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Alan Williamson
Alan Williamson is Editor-in-Chief of Cloud Computing Journal and is SYS-CON's "Cloud Computing Bootcamp" Instructor. Widely recognized as an early expert on Cloud Computing, he is Co-Founder of aw2.0 Ltd, a software company specializing in deploying software solutions within Cloud networks. Alan is a Sun Java Champion and creator of OpenBlueDragon (an open source Java CFML runtime engine). With many books, articles and speaking engagements under his belt, Alan likes to talk passionately about what can be done TODAY and not get caught up in the marketing hype of TOMORROW. Follow his blog, http://alan.blog-city.com/ or e-mail him at cloud(at)alanwilliamson.org.
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Adobe Flex Developer Earns $100K in New York City
- Move Over BI, Here Comes PI - Performance Intelligence
- Yahoo! Query Language
- RothmanResearch.com Market Review and Company Analysis on FULT, DISH, ASBC, CTRP, FSLR and CRBC
- Qt DevDays 2009 - Munich
- The Time Is Right for Enterprise Cloud Computing
- Microsoft Nudges Eclipse Developers to Windows-Ware
- Who Invented Virtualization?
- ExaGrid Sets New Standard in Backup Price, Performance and Capacity with Launch of EX10000E Disk Backup System with Data Deduplication and Expanded 100TB GRID Capacity
- Smearing Cloud Lipstick on a Legacy Tech Pig
- Moving the Operating System & Desktop to the Cloud
- 1st Annual Government IT Conference & Expo: Themes & Topics
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Is Microsoft as Free as Open Source?
- Adobe Flex Developer Earns $100K in New York City
- The Curious Case of Build Release Management eBook
- IBM, Microsoft, Others in Lock-Picking Cloud API Push
- Move Over BI, Here Comes PI - Performance Intelligence
- United Planet offers practical portal building tips for SMBs
- Yahoo! Query Language
- RothmanResearch.com Market Review and Company Analysis on FULT, DISH, ASBC, CTRP, FSLR and CRBC
- Qt DevDays 2009 - Munich
- The Time Is Right for Enterprise Cloud Computing
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- The Top 250 Players in the Cloud Computing Ecosystem
- Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
- Ulitzer to Give Drupal 6.0 Its Biggest Scalability Challenge Yet
- An Introduction to Ant
- Appcelerator Named "Platinum Sponsor" of AJAX World Conference & Expo
- "What's New and Exciting About the Web Right Now?" Asks Time Magazine
- Oracle To Keynote Cloud Computing Expo
- First Eclipse Project Targeting PHP Now Available
- AJAX World - Two Great PDF Creators
- C#, Turbo Pascal, C++, PHP...and the LEGO Brick: Denmark's Leading Exports
- Rolling Your Own MVC: The Page Load Scenario





























