Working with ORDA optimistic locking
4D v17 introduces ORDA, a major evolution in 4D which is opening a world of new possibilities for 4D developers. One of the benefits of using ORDA is related to record locking, because ORDA offers a choice between optimistic and pessimistic locking. After having introduced the ORDA locking mechanisms, we continue the ORDA series so you can discover how to work efficiently with optimistic locking with ORDA.
Locking entities with ORDA
The ORDA series continues! In this blog post, we’ll look at how you can use locks in your databases with ORDA concepts! It’s not uncommon to need to manage conflicts that might occur when several users or processes load and/or attempt to modify the same records at the same time. Record locking is a methodology used in relational databases to avoid inconsistent updates to data.
ORDA provides an optimistic locking mode in addition to the one you already know (pessimistic locking).
Loops, loops and … more loops!
Like many other programming languages, 4D provides the ability to iterate over numbers with a For(…) / End for statement, or over a condition thanks to the While(…)/End while and Repeat/Until(…) keywords. These iterations (or loops) are very useful, but not the most appropriate way to iterate over advanced data types such as collections and entity selections. That’s why the new For each(…)/End for each iterator has been created, to help ease your coding!
Highlights of the technical announcements from 4D Summit 2018!
4D Summit 2018 which took place in Paris and Washington DC recently, was filled with huge product announcements and a plethora of exciting sessions. It was a great experience for everyone who was able to attend! More than 450 attendees were on site to witness a lot of incredible revelations.
In this blog post, we’ll recap the highlights from this year’s 4D Summit.
ORDA: work with objects and collections
In this latest addition to the ORDA series, we’ll look at how the new ORDA concepts can interact with existing objects and collections. In fact, it’s possible to turn entities and entity selections into objects and collections, as well as build entities and entity selections from objects and collections. By doing so, you can easily integrate ORDA code within your existing code. You can take full advantage of ORDA without needing to rewrite your code!
Going back and forth between current selections to ORDA
ORDA is a major innovation of 4D v17, this is why we’re dedicating an entire series of blog posts to ORDA. While ORDA has its own concepts that are very different from the classic approach, it’s still possible to mix ORDA with your existing code.
In a nutshell, this blog post will show you how you can update the current selection of a table from an entity selection and get an entity selection from the current selection of a table. It’ll allow you to smoothly integrate ORDA concepts into your existing 4D code, step by step.
Query your database with an object-oriented approach
After learning how you can create, update, and delete data, here is a new entry in the ORDA series. In this post, you will see how you can query your datastore in an object-oriented mode. With ORDA, queries are lighter, more readable, and you can navigate through the whole data model using object-oriented concepts !
On top of that, ORDA makes it possible to very easily query several related tables, manage recursive relations on the same table, and use several logical operators in a single query. Plus, you don’t have to worry about setting relations between tables … manually or automatically !
Create, update and delete data with ORDA
4D v17 introduces ORDA, a major evolution in 4D which is opening a world of new possibilities for 4D developers. To learn more about ORDA and its benefits, check out this post to see how ORDA will change the way you work. In order to guide you through the ORDA exploration, we’ve prepared a series of blog posts fully dedicated to the core concepts and related features. This blog post will detail how you can perform CRUD operations on your database with ORDA. CRUD is an acronym for the four basic operations you can perform on data: Create, Read, Update, and Delete.
How ORDA will change the way you work
Imagine a way of using your database with an object-oriented approach, without worrying about its physical structure. Imagine that you could maintain multiple current selections at the same time or that you could perform recursive queries in a single line of code. Well, this is now a reality thanks to ORDA! With 4D v17, your code can be written in an object-oriented mode, and you can easily navigate through your entire data model.
ORDA was one of the major announcements of 4D Summit 2018, opening a world of new possibilities in 4D. It’s now time to give you more details about the ORDA features available with 4D v17. To do so, we’ve prepared a series of blog posts dedicated specifically to ORDA core concepts and related features. And we’ll release them, one after another, day after day.
4D v17 BETA STARTS TODAY!
We are thrilled to announce the launch of beta testing for 4D v17! This major release is chock-full of enhancements and new features that one blog post is not enough to cover them!
With that being said, 4D v17 Beta introduces more than +60 advances including improvements to existing functionalities as well as new ones. And if you’re eager to see 4D v17 Beta in action, check out this extensive library of examples (HDIs) to have an overall idea on this release full potential.
So, let’s take a look and discover some of what 4D v17 Beta has in store for you:
- ORDA: a revolutionary concept, making it possible to use your database in an object-oriented approach.
- 4D language: major enhancements to help you boost your productivity with fewer lines of code.
- 4D Write Pro: to create complex business documents.
- Security: the highest security level off the shelf for 4D products.
- 4D View Pro: to display advanced lists and create spreadsheets.
- 4D commands: More 4D commands to enlarge your programming capabilities.
- Flexible tools: to help you design an immersive User Experience.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy