A Little More Mihail Stoynov mihail.stoynov.com mihail.stoynov.com
JavaDB A database implemented fully in java Based on Apache Derby SQL-, JDBC- compliant secure Transaction management, stored procedures, triggers, concurrency, and backups 2MB Could be used in J2ME applications, applets
Apache Derby Embedded Derby Runs inside the client’s VM Uses a special driver to load the engine Derby Network Server Runs inside its own VM Opens a port, waits for connections, like a normal DB
Using Derby
JDBC 4.0 XML Support Support for the SQL 2003 XML data type SQL exception handling enhancements Transient and Non-Transient subclasses Auto-loading of JDBC driver class No more Class.forName with DriverManager META-INF/services/java.sql.Driver file
JDBC 4.0 Connection management enhancements Support for ROWID SQL type RowID interface added DataSet implementation of SQL using Annotations Improved support for Large Objects BLOBs, CLOBs
What about the desktop Gray Rect Fix Single Threaded Rendering (STR) Native Look & Feel UxTheme API used LCD Text Table Sorting and Filtering Modal dialogs
What about the desktop Splash screen Can go even before the VM Desktop API Can launch default browser, native mail client… No more scary security dialog box Note: show derbytax New System Tray Functionality
Desktop API System tray functionality
New Security Features and Enhancements Access Microsoft CryptoAPI and Its Cryptographic Services Access PKCS#11 Cryptographic Services (smart cards) Access Native GSS-API (Kerberos) Import and Export PKCS#12 Keystores Access LDAP through JAAS ecurity/enhancements.html ecurity/enhancements.html security/#4 security/#4
Further reading Pluggable annotation processing Plug-ins to the compiler Configured which annotations to process Can check naming conventions, for example ead= ead= Compiler API Control the compiler at runtime
A Little More Mihail Stoynov mihail.stoynov.com mihail.stoynov.com