FirstSQL, released as FirstSQL/J, is an Object-Relational Database Management System (ORDBMS) written fully in Java. It provides intermediate level support to the SQL92 standard and full Java object capabilities in the physical database using Java classes. SQL is the data access language and Java Database Connectivity (JDBC) is used as the client interface. In addition to the primitive data types, columns of the database can map to Java Objects. Moreover, stored procedures written in Java can be called by JDBC. Application developers can combine the their database and application code into a single .jar file and execute on any device, embedded system, or server computing platform with a Java Virtual Machine.
The development of FirstSQL/J started in 2001. The first publicly available version, FirstSQL/J v1.0, was released in February 2002. The initial release came in two versions: the Enterprise version to be used by client/server applications and the professional version to be used by embedded desktop applications. FirstSQL/J has since been undergoing continuous development and support. In addition to the original Enterprise and Professional versions, versions to be used for embedded mobile systems and Android devices were released in October 2005 and October 2015, respectively.
Custom API SQL Stored Procedures
All data access to the physical database is through SQL. However, the FirstSQL/J client interface support both SQL and Java (through JDBC). The client application may use Java code
Views are stored underneath as trees of database elements. The supported clauses include GROUP, UNION, and WITH CHECK OPTION as specified in the SQL92 standard.
Decomposition Storage Model (Columnar)
All user data is stored as column values in tables.
Stored Procedures need to be written in Java. They can be called directly using SQL commands or by other Java code in the client application.
Main Memory mode and conventional Disk mode are supported. The two modes cannot be used simultaneously. The physical database either reside in main memory or disk.
The supported SQL foreign key features are cascaded Update and Delete, Self-referencing and Cross-referencing.
Columns can map to Java Objects. Java classes, methods, and inheritance are fully supported in the physical database. They can be managed using JDBC client APIs and accessed using SQL.
The system architecture depends on the configuration being used. In FirstSQL/J Professional Edition, the client application and the DBMS run on the same Java Virtual Machine and thereby the same physical machine. All data is embedded to the DBMS engine. In FirstSQL/J Enterprise Edition, the client application and the DBMS engine run on different Java Virtual Machines and physical machines. The JVM running the DBMS engine is responsible for both execution and storage. The FirstSQL/J server does not support multi-master shared-storage.