JADE (programming language): Difference between revisions

No edit summary
Line 1: Line 1:
[[Image:Jadelogo.PNG|thumb|The JADE logo]]
[[Image:Jadelogo.PNG|thumb|The JADE logo]]
'''JADE''' is an [[object-oriented programming]] language that exhibits a seamlessly integrated [[object-oriented database management system]]. It is designed to be an end-to-end development environment, which allows systems to be coded in one language from the [[database server]] right down to the [[client (computing)|client]]s.
'''JADE''' is an [[object-oriented programming]] language that exhibits a seamlessly integrated [[application server]] and  [[object-oriented database management system]]. It is designed to be an end-to-end development environment, which allows systems to be coded in one language from the [[database server]] right down to the [[client (computing)|client]]s.


As a programming language, its main competitors are [[Java (programming language)|Java]] and [[C sharp|C#]], while as a database it competes with other object-oriented database and [[post-relational database]]s such as [[Caché]] and [[Matisse (DBMS)|Matisse]] as well as traditional relational database software packages such as [[Oracle database|Oracle]] and [[Microsoft SQL Server]].  
As a programming language, its main competitors are [[Java (programming language)|Java]] and [[C sharp|C#]], while as a database it competes with other object-oriented database and [[post-relational database]]s such as [[Caché]] and [[Matisse (DBMS)|Matisse]] as well as traditional relational database software packages such as [[Oracle database|Oracle]] and [[Microsoft SQL Server]].  


As a proprietary language its usage requires per-process fees to be paid. A free limited licence is available for development.
Usage of the JADE platform requires per-process fees to be paid. A free limited licence is available for development.


==Language==
==Language==
In terms of syntax, JADE is very similar to [[Pascal programming language|Pascal]]; its syntax is based on the language [[Modula-2]], which itself was derived from Pascal. As a newer language, JADE includes innovations not present in either Pascal or Modula-2, however it lacks certain features of other modern object-oriented languages such as C# and Java.
In terms of syntax, JADE is very similar to [[Pascal programming language|Pascal]]; its syntax is based on the language [[Modula-2]], which itself was derived from Pascal. As a newer language, JADE includes innovations not present in either Pascal or Modula-2, however it lacks certain features of other modern object-oriented languages such as C# and Java.


===Programming model===
===Programming model===
Line 23: Line 23:


===Object-oriented Database===
===Object-oriented Database===
The most striking difference between JADE and other object-oriented programming languages is that its object-oriented database is a native part of its language. For example, when creating an object in JADE, it can be created as transient or persistent. Creating an object as '''transient''' is just the same as creating objects in other object-oriented programming languages. The object is simply created in memory, and then lost when the program ends. On the other hand, when an object is created as '''persistent''', when the program ends, the object will still exist and be there the next time the program starts up. In other words, when an object is persistent JADE automatically works in the background to store and retrieve the object in the database when necessary.  
The most striking difference between JADE and other object-oriented programming languages is that its object-oriented database is a native part of its language. For example, when creating an object in JADE, it can be created as transient or persistent. Creating an object as '''transient''' is just the same as creating objects in other object-oriented programming languages. The object is simply created in memory, and then lost when the program ends. On the other hand, when an object is created as '''persistent''', when the program ends, the object will still exist and be there the next time the program starts up. In other words, when an object is persistent JADE automatically works in the background to store and retrieve the object in the database when necessary. Persistent objects can be distributed across multiple co-operating application servers, with JADE automatically handling object caching and cache coherency.


There are very few differences between manipulating transient and persistent objects. It has been said that JADE makes it ''appear'' to the programmer as if all the objects in the entire database were in local memory. Most of the time, JADE's object-oriented database is used in a multi-user system, and so this statement could be extended to say that JADE makes it appear to the programmer as if all the objects in the database were stored in some shared memory that all users connected to the system could access, even from different computers.  
There are very few differences between manipulating transient and persistent objects. It has been said that JADE makes it ''appear'' to the programmer as if all the objects in the entire database were in local memory. Most of the time, JADE's object-oriented database is used in a multi-user system, and so this statement could be extended to say that JADE makes it appear to the programmer as if all the objects in the database were stored in some shared memory that all users connected to the system could access, even from different computers.  
Line 29: Line 29:
With all of the program code centralised on the database server as well the data, JADE achieves its goal of an end-to-end system, as JADE presents such a level of abstraction that all the client nodes can be programmed as if they were running on the database server. This is very desirable to most database programmers as they don't have to take a number of different technologies and link them together, they just create one application for everything.
With all of the program code centralised on the database server as well the data, JADE achieves its goal of an end-to-end system, as JADE presents such a level of abstraction that all the client nodes can be programmed as if they were running on the database server. This is very desirable to most database programmers as they don't have to take a number of different technologies and link them together, they just create one application for everything.


The object-oriented database JADE uses is also inherently object-oriented, and so it eliminates the performance loss in an [[Object-relational mapping]] system where objects must constantly be converted from their object-oriented form to their relational form. Also like all other commercial database products, JADE has all of the standard features such as atomic transactions, locking, rollback, crash recovery and the ability to keep a [[Secondary database server]] synchronised with the main database for reliability and performance reasons.
The object-oriented database JADE uses is also inherently object-oriented, and so it eliminates the performance loss in an [[Object-relational mapping]] system where objects must constantly be converted from their object-oriented form to their relational form. Also like all other commercial database products, JADE is ACID-compliant and has all of the standard features such as atomic transactions, locking, rollback, crash recovery and the ability to keep a [[Secondary database server]] synchronised with the main database for reliability and performance reasons.


===Three-tier model===
===Three-tier model===
Often for database-driven software, the [[Three-tier (computing)|three-tier]] methodology is followed. This involves applications being split into three tiers — data storage, processing and presentation. Multiple computers, called [[Node (networking)|nodes]] may be involved in each tier, and each has a different name. Database servers handle data storage, application servers handle processing and presentation clients provide the user interface. Traditionally, these three tiers would be created by combining three programs and having them talk to each other to create a single system. Having the different programs separate like this has many advantages, the main point that the system becomes scalable — that is, increasing the power of the system simply involves adding more nodes.  
Often for database-driven software, the [[Three-tier (computing)|three-tier]] methodology is followed. This involves applications being split into three tiers — data storage, processing and presentation. In the data storage and processing tiers, JADE systems are a collection of co-operating servers, called [[Node (networking)|nodes]], and multiple nodes may be involved in each tier. Each type of node has a different name and all are capable of manipulating objects and executing business logic. A collection of nodes can be deployed across one or several machines. Database servers handle data storage and can also execute business logic, while application servers handle processing. In a three-tier model, presentation clients provide the user interface. JADE also provides a two-tier client that combines the capabilities of an application server and presentation client. Traditionally, these three tiers would be created by combining three programs and having them talk to each other to create a single system. Having the different programs separate like this has many advantages, the main point that the system becomes scalable — that is, increasing the power of the system simply involves adding more nodes.  


Designing a system like this gives the programmer a decision to consider every time they want to code in a particular function. They need to decide whether the function would run best on the database server, application server or presentation client before they begin coding as it will be difficult to change that decision once the functionality is coded into one of the tiers.  
Designing a system like this gives the programmer a decision to consider every time they want to code in a particular function. They need to decide whether the function would run best on the database server, application server or presentation client before they begin coding as it will be difficult to change that decision once the functionality is coded into one of the tiers.  


This is different for JADE applications, as they are coded as one application from end-to-end. When creating a JADE application, the programmer can think as if they were creating a program that will be running on the database server — as if all the data storage, processing and presentation were happening on one computer. When the program runs on three tiers, JADE automatically knows to run all the code by default on the application server, and to send database requests up to the database server and user interface information down to the presentation client. However, it is very easy for the programmer to switch the location at which a particular method is run and move it up to the database server or down to the presentation client by changing the method properties. Because of this, the decision on where a particular piece of code should run can be made late in the development cycle, and refactoring code to run on different parts of the system ends up being a lot easier because of the way JADE allows end-to-end development of software.
This is different for JADE applications, as they are coded as one application from end-to-end. When creating a JADE application, the programmer can think as if they were creating a program that will be running on the database server — as if all the data storage, processing and presentation were happening on one computer. When the program runs on three tiers, JADE automatically knows to run all the code by default on the application server, and to send database requests up to the database server and user interface information down to the presentation client. However, it is very easy for the programmer to switch the location at which a particular method is run and move it to a different tier by changing the method signature. Because of this, the decision on where a particular piece of code should run can be made late in the development cycle, and refactoring code to run on different parts of the system ends up being a lot easier because of the way JADE allows end-to-end development of software.


===Types of Clients===
===Types of Clients===
Line 47: Line 47:


====JADE Forms====
====JADE Forms====
JADE Forms applications are made up of forms, as the name suggests. Client need to connect through the JADE '''Smart [[Thin client|Thin Client]]''' or '''Standard Client''' to be able to run applications that use JADE Forms.  
JADE Forms applications are made up of forms, as the name suggests. Clients need to connect through the JADE '''Smart [[Thin client|Thin Client]]''' or '''Standard Client''' to be able to run applications that use JADE Forms.  


The '''Smart Thin Client''' works by connecting to an '''Application Server''' which generally does all the processing on behalf of the Smart Thin Client, meaning the thin client only needs to be responsible for displaying forms and taking input. This means the computer running the thin client does not have to be a very powerful computer, and it does not require a fast network connection as it is not loading data from the database — JADE thin clients are often run over a dial-up connection. This is the reason they are called '''thin''' clients, as there is not a heavy requirement on computational power to run these clients. However, as was stated in the last section, it is possible for the programmer to choose to run particular pieces of code on the thin client if it is to the benefit of performance, hence the word '''smart''' in Smart Thin Client.  
The '''Smart Thin Client''' works by connecting to an '''Application Server''' which generally does all the processing on behalf of the Smart Thin Client, meaning the thin client only needs to be responsible for displaying forms and taking input. This means the computer running the thin client does not have to be a very powerful computer, and it does not require a fast network connection as it is not loading data from the database — JADE thin clients are often run over a dial-up connection. This is the reason they are called '''thin''' clients, as there is not a heavy requirement on computational power to run these clients.  


The '''Standard Client''' is just the '''Smart Thin Client''' combined with the '''Application Server''' on one machine. In this case, the node running the client does all of the processing as well as the presentation. Standard clients have greater demands on computational power than thin clients, as they must load data from the database as well as do their own processing.  
The '''Standard Client''' is just the '''Smart Thin Client''' combined with the '''Application Server''' on one machine. In this case, the node running the client does all of the processing as well as the presentation. Standard clients have greater demands on computational power than thin clients, as they must load data from the database as well as do their own processing.  
Line 55: Line 55:
The advantages of using JADE Forms include:
The advantages of using JADE Forms include:
* Out of the three kinds of clients, JADE Forms provide the shortest development time of JADE applications.
* Out of the three kinds of clients, JADE Forms provide the shortest development time of JADE applications.
* Allows developers to use the same technology end to end.  
* Allows developers to use the same technology end-to-end.  
* Smart thin clients can be packaged up so they can be installed and run on client computers in several clicks.  
* Smart thin clients can be packaged up so they can be installed and run on client computers in several clicks.  


Line 74: Line 74:


====Web services====
====Web services====
[[Web services]] are used to allow different programs to communicate with each other from remote locations in an object-oriented form. Web services cannot be accessed directly by human users. One of the uses of web services with JADE is to allow other technologies such as .NET or Java to use JADE as the backend object-oriented database.
[[Web services]] are used to allow different programs to communicate with each other from remote locations in an object-oriented form. Web services cannot be accessed directly by human users. One of the uses of Web services with JADE is to allow other technologies such as .NET or Java to use JADE as the backend object-oriented database. Web services also allow JADE systems to interoperate with services provided by other non-JADE systems.


====Other client types====
====Other client types====
JADE is also capable of interfacing with other programs through DLL calls. This allows other programs to access objects and execute methods, and could be used to provide a different interface to a JADE application.
JADE is also capable of interfacing with other programs through DLL calls and ActiveX/COM objects. This allows other programs to access objects and execute methods, and could be used to provide a different interface to a JADE application. Due for release in September 2007, JADE 6.2 will provide a Java API, .NET Assembly integration and the ability to run Smart Thin Clients on Windows Mobile devices.


===Multilingual capabilities===
===Multilingual capabilities===
Line 88: Line 88:


===Portability===
===Portability===
Currently JADE applications can be run end-to-end on Windows and Linux. Similar to Java, JADE strives to allow programmers to develop applications once and be able to allow them to run on both of these platforms with minimal changes.
Currently JADE applications can be run end-to-end on Windows and Linux. Similar to Java, JADE strives to allow programmers to develop applications once and be able to allow them to run on both of these platforms with minimal changes. JADE 6.2 will allow Smart Thin Clients and a specialized Standard Client to run on Windows Mobile devices.


==Code Examples==
==Code Examples==
Line 111: Line 111:


==History==
==History==
JADE was originally conceived by [[Gil Simpson|Sir Gil Simpson]] and is currently maintained by the Jade Software Corporation. The first version of JADE was JADE 3, released September 1996. Since then, JADE has grown in popularity and now powers mission-critical information systems that are relied upon by some of the most important corporations in the world. JADE is used throughout all the public hospitals in Australia's Northern Territory and powers the scheduling software for Britain's largest rail freight operator. Currently, the latest version of JADE is JADE 6.1.
JADE was originally conceived by [[Gil Simpson|Sir Gil Simpson]] and is currently developed by the Jade Software Corporation. The first version of JADE was JADE 3, released September 1996. Since then, JADE has grown in popularity and now powers mission-critical information systems that are relied upon by some of the most important corporations in the world. JADE is used throughout all the public hospitals in Australia's Northern Territory and powers the scheduling software for Britain's largest rail freight operator. Currently, the latest version of JADE is JADE 6.1. JADE 6.2 is due for release in September 2007.


==See also==
==See also==
Line 122: Line 122:
===Official websites===
===Official websites===
* [http://www.jadeworld.com/ Jade Software Corporation]
* [http://www.jadeworld.com/ Jade Software Corporation]
* [http://www.jadeworld.com/jade/ JADE 6 Download Page]
* [http://www.jadeworld.com/jade/ JADE 6 Home Page]
* [http://www.jadeworld.com/jade/getjade/ JADE 6 Download Page]
* [http://www.jadeworld.com/jet/ LINC 4GL migration to a new open Jade system]
* [http://www.jadeworld.com/jet/ LINC 4GL migration to a new open Jade system]


===Tutorials and resources===
===Tutorials and resources===
* [http://www.jader.co.nz/ Examples and Tutorials for Jade Programmers]
* [http://www.jadeworld.com/jade/tutorials/ JADE Tutorials]
* [http://www.jader.co.nz/ Examples and Tutorials for JADE Programmers]


===Media coverage===
===Media coverage===
* [http://www.enterprisenetworksandservers.com/monthly/art.php?1899 JADE 6.1 delivers data replication to Microsoft SQL Server], Enterprise Networks & Servers
* [http://www.enterprisenetworksandservers.com/monthly/art.php?1899 JADE 6.1 delivers data replication to Microsoft SQL Server], Enterprise Networks & Servers]
* [http://www.jadeworld.com/downloads/news/2006/pr_JADE_ID_Review_MarApr06.pdf JADE review in the March/April edition of International Developer magazine]


[[Category:Algol programming language family]]
[[Category:Algol programming language family]]