WaveMaker Visual AJAX Studio 4.0 Training

Slides:



Advertisements
Similar presentations
Information Systems Technology Ross Malaga B Copyright © 2005 Prentice Hall, Inc. B-1 WORKING WITH DATABASES.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
15 Copyright © 2005, Oracle. All rights reserved. Container-Managed Relationships (CMRs)
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Addition Facts
Creating Data Entry Screens in Epi Info
SQL: The Query Language Part 2
Costpoint Credit Card Training Log In
Moving from Access Databases to a Visual Studio/SQL Server Solutions Andrew Couch UK Access User Group asc associates
MySQL Access Privilege System
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Access.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
CC SQL Utilities.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Pivot Tables Overview 1. What are Pivot Tables Pivot tables in Excel are a versatile reporting tool that makes it easy to extract information from large.
Microsoft Office Word is an example of ____ software. a. Database b
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
Persistence Jim Briggs 1. 2 Database connectivity: JDBC Java Database Connectivity An API for connecting Java programs (applications, applets and servlets)
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
Addition 1’s to 20.
ACD Training.
Aqua Data Studio. Find the application We are using Aqua Data Studio v11.
TM Graphical Monitoring Electronic Service Tools.
Contract Audit Follow-Up (CAFU) 3.5 Pre-Defined & Ad hoc Reports November 2009 ITCSO Training Academy.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Let’s try Oracle. Accessing Oracle The Oracle system, like the SQL Server system, is client / server. For SQL Server, –the client is the Query Analyser.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
Center for Earned Value Management wInsight – “How to Use” Guide
Using ER/Studio.
WaveMaker Visual AJAX Studio 4.0 Training Studio Overview.
CSCI 6962: Server-side Design and Programming
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
ASP.NET Programming with C# and SQL Server First Edition
WaveMaker Visual AJAX Studio 4.0 Training Basics: LiveVariables.
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
WaveMaker Visual AJAX Studio 4.0 Training Authentication.
WaveMaker Visual AJAX Studio 4.0 Training Installation.
Creating a Web Site to Gather Data and Conduct Research.
INDIANAUNIVERSITYINDIANAUNIVERSITY OneStart page types  Tab – pages across the top, immutable  Section – pages down the left  Subsection – pages under.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Binding Basics.
CS146 References: ORACLE 9i PROGRAMMING A Primer Rajshekhar Sunderraman
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Starting with Oracle SQL Plus. Today in the lab… Connect to SQL Plus – your schema. Set up two tables. Find the tables in the catalog. Insert four rows.
SQL server Section 2&3. What are Data Types Character Data Types Number Data Types Date and Time Data Types CAST and CONVERT functions TRY_PARSE and TRY_CONVERT.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
3 A Guide to MySQL.
Aqua Data Studio.
Presentation transcript:

WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Database Basics

Building your First Application Define Data 2. Build GUI 3. Bind data to GUI Import data in Live Tables Drag-n-drop widgets in Page Designer Connect data to widgets in Page Designer Can deploy app to any Java server Can also import Java and Web Services ** Steps 1 and 2 can be reversed – you can design first then add data

Define Data Database Terminology To access a database in your application, you must import the database schema. Data Model : the representation of a database imported into your WaveMaker project. LiveTable: the representation of a table in your data model Columns: the representation of the columns in your database Relationships: the representation of the foreign key relationships from your database

Define Data Supported Databases All databases that are supported by Hibernate are supported in WaveMaker http://www.hibernate.org/ Built-in Support: PostGreSQL MySQL Oracle DB2 SQL Server Hypersonic SQL DB (HSQLDB)

How to Import a Database Define Data How to Import a Database On the Create & Import menu -> Select Database Import… Opens the Import Database editor Enter settings Click Test Connection If successful, click Import Save the project

Connection Parameters Define Data Connection Parameters Some fields are dependent on type of database imported Service Name – name of the data model in WaveMaker, can be same as database name, alphanumeric characters only Username – login name for database Password – corresponding password for username Database System – select type of database Host – network host for database, default is localhost Port – port number to connect to database Database – name of database to import File – location of HSQLBD database on file system SID – Oracle System Identifier, instance of Oracle running on the server Instance – name of SQL server instance Be sure to give your new data model a good human readable name (In the Service Name field) Different databases require different connection settings DB2 When you import a DB2 database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose DB2. Host: The network host for the DB2database. Default value is localhost. Port: The port number for the DB2 database. Database: The name of the database. HSQLDB When you import an HSQLDB database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose HSQLDB. File: The location of the HSQLDB database on your file system. For example, if your database file is called cmdb and it is in C:\Program Files\WaveMaker, then you would type in: C:\Program Files\WaveMaker\Support\Data\cmdb\cmdb MySQL When you import a MySQL database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose MySQL. Host: The network host for the MySQL database. Default value is localhost. Port: The port number for the MySQL database. Database: The name of the database instance. Oracle When you import an Oracle database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose Oracle. Host: The network host for the Oracle database. Default value is localhost. Port: The port number for the Oracle database. SID: The Oracle System Identifier that refers to the instance of the Oracle database running on the server. The default is ORCL, which is the default SID that is configured when installing your Oracle database. PostgreSQL When you import a PostgreSQL database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose PostgreSQL. Host: The network host for the PostgreSQL database. Default value is localhost. Port: The port number for the PostgreSQL database. SQL Server When you import a SQL Server database, you will need to type the following settings into the “Database Connection” screen: Database System: The type of database you want to import. Choose SQLServer. Host: The network host for the SQL Server database. Default value is localhost. Port: The port number for the SQL Server database. Instance: The name of the SQL Server instance.

Define Data Advanced Options Used when connection to large databases or connecting to an non-support database Connection URL – JDBC connection URL Java Package – Change the default package name for auto generated classes Table Filter – Use to import a subset of tables Schema Filter – Only default schema will be imported, use to import other schemas Driver Class – JDBC driver class name, change to use a different jar file name for import Dialect – Java class name used to map SQL names for Hibernate

Testing your connection Define Data Testing your connection Test Connection – use to verify connection parameters Import – imports the database into WaveMaker, can take several minutes depending on size of database Close – closes the settings dialog box without importing the database Be sure to always test your connect before importing to verify your connection parameters. Import – actually queries the database created

Define Data What are LiveTables? All of the data models available to your application are listed in the tree on the left side of the LiveTables editor Under each data model, all of the LiveTables for that model are listed LiveTable is just a fancy name for a table in which WM has automated producing CRUD functionality Select a LiveTable to see its details in the right side of the editor

Managing LiveTables New – creates a new table in the data model Define Data Managing LiveTables New – creates a new table in the data model Delete – removes a table from the data model New and Delete table only affect the data model and do not change the underlying database unless exported Import Database – brings up the Import Database dialog box to import a new database Connection Settings – brings up dialog box to which allows you to manage the connections to all of the databases used by this application.

Managing Database Connection Settings Define Data Managing Database Connection Settings Connection settings for all databases can be accessed through one dialog box Save – save changed settings Re-Import – overwrites data model Export – pushes data model to database. BE CAREFUL WHEN USING THIS OPTION AS IT WILL DROP AND RECREATE THE TARGET SCHEMA – DATA WILL BE LOST! Will cover exporting in further detail later in this chapter

Re-importing a Database Define Data Re-importing a Database Recommended that database changes be made on the database and changes be re-imported Minor changes should be handled appropriate through the application. Relationships, Addition or deletion of a tables, columns If major changes are made you may need to check functionality within the application to make sure things still work correctly. Changing column names and relationships

Define Data Exporting a Database Exporting a data model from WaveMaker to your database is possible This is recommended for test or new databases only All tables are dropped and recreated You will lose data!

General Settings Define Data Save – any changes made in this editor must be saved using this icon Database – value is dependent on type of database system, generally refers to name space that contains the table Package – Java package name of the data model, if changed will affect all LiveTables in that data model Table Name – table name in the database that the LiveTable references Entity Name – name of the LiveTable All of these fields can be edited

General Settings Define Data Dynamic Insert – if checked, SQL statement sent by WaveMaker to the database does not include empty fields Dynamic Update – if checked, columns that have null values are excluded from SQL update statements Dynamic Insert and Dynamic Update map directly to the Hibernate settings dynamic-insert and dynamic-update. Refresh Entity – if checked, a SQL select statement is run to fetch the row just inserted or updated to include any fields that are set by the underlying database (Example: Date Time Stamps) Dynamic Insert: In WaveMaker Studio, by default, the SQL statement for an insert includes all columns, assigning a null value to any field that doesn’t have a value. When you do an “insert” operation, all empty fields are inserted with “null” values, even if the column has a default value. To get default values to work, check the Dynamic Insert check box. When Dynamic Insert is turned on, the SQL statement that WaveMaker Studio sends to the database does not include empty fields. Dynamic Update: In WaveMaker Studio, by default, the SQL statement for an update includes all columns, assigning a null value to any field that doesn’t have a value. Depending on how the database handles this, fields with existing values might be updated to have a null value. If the Dynamic Insert check box is checked, then columns that have null values are excluded from the SQL update statements. Refresh Entity: Checking Refresh Entity means that we will do a select after each insert and update. If you have default values for insert (like current date), or a trigger that runs on update, then after an insert or update the values in your database will be different than the values we have in memory. In some cases this is not a problem, since the in-memory values will just be thrown away. But if you want to display the database-generated values on the client, you need to select Refresh Entity. When Refresh Entity is selected, we run a SQL select statement to fetch the row you just inserted or deleted. We then update the in-memory values with the ones returned by the SQL select. This option is unchecked by default because of the performance cost of doing a select after every insert or update. NOTE: A database-generated primary key is always returned to the client after an insert. You do not need to select Refresh Entity to get that. NOTE: Dynamic Insert and Dynamic Update map directly to the Hibernate settings dynamic-insert and dynamic-update.

Managing Column’s Define Data Add – adds a column Delete – remove selected column Name – column name Primary Key – if checked, column is the primary key, can only have 1 primary key per LiveTable Foreign Key – true or false Type – column data type Not Null – if checked, column cannot hold null value In the tree, the PK field is represented with a *

Managing Columns Define Data Length – maximum number of characters in column Precision - maximum number of digits used, only for numeric data types Generator – if the column is a primary key, specifies the method of key generation Assigned, identity, sequence, native Params – if a generator is selected, specifies the parameters for that generator, if any Generator types: assigned lets the application assign an identifier to the object before save() is called. This is the default strategy if no <generator> element is specified. identity supports identity columns in DB2, MySQL, MS SQL Server, Sybase and HypersonicSQL. The returned identifier is of type long, short or int. sequence uses a sequence in DB2, PostgreSQL, Oracle, SAP DB, McKoi or a generator in Interbase. The returned identifier is of type long, short or int native picks identity, sequence or hilo depending upon the capabilities of the underlying database

Managing Relationships Define Data Managing Relationships Add – create a relationship to another LiveTable Delete – remove an existing relationship Name – relationship name Related Type – LiveTable referenced Cardinality – to-many or to-one Table Name – name of table in database referenced Column Names – column in LiveTable that is related Cascade Options – method to push changes from master Relationships can be added at the model level and not exported back in the case where the underlying data model does not have the needed relationships defined In the tree, left angle bracket (<) represents one to many relationship In the tree, right angle bracket (>) represents one to one relationship Cascade Options – none, save-update, persist, merge, delete, remove, lock, replicate, evict, refresh, delete-orphan, all

Questions?

Exercise 2 Import classicmodels database These data models will be used in future exercises.