Welcome!

Java IoT Authors: Stackify Blog, Nitin Donde, Elizabeth White, Liz McMillan, Kevin Benedict

Related Topics: Java IoT

Java IoT: Article

Square Data and Round Holes

Square Data and Round Holes

My first programming job was done using Report Generator Language (RPG) on the IBM System 36. The hardware was green screen, the tape decks reel-to-reel, and the printers large and noisy. The language itself was very data-centric with each program declaring formatted Input or Output data structures that were read or written to. Each structure mapped to a file, a screen buffer, or a printer spool. In spite of all this we did get the job done, although our biggest problem was the business changing requirements on us that necessitated altering the data structures. Because they were burned into the program's source specification, changing a file required altering every program that used it and a conversion job to update the live user data to use the new format. The inertia of this task made it important to do thorough up-front analysis to get the data relationships and attributes as correct as the available knowledge allowed.

Preemptive flexibility sometimes included soft-coding all of the data structures to be called anonymous names such as "user field 1" or "user field 2." Separate definition files for each application mapped which fields were used in which context and the intention was that when the business required some new data attribute to be added, an unused extra structure was simply activated by hacking around with the definition files to make the new attribute available on screens and reports.

The thing that grabbed me about object-oriented programming when I was first introduced to it (through the Smalltalk language and then Java) was that all of this would be fixed. The program was no longer concerned with its data; instead this was all encapsulated inside objects that provided a behavioral API, making the system more malleable and extensible. Inheritance and polymorphism and other facets are nice features of the language, but data encapsulation was the key thing that sold me.

The first couple of systems I worked on were business apps that had to deal with back-end relational corporate data, and the problem that arose is the well-trodden one of how to persist objects in a relational database. Objects have things like inheritance, many-to-many relationships, many ended links with no back pointer, untyped data structures (in the case of Smalltalk), and other facets that just don't fit into a row/column fashion. Initially as I wrestled with this impedance mismatch by writing or using fancy frameworks, I always believed that this was a temporary point-in-time exercise required because of the existence of legacy relational databases; OO databases were just around the corner so their arrival would cure all our maladies.

Frederick Brooks has a chapter "No Silver Bullet" in his superb treatise The Mythical Man Month, and unfortunately my belief in OO databases fell naively foul of his prediction. I had the good fortune to work with a very powerful OO database while programming for a bank. It did effectively persist the objects, however, it failed to meet the business' needs precisely because it was structured around objects and not rows and columns. Users needed fast and varied access to their data, and just about every existing application from spreadsheets to off-the-shelf GUI builder tools was on their desktops itching to access the corporate data. These all required the data to be relational, and although an ODBC-to-OO bridge existed, apart from being some kind of intellectual nasty bolt on, it meant that the user's thinking of the data was by definition a relational one. After a while some converts began suggesting it was pointless to be doing OO at all, and one strong argument came from the fact that the data itself was inherently row/column based because that was how it was received by the system and its users. Input came from external data feeds (where the data was structured) or from manual input where tables and lists were rows of data, and fields of data populated the columns.

Object-oriented databases do work and are widely used in apps that don't need to publish their data as a corporate database (such as embedded devices); however, for the corporate world it perhaps looks as though OO databases haven't achieved the critical mass required to become widely accepted. On one major database vendor's Web site, the listing of their product portfolio promoted their relational mapping software in preference to their (very good) OO database as the initial deployment configuration for J2EE.

One way in which object-oriented data stores might enjoy a renaissance is with XML. By its nature XML is structured around a tree of nodes that can repeat and contain further nodes, data elements are optional, and, although XML enjoys being used as a readable structured message format, it's also used as a way of representing and persisting data. XML doesn't store itself in rows and columns easily; however, if it's persisted in raw text for queries a search engine needs to be able to peek at its contents. This is essentially what Web search engines do - initially they just queried into HTML (which is no more than XML marked up specifically for browser syntax), although now they recognize specific content formats (.doc, .pdf) and promise to even embrace the desktop's contents itself as their data source (http://news.com.com/Google+to+unveil+desktop+search/2100-1024_3-5408765.html?tag=nefd.lede).

If the future of search engines is to query data irrespective of source, and the flexible and user friendly nature of searches exceeds anything that SQL could do for a nontechnical corporate user, is it possible that object-oriented databases will be reborn with the required search engine interfaces? Or is the problem simply that data sticks where it lands, and most companies are loathe to physically move data from its initial resting place lest the downtime and potential errors create more problems than are solved?

More Stories By Joe Winchester

Joe Winchester, Editor-in-Chief of Java Developer's Journal, was formerly JDJ's longtime Desktop Technologies Editor and is a software developer working on development tools for IBM in Hursley, UK.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
The financial services market is one of the most data-driven industries in the world, yet it’s bogged down by legacy CPU technologies that simply can’t keep up with the task of querying and visualizing billions of records. In his session at 20th Cloud Expo, Karthik Lalithraj, a Principal Solutions Architect at Kinetica, discussed how the advent of advanced in-database analytics on the GPU makes it possible to run sophisticated data science workloads on the same database that is housing the rich...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, will examine the regulations and provide insight on how it affects technology, challenges the established rules and will usher in new levels of diligence...
In the enterprise today, connected IoT devices are everywhere – both inside and outside corporate environments. The need to identify, manage, control and secure a quickly growing web of connections and outside devices is making the already challenging task of security even more important, and onerous. In his session at @ThingsExpo, Rich Boyer, CISO and Chief Architect for Security at NTT i3, discussed new ways of thinking and the approaches needed to address the emerging challenges of security i...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"MobiDev is a Ukraine-based software development company. We do mobile development, and we're specialists in that. But we do full stack software development for entrepreneurs, for emerging companies, and for enterprise ventures," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.