Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Java
Expertise: Advanced
Apr 28, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Accessing and Modifying System Properties with SQL-J

You can access Java system properties within your queries (most useful when running in embedded mode; in server mode, you will see the server's properties, not the client's).
VALUES (CLASS java.lang.System).getProperty('jdbc.drivers') 
Also, there are useful utility functions on the basic types, so you can get system properties in the desired data type:
VALUES TRUE.getBoolean('weblogic.verbose') 
To find out the system directory: 
VALUES (CLASS java.lang.System).getProperty('cloudscape.system.home',
(CLASS java.lang.System).getProperty('user.dir'))
To find out the canonical path of the system directory:
VALUES NEW java.io.File((CLASS java.lang.System).getProperty('cloudscape.system.home', 
(CLASS java.lang.System).getProperty('user.dir'))).getCanonicalPath()
You can also modify system properties this way:
CALL (CLASS java.lang.System).getProperties().
put('cloudscape.storage.pageSize', '8192'
Manoj K.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date