Upload
danpaclv
View
221
Download
0
Embed Size (px)
Citation preview
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 1/6
Documentation Forums Wiki Bug Database Blog
Log-in
MAIN: The Dev - Community Collaboration Space > Databases and Data Models > HQLDB User's Guide
Download | ContactShow Print
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide
6 09/05/2011 20:00
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 2/6
HQLDB User's Guide
To import an existing HSQLDB database (e.g. the sample 'cmdb' database) from the webapproot
into studio
from the menu bar, click 'Services' and select "Database Service".a.
b. In the database services dialog box, enter input text values as shown below:
c. You can click 'Test Connection' and it should return a successful message as the one shown in the message box below:
d. Click 'Import' should bring the database into your studio. After a successful import, your s tudio should look like this:
search...
Main Menu
The Dev Community Doc
Community Quotes
Wiki Tag Cloud
Wiki Page IndexReleases
What's New
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide
6 09/05/2011 20:00
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 3/6
To create a new database, user leverages the 'Export' feature of HSQLDB
Create your data model and when done, click the 'Database Connections' icon as shown below:a.
b. In the DB connection set tings dialog box, enter information as shown below ( in this case, 'centerice' is the new data model
name and that is also the default name of the underlying HSQLDB we are creating). Because this is the very first time we
create this database, we need to check "Is New HSQL Database" checkbox! Click 'Export' will bring the DDL for dropping
tables (if applicable) and table creation script for user to verify. Just click OK to proceed with exporting the data model. See
the second screen shot below.
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide
6 09/05/2011 20:00
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 4/6
c. To test if the database is created or not, click 'Test Connection' and the message box should display and indicate
successful status. Click 'Close' to complete the Database creation process.
d. To further verify the database is indeed created, go to the 'data' subdirectory under your web app root directory. You should
see the database 'centerice' already exists, see below:
To import a project zip file which contains some HSQL databases under web app root created from
a previous version of WaveMaker studio
unzip your project into your WaveMaker's project directory, in the case below, it is
"C:wm_productprojectsShowcase"
a.
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide
6 09/05/2011 20:00
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 5/6
b. You need to go to the generated data services subdirectory and manually add one property to the property file .properties
as shown in step c. below.
c. In the .properties file, add a property with name 'hsqldbFile' and the value should be your HSQL DB file name. In the sample
case below, it is "showcasedb'
d. Then, you open your project as usual and bring up the Database Connection Settings dialog box. You will see something
like the following. Note: please leave the 'Is New HSQL Database?' checkbox unchecked.
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide
6 09/05/2011 20:00
8/6/2019 HQLDBUsersGuide
http://slidepdf.com/reader/full/hqldbusersguide 6/6
Comments (0) Attachments (13) History Information
e. Click 'Save'. This will update the system's property to point to your newly imported project's web app root and therefore the
new HSQLDB directory. Note: you do NOT need to do anything in this dialog box, just clicking the 'Save' button will fulfill your
needs to update properties. You are all set and ready to go.
f. For projects exported with the current version of WaveMaker studio 5.0, user can skip the manual steps b. and c and go
straight to step d. to update the db connection settings as described in e.
LAST MODIFIED BY LRAMIREZ ON 04/05/2009 AT 05:49
No comments for this document
© 2011 WAVEMAKER SOFTWARE™ ALL RIGHTS RESERVED.
LDBUsersGuide http://dev.wavemaker.com/wiki/bin/Main/HQLDBUsersGuide