UINF/PAZ1c epizóda 5

Size: px
Start display at page:

Download "UINF/PAZ1c epizóda 5"

Transcription

1 UINF/PAZ1c epizóda 5

2 JavaFx čo už vieme udalosťami riadené programovanie javiská a scény komponenty (prvky scény) = ovládanie prvky (control), kontajnery (layout), grafy, kreslenie,... kreovanie scény v kóde vs. FXML súbory a ich naťahovanie do javy kontroléry a ich napojenie na scénu napĺňanie a zmena modelov komponentov, reakcie na udalosti na komponentoch udalosti eventhandler-y

3 Model pre ListView UsersManager GUI: 3.vrstva trojvrstvového modelu aplikácie komponent : ListView<User> model: ObservableList<User> users: List<User> jozko: User vykresľuje jozka: User fero: User

4 Model View Controller (MVC) Odchytáva používateľské akcie Prekresľuje GUI, keď sa dozvie zmenu modelu Kompomenty ListView,Button, TextField,... View číta mení pri editácii udalosti šteluje vzhľad komponentov model sa zmenil Model Spracováva vstup od používateľa Mení alebo vymieňa model Controller Zachováva zobrazovaný obsah Poskytuje dáta pre View, keď ich potrebuje UsersManagerMainController číta, modifikuje ObservableList, StringProperty,...

5 TextField Vstupno-výstupný komponent Jeho model môžeme meniť z kódu aj editáciou používateľa V našom prípade máme 2 textové políčka Meno, Každý má svoj (skrytý) model reťazcového typu nevieme ho nahradiť svojím Vieme ho čítať cez textfield.gettext() a nastavovať cez textfield.settext() V obsluhe tlačidla Pridaj používateľa môžeme obe hodnoty vytiahnuť, vytvoriť a vyskladať objekt typu používateľ a poslať ho do úložiska

6 Model modelov Skutočným spoločným modelom oboch textových políčok z nášho pohľadu je používateľ Meno a sú iba jeho atribúty Vyrobme si UserFxModel Jeho atribúty budú modely pre komponenty javafx.beans.property.stringproperty Ak mu niekto zmení hodnotu cez setter, poslucháči sú informovaní Takýchto XxxProperty je celá kopa podľa vnútorného typu boolean, double, float, integer, long, list, map, set, object Vieme ich prepojiť s modelom TextFieldu

7 UserFxModel public class UserFxModel { private StringProperty name = new SimpleStringProperty();... public String getname() { return name.get(); public void setname(string name) { this.name.set(name); public StringProperty nameproperty() { return name;... Ten, kto počúva na udalosti zmeny hodnoty, bude informovaný Volajú tí, ktorí chcú reagovať na udalosti zmeny hodnoty

8 Prepojenie na model komponentu public class UserFxModel { private StringProperty name = new SimpleStringProperty();... public String getname() { return name.get(); public void setname(string name) { this.name.set(name); public StringProperty nameproperty() { return name;... Obojsmerné informovanie o udalostiach zmien nametextfield.textproperty().bindbidirectional(user.nameproperty());

9 Prepojenie na model komponentu nametextfield.textproperty().bindbidirectional(user.nameproperty()); nametextfield: TextField text: StringProperty editácia používateľa user.setname(...) user: UserFxModel name: StringProperty StringProperty

10 Kontrolér s modelom používateľa public class UsersManagementMainController { private UserDao userdao = UserDaoFactory.INSTANCE.getUserDao(); private UserFxModel currentusermodel = new UserFxModel(); void initialize() { nametextfield.textproperty().bindbidirectional(currentusermodel.nameproperty()); textfield.textproperty().bindbidirectional(currentusermodel. property()); adduserbutton.setonaction(new EventHandler<ActionEvent>() { public void handle(actionevent event) { userdao.add(currentusermodel.getuser()); );. public class UserFxModel {... public void getuser() { User copy = new User(); copy.setname(getname()); return copy;...

11 Kontrolér s modelom používateľa public class UsersManagementMainController { private UserDao userdao = UserDaoFactory.INSTANCE.getUserDao(); private UserFxModel currentusermodel = new UserFxModel(); void initialize() { nametextfield.textproperty().bindbidirectional(currentusermodel.nameproperty()); textfield.textproperty().bindbidirectional(currentusermodel. property()); adduserbutton.setonaction(new EventHandler<ActionEvent>() { public void handle(actionevent event) { userdao.add(currentusermodel.getuser()); );. Toto nie je univerzálne správne riešenie. Sú aj iné prístupy. Závisí od okolností. Entity perzistetnej vrstvy by mali byť serializovateľné, čo FX Properties nie sú. Najväčšiemu množstvu chýb sa vyhneme, ak entity pre a z perzistentnej vrstvy sú nemenné a mení sa iba ich model. public class UserFxModel {... public void getuser() { User copy = new User(); copy.setname(getname()); return copy;...

12 Pre fajnšmekrov dlhé akcie v inom vlákne adduserbutton.setonaction(new EventHandler<ActionEvent>() { public void handle(actionevent event) { Task<User> addusertask = new Task<User>() { public Clovek call() throws Exception { return userdao.add(currentusermodel.getuser()); ; úloha pre vlákno mimo FX Application Thread addusertask.setonsucceeded(new EventHandler<WorkerStateEvent>() { public void handle(workerstateevent e) { User user = addusertask.getvalue(); currentusermodel.setuser(user); ); spracovanie výsledných dát po úspešnom vykonaní úlohy (deje sa v FX Application Thread) ); Thread th = new Thread(addUserTask); th.setdaemon(true); th.start(); spustenie úlohy v samostatnom vlákne

13 Myslíte si, že si s údajmi v pamäti a textovom súbore vystačíte navždy?

14

15 Relačné databázy dominantný spôsob ukladania dát hojný výskum kilá implementácií

16 Naša entita User v relačnej databáze CREATE TABLE user ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(45) NOT NULL, VARCHAR(80), last_login DATETIME, PRIMARY KEY (`id`) );

17

18

19 JDBC Funkčné, ale ťažkopádne Potenciálne nebezpečné Nutnosť korektne obsluhovať a uvoľňovať prostriedky V tutoriáloch sa kvôli prehľadnosti ignorujú závažné chyby

20 DB spojenia Časté vytváranie spojenia je drahé Bežne chceme niekoľko dopytov za sekundu Robiť všetko cez jedno trvalé spojenie je pomalé Trpíme: head of line blocking krátke dopyty zbytočne čakajú na predchádzajúce dlhé operácie Typicky databáza dovolí max paralelných spojení Potrebujeme to nejako spravovať

21 Budujme lepšie enterprise aplikácie

22 Spring JDBC DataSource MySqlDataSource HSQL DataSource komunikácia s DB JdbcTemplate spúšťanie SQL

23

24 Maven Dotiahne nám vyžiadaný jar balíček aj všetky závislosti, ktoré potrebuje Do spoločného lokálneho úložiska pre všetky naše projekty (žiadna duplicita) C:\users\peto\.m2\repository Doplní nám potrebné balíčky do CLASSPATH

25 Maven Prvé kroky: Maven central repository prakticky všetky rozumné open-source knižnice a frameworky Rozširujeme Project Object Model (pom.xml) Maven: Mnoho build funkcionality automatické testovanie pred nasadením, zostavenie a nasadenie aplikácie, zostavovanie projektu z vlastných modulov podľa závislostí ďalšie rozšírenie cez mnohé pluginy (napr. spustenie servletového kontajnera, SQL skriptov,...)

26 mysql-connector-java spring-jdbc

27 Inicializácia MysqlDataSource datasource = new MysqlDataSource(); datasource.setdatabasename("user-management"); datasource.setuser("paz1c"); datasource.setpassword("paz1cisgreat"); JdbcTemplate jdbctemplate = new JdbcTemplate(dataSource);

28 Dopyty String sql = SELECT id, name, , last_login FROM user ; RowMapper<User> rowmapper = new UserRowMapper(); List<User> users = jdbctemplate.query(sql, rowmapper); Pre každý riadok výslednej tabuľky sa zavolá metóda maprow() objektu rowmapper mapovač vráti jednu inštanciu triedy User Metóda query() vyzbiera všetky inštancie a vráti ich ako zoznam

29 Dopyty String sql = SELECT id, name, , last_login FROM user ; RowMapper<User> rowmapper = new UserRowMapper(); List<User> users = jdbctemplate.query(sql, rowmapper); public class UserRowMapper implements RowMapper<User> { public User maprow(resultset rs, int rownum) throws SQLException { User user = new User(); user.setid(rs.getint( id )); /* ďalšie volania setterov */ return user;

30

UINF/PAZ1c epizóda 6

UINF/PAZ1c epizóda 6 UINF/PAZ1c epizóda 6 Zmena dát cez JDBCTemplate String sql = INSERT INTO user (name, email, last_login) VALUES (?,?,?) ; jdbctemplate.update(sql, user.getname(), user.getemail(), user.getlastlogin());

More information

Databázy (1) Prednáška 11. Alexander Šimko

Databázy (1) Prednáška 11. Alexander Šimko Databázy (1) Prednáška 11 Alexander Šimko simko@fmph.uniba.sk Contents I Aktualizovanie štruktúry databázy Section 1 Aktualizovanie štruktúry databázy Aktualizácia štruktúry databázy Štruktúra databázy

More information

SPRING DECLARATIVE TRANSACTION MANAGEMENT

SPRING DECLARATIVE TRANSACTION MANAGEMENT SPRING DECLARATIVE TRANSACTION MANAGEMENT http://www.tutorialspoint.com/spring/declarative_management.htm Copyright tutorialspoint.com Declarative transaction management approach allows you to manage the

More information

VYLEPŠOVANIE KONCEPTU TRIEDY

VYLEPŠOVANIE KONCEPTU TRIEDY VYLEPŠOVANIE KONCEPTU TRIEDY Typy tried class - definuje premenné a metódy (funkcie). Ak nie je špecifikovaná inak, viditeľnosť členov je private. struct - definuje premenné a metódy (funkcie). Ak nie

More information

Spájanie tabuliek. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)

Spájanie tabuliek. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) Spájanie tabuliek Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 Úvod pri normalizácii rozdeľujeme databázu na viacero tabuliek prepojených cudzími kľúčmi SQL umožňuje tabuľky opäť spojiť

More information

Databázové systémy. SQL Window functions

Databázové systémy. SQL Window functions Databázové systémy SQL Window functions Scores Tabuľka s bodmi pre jednotlivých študentov id, name, score Chceme ku každému doplniť rozdiel voči priemeru 2 Demo data SELECT * FROM scores ORDER BY score

More information

Poradové a agregačné window funkcie. ROLLUP a CUBE

Poradové a agregačné window funkcie. ROLLUP a CUBE Poradové a agregačné window funkcie. ROLLUP a CUBE 1) Poradové a agregačné window funkcie 2) Extrémy pomocou DENSE_RANK(), TOP() - Príklady 3) Spriemernené poradia 4) Kumulatívne súčty 5) Group By a Datepart,

More information

Aplikačný dizajn manuál

Aplikačný dizajn manuál Aplikačný dizajn manuál Úvod Aplikačný dizajn manuál je súbor pravidiel vizuálnej komunikácie. Dodržiavaním jednotných štandardov, aplikácií loga, písma a farieb pri prezentácii sa vytvára jednotný dizajn,

More information

Testovanie bieleho šumu

Testovanie bieleho šumu Beáta Stehlíková FMFI UK Bratislava Opakovanie z prednášky Vygenerujeme dáta Vygenerujeme dáta: N

More information

Part 2. can be held on-site at your organization.

Part 2. can be held on-site at your organization. 2008 coreservlets.com Spring JDBC Part 2 Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/spring.html Customized Java EE Training: http://courses.coreservlets.com/

More information

JAVA. Aspects (AOP) AspectJ

JAVA. Aspects (AOP) AspectJ JAVA Aspects (AOP) AspectJ AOP Aspect-oriented programming separation of concerns concern ~ a part of program code related to a particular functionality typically understood as an extension of OOP solves

More information

Databázy (1) Prednáška 08. Alexander Šimko

Databázy (1) Prednáška 08. Alexander Šimko Databázy (1) Prednáška 08 Alexander Šimko simko@fmph.uniba.sk Contents I Subqueries (poddopyty) konštrukcia WITH Section 1 Subqueries (poddopyty) Subquery (poddopyt) Použitie SELECTu na mieste, kde sme

More information

Copyright 2016 by Martin Krug. All rights reserved.

Copyright 2016 by Martin Krug. All rights reserved. MS Managed Service Copyright 2016 by Martin Krug. All rights reserved. Reproduction, or translation of materials without the author's written permission is prohibited. No content may be reproduced without

More information

systemove programovanie win32 programovanie

systemove programovanie win32 programovanie systemove programovanie win32 programovanie zakladny princip uzivatel interaguje so systemom klavesnicou, mysou tym generuje udalosti, ktore sa radia do,,message queue" (front sprav) aplikacia vytahuje

More information

Vzory, rámce a webové aplikácie

Vzory, rámce a webové aplikácie Vzory, rámce a webové aplikácie Jakub Šimko jakub.simko@stuba.sk Návrhové vzory (načo slúžia?) 1. Dobré zvyky v programovaní 2. Riešia často sa opakujúce problémy praxou overeným spôsobom 3. Pomôžu nám

More information

Továrne na všetko ÚINF/PAZ1c (Róbert Novotný) a asociácie

Továrne na všetko ÚINF/PAZ1c (Róbert Novotný) a asociácie Továrne na všetko 24. 11. 2011 ÚINF/PAZ1c (Róbert Novotný) a asociácie TOVÁRNE NA VŠETKO Továreň na jednu vec zatiaľ sme mali továrne na jeden typ objektov public enum VyhľadávačFactory { INSTANCE; public

More information

Obsah. SOA REST REST princípy REST výhody prest. Otázky

Obsah. SOA REST REST princípy REST výhody prest. Otázky REST Peter Rybár Obsah SOA REST REST princípy REST výhody prest Otázky SOA implementácie WEB (1990) CORBA (1991) XML-RPC (1998) WS-* (1998) SOAP RPC/literal SOAP Document/literal (2001) REST (2000) SOA

More information

Data Access on Tourism Resources Management System Based on Spring JDBC Jifu Tong

Data Access on Tourism Resources Management System Based on Spring JDBC Jifu Tong 3rd International Conference on Education, Management, Arts, Economics and Social Science (ICEMAESS 2015) Data Access on Tourism Resources Management System Based on Spring JDBC Jifu Tong Higher Professional

More information

Java Programming Fundamentals

Java Programming Fundamentals Java Programming Fundamentals Course JAVAB Five Days Instructor-led Hands on This five-day, instructor-led course helps any programmer learn Java faster and better than ever before: It's the one Java course

More information

1 Komplexný príklad využitia OOP

1 Komplexný príklad využitia OOP 1 Komplexný príklad využitia OOP Najčastejším využitím webových aplikácií je komunikácia s databázovým systémom. Komplexný príklad je preto orientovaný práve do tejto oblasti. Od verzie PHP 5 je jeho domovskou

More information

This tutorial will take you through simple and practical approaches while learning JDBC framework provided by Spring.

This tutorial will take you through simple and practical approaches while learning JDBC framework provided by Spring. About the Tutorial Spring JDBC Framework takes care of all the low-level details starting from opening the connection, preparing and executing the SQL statement, processing exceptions, handling transactions,

More information

SQream Connector JDBC SQream Technologies Version 2.9.3

SQream Connector JDBC SQream Technologies Version 2.9.3 SQream Connector JDBC 2.9.3 SQream Technologies 2019-03-27 Version 2.9.3 Table of Contents The SQream JDBC Connector - Overview...................................................... 1 1. API Reference............................................................................

More information

Working with Databases and Java

Working with Databases and Java Working with Databases and Java Pedro Contreras Department of Computer Science Royal Holloway, University of London January 30, 2008 Outline Introduction to relational databases Introduction to Structured

More information

Registrácia účtu Hik-Connect

Registrácia účtu Hik-Connect Registrácia účtu Hik-Connect Tento návod popisuje postup registrácie účtu služby Hik-Connect prostredníctvom mobilnej aplikácie a webového rozhrania na stránke www.hik-connect.comg contents in this document

More information

Step By Step Guideline for Building & Running HelloWorld Hibernate Application

Step By Step Guideline for Building & Running HelloWorld Hibernate Application Step By Step Guideline for Building & Running HelloWorld Hibernate Application 1 What we are going to build A simple Hibernate application persisting Person objects The database table, person, has the

More information

Week 12 Thursday. For milestone #2 and #3, also submit a screenshot of your GUI once it is launched.

Week 12 Thursday. For milestone #2 and #3, also submit a screenshot of your GUI once it is launched. Week 12 Thursday D-Teams have been created Create your A-Team by Friday, or let me know to assign you earlier. Team Project: Tournament-Bracket (D-Team 30 pts) Milestone #1: due before 10pm THIS Friday,

More information

CO Java SE 7: Develop Rich Client Applications

CO Java SE 7: Develop Rich Client Applications CO-67230 Java SE 7: Develop Rich Client Applications Summary Duration 5 Days Audience Application Developers, Java Developer, Java EE Developer Level Professional Technology Java SE 7 Delivery Method Instructor-led

More information

The Object-Oriented Paradigm. Employee Application Object. The Reality of DBMS. Employee Database Table. From Database to Application.

The Object-Oriented Paradigm. Employee Application Object. The Reality of DBMS. Employee Database Table. From Database to Application. The Object-Oriented Paradigm CS422 Principles of Database Systems Object-Relational Mapping (ORM) Chengyu Sun California State University, Los Angeles The world consists of objects So we use object-oriented

More information

Event-Driven Programming with GUIs. Slides derived (or copied) from slides created by Rick Mercer for CSc 335

Event-Driven Programming with GUIs. Slides derived (or copied) from slides created by Rick Mercer for CSc 335 Event-Driven Programming with GUIs Slides derived (or copied) from slides created by Rick Mercer for CSc 335 Event Driven GUIs A Graphical User Interface (GUI) presents a graphical view of an application

More information

What is Transaction? Why Transaction Management Required? JDBC Transaction Management in Java with Example. JDBC Transaction Management Example

What is Transaction? Why Transaction Management Required? JDBC Transaction Management in Java with Example. JDBC Transaction Management Example JDBC Transaction Management in Java with Example Here you will learn to implement JDBC transaction management in java. By default database is in auto commit mode. That means for any insert, update or delete

More information

D.Signer prostriedok pre vytváranie zaručeného elektronického podpisu. Inštalačná príručka

D.Signer prostriedok pre vytváranie zaručeného elektronického podpisu. Inštalačná príručka D.Signer prostriedok pre vytváranie zaručeného elektronického podpisu Inštalačná príručka Obsah 1 Predpoklady pre inštaláciu D.Signer... 3 1.1 Inštalácia.NET Framework... 3 1.1.1 Windows 8, 8.1... 4 1.1.2

More information

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline Object-Oriented Programming (OOP) concepts Introduction Abstraction Encapsulation Inheritance Polymorphism Getting started with

More information

San Francisco. Clouds in My Coffee: Java on Mobile for ios and Android with Cloud Data. October 23, 2018

San Francisco. Clouds in My Coffee: Java on Mobile for ios and Android with Cloud Data. October 23, 2018 San Francisco October 23, 2018 Clouds in My Coffee: Java on Mobile for ios and Android with Cloud Data Paul Anderson Gail Anderson Anderson Software Group, Inc. asgteach.com 2018 Anderson Software Group

More information

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I http://www.tutorialspoint.com HIBERNATE MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Hibernate Framework. You can download these sample mock tests

More information

sqoop Automatic database import Aaron Kimball Cloudera Inc. June 18, 2009

sqoop Automatic database import Aaron Kimball Cloudera Inc. June 18, 2009 sqoop Automatic database import Aaron Kimball Cloudera Inc. June 18, 2009 The problem Structured data already captured in databases should be used with unstructured data in Hadoop Tedious glue code necessary

More information

Spring Professional v5.0 Exam

Spring Professional v5.0 Exam Spring Professional v5.0 Exam Spring Core Professional v5.0 Dumps Available Here at: /spring-exam/core-professional-v5.0- dumps.html Enrolling now you will get access to 250 questions in a unique set of

More information

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline Advanced Java Database Programming JDBC overview SQL- Structured Query Language JDBC Programming Concepts Query Execution Scrollable

More information

Composite Pattern Diagram. Explanation. JavaFX Subclass Hierarchy, cont. JavaFX: Node. JavaFX Layout Classes. Top-Level Containers 10/12/2018

Composite Pattern Diagram. Explanation. JavaFX Subclass Hierarchy, cont. JavaFX: Node. JavaFX Layout Classes. Top-Level Containers 10/12/2018 Explanation Component has Operation( ), which is a method that applies to all components, whether composite or leaf. There are generally many operations. Component also has composite methods: Add( ), Remove(

More information

kucharka exportu pro 9FFFIMU

kucharka exportu pro 9FFFIMU požiadavky na export kodek : Xvid 1.2.1 stable (MPEG-4 ASP) // výnimočne MPEG-2 bitrate : max. 10 Mbps pixely : štvorcové (Square pixels) rozlíšenie : 1920x1080, 768x432 pre 16:9 // výnimočne 1440x1080,

More information

Software Tools Data Access Layers

Software Tools Data Access Layers 2009 Software Tools Data Access Layers Part II - Lecture 3 1 The University of Auckland New Zealand COMPSCI 732 Today s Outline 2009 Data Access Layers PDStore Assignment 2 Project 2 The University of

More information

Java FX. Threads, Workers and Tasks

Java FX. Threads, Workers and Tasks Java FX Threads, Workers and Tasks Threads and related topics Lecture Overview...but first lets take a look at a good example of Model - View - Controler set up This and most of the lecture is taken from

More information

Anycast. Ľubor Jurena CEO Michal Kolárik System Administrator

Anycast. Ľubor Jurena CEO Michal Kolárik System Administrator Anycast Ľubor Jurena CEO jurena@skhosting.eu Michal Kolárik System Administrator kolarik@skhosting.eu O nás Registrátor Webhosting Serverové riešenia Správa infraštruktúry Všetko sa dá :-) Index Čo je

More information

Microsoft Azure platforma pre Cloud Computing. Juraj Šitina, Microsoft Slovakia

Microsoft Azure platforma pre Cloud Computing. Juraj Šitina, Microsoft Slovakia Microsoft Azure platforma pre Cloud Computing Juraj Šitina, Microsoft Slovakia m Agenda Cloud Computing Pohľad Microsoftu Predstavujeme platformu Microsoft Azure Benefity Cloud Computingu Microsoft je

More information

CSC System Development with Java. Database Connection. Department of Statistics and Computer Science. Budditha Hettige

CSC System Development with Java. Database Connection. Department of Statistics and Computer Science. Budditha Hettige CSC 308 2.0 System Development with Java Database Connection Budditha Hettige Department of Statistics and Computer Science Budditha Hettige 1 From database to Java There are many brands of database: Microsoft

More information

Spôsoby zistenia ID KEP

Spôsoby zistenia ID KEP Spôsoby zistenia ID KEP ID KEP (kvalifikovaný elektronický podpis) je možné zistiť pomocou napr. ovládacieho panela, prostredíctvom prehliadača Internet Expolrer, Google Chrome alebo Mozilla Firefox. Popstup

More information

Simple JDBC with Spring 2.5

Simple JDBC with Spring 2.5 Simple JDBC with Spring 2.5 Thomas Risberg SpringSource Inc. Introduction Background - COBOL programmer, Oracle DBA, J2EE developer, Spring developer, SpringSource employee Committer on the Spring Framework

More information

Installing MySQL. Hibernate: Setup, Use, and Mapping file. Setup Hibernate in IDE. Starting WAMP server. phpmyadmin web console

Installing MySQL. Hibernate: Setup, Use, and Mapping file. Setup Hibernate in IDE. Starting WAMP server. phpmyadmin web console Installing MySQL Hibernate: Setup, Use, and Mapping file B.Tech. (IT), Sem-6, Applied Design Patterns and Application Frameworks (ADPAF) Dharmsinh Desai University Prof. H B Prajapati Way 1 Install from

More information

Integrating Spring Boot with MySQL

Integrating Spring Boot with MySQL Integrating Spring Boot with MySQL Introduction For this course we will be using MySQL as the database for permanent data storage. We will use Java Persistence API (JPA) as an Object Relation Map (ORM)

More information

Deployment to the Cloud

Deployment to the Cloud Appendix A Deployment to the Cloud Over the last couple of years the cloud has grown considerably and a lot of companies offer different cloud solutions, such as Platform as a Service Infrastructure as

More information

JAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations

JAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations Java Language Environment JAVA MICROSERVICES Object Oriented Platform Independent Automatic Memory Management Compiled / Interpreted approach Robust Secure Dynamic Linking MultiThreaded Built-in Networking

More information

Oracle Exam 1z0-809 Java SE 8 Programmer II Version: 6.0 [ Total Questions: 128 ]

Oracle Exam 1z0-809 Java SE 8 Programmer II Version: 6.0 [ Total Questions: 128 ] s@lm@n Oracle Exam 1z0-809 Java SE 8 Programmer II Version: 6.0 [ Total Questions: 128 ] Oracle 1z0-809 : Practice Test Question No : 1 Given: public final class IceCream { public void prepare() { public

More information

NEWS in MOSKITO Donnerstag, 19. Januar 12

NEWS in MOSKITO Donnerstag, 19. Januar 12 NEWS in MOSKITO 1.2.0 SQL query monitoring Story: MoSKito should be able to inspect and analyze sql queries. It's yet unclear how exactly it can be achieved (though others do it successfully). The easiest

More information

MYBATIS - ANNOTATIONS

MYBATIS - ANNOTATIONS MYBATIS - ANNOTATIONS http://www.tutorialspoint.com/mybatis/mybatis_annotations.htm Copyright tutorialspoint.com In the previous chapters, we have seen how to perform curd operations using MyBatis. There

More information

Schema Null Cannot Be Resolved For Table Jpa

Schema Null Cannot Be Resolved For Table Jpa Schema Null Cannot Be Resolved For Table Jpa (14, 19) The abstract schema type 'Movie' is unknown. (28, 35) The state field path 'm.title' cannot be resolved to a valid type. at org.springframework.web.servlet.

More information

1B1b Classes in Java Part I

1B1b Classes in Java Part I 1B1b Classes in Java Part I Agenda Defining simple classes. Instance variables and methods. Objects. Object references. 1 2 Reading You should be reading: Part I chapters 6,9,10 And browsing: Part IV chapter

More information

Java Database Connectivity (JDBC) 25.1 What is JDBC?

Java Database Connectivity (JDBC) 25.1 What is JDBC? PART 25 Java Database Connectivity (JDBC) 25.1 What is JDBC? JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming

More information

Create a simple database with MySQL

Create a simple database with MySQL Create a simple database with MySQL 1.Connect the MySQL server through MySQL Workbench You can achieve many database operations by typing the SQL langue into the Query panel, such as creating a database,

More information

Hsql Java.sql.sqlexception Invalid Schema Name

Hsql Java.sql.sqlexception Invalid Schema Name Hsql Java.sql.sqlexception Invalid Schema Name I am new to Spring, thank you for your help. My JUnit test class works very well : import java.sql.sqlexception, import javax.sql.datasource, import org.junit.test.

More information

Tvorba informačných systémov. 4. prednáška: Návrh IS

Tvorba informačných systémov. 4. prednáška: Návrh IS Tvorba informačných systémov 4. prednáška: Návrh IS Návrh informačného systému: témy Ciele návrhu ERD DFD Princípy OOP Objektová normalizácia SDD Architektonické pohľady UML diagramy Architektonické štýly

More information

13 Creation and Manipulation of Tables and Databases

13 Creation and Manipulation of Tables and Databases 150.420 Informationslogistik SQL Handout No. 9 SS 2013 13 Creation and Manipulation of Tables and Databases 13.1 Creation and Deletion Databases can be created and deleted using respectively. CREATE DATABASE

More information

Java J Course Outline

Java J Course Outline JAVA EE - J2SE - CORE JAVA After all having a lot number of programming languages. Why JAVA; yet another language!!! AND NOW WHY ONLY JAVA??? CHAPTER 1: INTRODUCTION What is Java? History Versioning The

More information

MyBatis-Spring Reference Documentation

MyBatis-Spring Reference Documentation MyBatis-Spring 1.0.2 - Reference Documentation The MyBatis Community (MyBatis.org) Copyright 2010 Copies of this document may be made for your own use and for distribution to others, provided that you

More information

Copyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum

Copyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum StudentDAO DAOFactory insertstudent (s:student):void findstudent (id:int):student removestudent (s:student):void... getstudentdao():studentdao getadvisordao():advisordao... OracleDAO DB2DAO

More information

CSE 530A. DAOs and MVC. Washington University Fall 2012

CSE 530A. DAOs and MVC. Washington University Fall 2012 CSE 530A DAOs and MVC Washington University Fall 2012 Model Object Example public class User { private Long id; private String username; private String password; public Long getid() { return id; public

More information

Advanced MEIC. (Lesson #18)

Advanced MEIC. (Lesson #18) Advanced Programming @ MEIC (Lesson #18) Last class Data races Java Memory Model No out-of-thin-air values Data-race free programs behave as expected Today Finish with the Java Memory Model Introduction

More information

Model-based Software Engineering (02341, Spring 2017) Ekkart Kindler

Model-based Software Engineering (02341, Spring 2017) Ekkart Kindler Model-based Software Engineering (02341, Spring 2017) Code snippets (week 2) Ecore model from T01 3 Generated Code // All comments and imports deleted! package dk.dtu.compute.mbse.petrinet; Interface only

More information

Accessing databases in Java using JDBC

Accessing databases in Java using JDBC Accessing databases in Java using JDBC Introduction JDBC is an API for Java that allows working with relational databases. JDBC offers the possibility to use SQL statements for DDL and DML statements.

More information

Relational Data Mapping with GORM. Fall Forecast 2009

Relational Data Mapping with GORM. Fall Forecast 2009 Relational Data Mapping with GORM Fall Forecast 2009 46 Agenda Creating an Application Grails Domain Classes Defining Constraints Defining Relationships The Grails Console 47 Creating a Grails App Issue

More information

Jazyk SQL. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)

Jazyk SQL. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) Jazyk SQL Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 Jazyk SQL - Structured Query Language SQL je počítačový jazyk určený na komunikáciu s relačným SRBD neprocedurálny (deklaratívny) jazyk

More information

Java FX. Properties and Bindings

Java FX. Properties and Bindings Java FX Properties and Bindings Properties : something that holds data data can be simple like an int or complex like a list data structure this data can be used to update other things when it changes

More information

Using a CVP VoiceXML application to implement a logical shadow queue for ICM

Using a CVP VoiceXML application to implement a logical shadow queue for ICM Using a CVP VoiceXML application to implement a logical shadow queue for ICM Introduction When calls are queuing in ICM, situations can arise in which greater visibility of the queue contents is required

More information

Voyager Database Developer s Guide Version 1.0 for Voyager 8.0

Voyager Database Developer s Guide Version 1.0 for Voyager 8.0 Voyager Database Developer s Guide Version 1.0 for Voyager 8.0 Table of Contents Introduction... 4 Overview... 4 Preface... 4 Database Requirements... 4 Contacting Technical Support... 4 Voyager JDBC API

More information

C15: JavaFX: Styling, FXML, and MVC

C15: JavaFX: Styling, FXML, and MVC CISC 3120 C15: JavaFX: Styling, FXML, and MVC Hui Chen Department of Computer & Information Science CUNY Brooklyn College 10/19/2017 CUNY Brooklyn College 1 Outline Recap and issues Styling user interface

More information

ThingWorx Relational Databases Connectors Extension User Guide

ThingWorx Relational Databases Connectors Extension User Guide ThingWorx Relational Databases Connectors Extension User Guide Version 1.0 Software Change Log... 2 Introduction and Installation... 2 About the Relational Databases Connectors Extension... 2 Installing

More information

Hibernate Change Schema Name Runtime

Hibernate Change Schema Name Runtime Hibernate Change Schema Name Runtime Note that you can set a default schema in the persistence-unit-defaults part of orm.xml too HibernateJpaVendorAdapter" property name="generateddl" value="false"/_ You

More information

Tiers (or layers) Separation of concerns

Tiers (or layers) Separation of concerns Tiers (or layers) Separation of concerns Hiding the type of storage from the client class Let s say we have a program that needs to fetch objects from a storage. Should the program have to be concerned

More information

Recipient Configuration. Štefan Pataky MCP, MCTS, MCITP

Recipient Configuration. Štefan Pataky MCP, MCTS, MCITP Recipient Configuration Štefan Pataky MCP, MCTS, MCITP Agenda Mailbox Mail Contact Distribution Groups Disconnected Mailbox Mailbox (vytvorenie nového účtu) Exchange Management Console New User Exchange

More information

Notes on Chapter Three

Notes on Chapter Three Notes on Chapter Three Methods 1. A Method is a named block of code that can be executed by using the method name. When the code in the method has completed it will return to the place it was called in

More information

Exploring EJB3 With JBoss Application Server Part 6.3

Exploring EJB3 With JBoss Application Server Part 6.3 By Swaminathan Bhaskar 02/07/2009 Exploring EJB3 With JBoss Application Server Part 6.3 In this part, we will continue to explore Entity Beans Using Java Persistence API (JPA). In the previous part, we

More information

Enterprise JavaBeans. Layer:08. Persistence

Enterprise JavaBeans. Layer:08. Persistence Enterprise JavaBeans Layer:08 Persistence Agenda Discuss "finder" methods. Describe DataSource resources. Describe bean-managed persistence. Describe container-managed persistence. Last Revised: 11/1/2001

More information

Go networking. Peter Borovanský, KAI, I-18, borovan(a)ii.fmph.uniba.sk

Go networking. Peter Borovanský, KAI, I-18, borovan(a)ii.fmph.uniba.sk Go networking Peter Borovanský, KAI, I-18, borovan(a)ii.fmph.uniba.sk Prejdeme si v Go tri úrovne tzv. TCP Stacku, a naprogramujeme klient/server aplikáciu cez TCP/IP sockety, príklad chat sntp udp klient

More information

TIBCO StreamBase 10.2 Building and Running Applications in Studio, Studio Projects and Project Structure. November 2017

TIBCO StreamBase 10.2 Building and Running Applications in Studio, Studio Projects and Project Structure. November 2017 TIBCO StreamBase 10.2 Building and Running Applications in Studio, Studio Projects and Project Structure November 2017 TIBCO StreamBase 10 Experience 1. Build a StreamBase 10 Project 2. Run/Debug an StreamBase

More information

Event Handling in JavaFX

Event Handling in JavaFX Event Handling in JavaFX Event Driven Programming Graphics applications use events. An event dispatcher receives events and notifies interested objects. Event Listener Event EventQueue 1. ActionEvent 2.

More information

Entity Framework: Úvod

Entity Framework: Úvod Entity Framework: Úvod Martin Macák Fakulta informatiky, Masarykova univerzita, Brno 29. 9. 2016 Osnova prednášky 1. Základy Entity Frameworku 2. Návrh databázy (detailnejšie Code First prístup) 3. Migrácie

More information

Package sjdbc. R topics documented: December 16, 2016

Package sjdbc. R topics documented: December 16, 2016 Package sjdbc December 16, 2016 Version 1.6.0 Title JDBC Driver Interface Author TIBCO Software Inc. Maintainer Stephen Kaluzny Provides a database-independent JDBC interface. License

More information

Concurrency in JavaFX. Tecniche di Programmazione A.A. 2014/2015

Concurrency in JavaFX. Tecniche di Programmazione A.A. 2014/2015 Concurrency in JavaFX Tecniche di Programmazione Summary 1. The problem 2. javafx.concurrent package 2 The problem Concurrency in JavaFX UI Responsiveness JavaFX is single threaded The JavaFX application

More information

Java 10: Bridging the Gap Between Database and Stream. Per Minborg, CTO Speedment, Inc. github.com/minborg Speedment, Inc.

Java 10: Bridging the Gap Between Database and Stream. Per Minborg, CTO Speedment, Inc. github.com/minborg Speedment, Inc. Java 10: Bridging the Gap Between Database and Stream Per Minborg, CTO Speedment, Inc. github.com/minborg Oracle Java Magazine Article Why Should I Need to Use SQL? JShell Demo Sakila Open Source Film

More information

Relational databases and SQL

Relational databases and SQL Relational databases and SQL Relational Database Management Systems Most serious data storage is in RDBMS Oracle, MySQL, SQL Server, PostgreSQL Why so popular? Based on strong theory, well-understood performance

More information

package balik; public class TopLevel1 {... }

package balik; public class TopLevel1 {... } Seminář Java Speciální třídy, výčtový typ Radek Kočí Fakulta informačních technologií VUT Březen 2010 Radek Kočí Seminář Java Speciální třídy, výčtový typ 1/ 20 Téma přednášky Vnořené třídy Anonymní třídy

More information

Holon Platform JPA Datastore Module - Reference manual. Version 5.2.1

Holon Platform JPA Datastore Module - Reference manual. Version 5.2.1 Holon Platform JPA Datastore Module - Reference manual Version 5.2.1 Table of Contents 1. Introduction.............................................................................. 1 1.1. Sources and contributions.............................................................

More information

ireport 3.7 Learn how to use ireport to create, design, format, and export reports Shamsuddin Ahammad - PUBLISHING - 1 BIRMINGHAM - MUMBAI

ireport 3.7 Learn how to use ireport to create, design, format, and export reports Shamsuddin Ahammad - PUBLISHING - 1 BIRMINGHAM - MUMBAI ireport 3.7 Learn how to use ireport to create, design, format, and export reports Shamsuddin Ahammad - PUBLISHING - 1 BIRMINGHAM - MUMBAI Preface Chapter 1: Introduction to ireport 7 ireport features

More information

Spring Data JDBC Extensions Reference Documentation. Thomas Risberg

Spring Data JDBC Extensions Reference Documentation. Thomas Risberg Reference Documentation Thomas Risberg Reference Documentation by Thomas Risberg Copyright 2008-2012 The original authors Copies of this document may be made for your own use and for distribution to others,

More information

Chapter 1 An introduction to relational databases and SQL

Chapter 1 An introduction to relational databases and SQL Chapter 1 An introduction to relational databases and SQL Murach's MySQL, C1 2015, Mike Murach & Associates, Inc. Slide 1 Objectives Knowledge Identify the three main hardware components of a client/server

More information

WHAT IS EJB. Security. life cycle management.

WHAT IS EJB. Security. life cycle management. EJB WHAT IS EJB EJB is an acronym for enterprise java bean. It is a specification provided by Sun Microsystems to develop secured, robust and scalable distributed applications. To run EJB application,

More information

Daffodil DB. Design Document (Beta) Version 4.0

Daffodil DB. Design Document (Beta) Version 4.0 Daffodil DB Design Document (Beta) Version 4.0 January 2005 Copyright Daffodil Software Limited Sco 42,3 rd Floor Old Judicial Complex, Civil lines Gurgaon - 122001 Haryana, India. www.daffodildb.com All

More information

sqoop Easy, parallel database import/export Aaron Kimball Cloudera Inc. June 8, 2010

sqoop Easy, parallel database import/export Aaron Kimball Cloudera Inc. June 8, 2010 sqoop Easy, parallel database import/export Aaron Kimball Cloudera Inc. June 8, 2010 Your database Holds a lot of really valuable data! Many structured tables of several hundred GB Provides fast access

More information

Ochrana koncových staníc pomocou Cisco Security Agent 6.0. Ľubomír Varga.

Ochrana koncových staníc pomocou Cisco Security Agent 6.0. Ľubomír Varga. Ochrana koncových staníc pomocou Cisco Security Agent 6.0 Ľubomír Varga lubomir.varga@lynx.sk Agenda CSA 6.0 refresh Vybrané vlastnosti CSA 6.0 Application Trust levels Notify User Rule Actions User Justifications

More information

SQL DATA DEFINITION LANGUAGE

SQL DATA DEFINITION LANGUAGE SQL DATA DEFINITION LANGUAGE DATABASE SCHEMAS IN SQL SQL is primarily a query language, for getting information from a database. DML: Data Manipulation Language SFWR ENG 3DB3 FALL 2016 MICHAEL LIUT (LIUTM@MCMASTER.CA)

More information

Introduction to Spring Framework: Hibernate, Spring MVC & REST

Introduction to Spring Framework: Hibernate, Spring MVC & REST Introduction to Spring Framework: Hibernate, Spring MVC & REST Training domain: Software Engineering Number of modules: 1 Duration of the training: 36 hours Sofia, 2017 Copyright 2003-2017 IPT Intellectual

More information

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 P a g e 1 CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 Q1 Describe some Characteristics/Advantages of Java Language? (P#12, 13, 14) 1. Java

More information