UINF/PAZ1c epizóda 5
|
|
- Millicent Henderson
- 6 years ago
- Views:
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 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 informationDatabá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 informationSPRING 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 informationVYLEPŠ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 informationSpá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 informationDatabá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 informationPoradové 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 informationAplikač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 informationTestovanie bieleho šumu
Beáta Stehlíková FMFI UK Bratislava Opakovanie z prednášky Vygenerujeme dáta Vygenerujeme dáta: N
More informationPart 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 informationJAVA. 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 informationDatabá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 informationCopyright 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 informationsystemove 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 informationVzory, 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 informationTová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 informationObsah. 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 informationData 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 informationJava 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 information1 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 informationThis 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 informationSQream 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 informationWorking 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 informationRegistrá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 informationStep 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 informationWeek 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 informationCO 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 informationThe 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 informationEvent-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 informationWhat 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 informationD.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 informationCall: 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 informationSan 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 informationHIBERNATE 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 informationsqoop 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 informationSpring 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 informationCall: 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 informationComposite 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 informationkucharka 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 informationSoftware 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 informationJava 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 informationAnycast. Ľ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 informationMicrosoft 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 informationCSC 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 informationSpô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 informationSimple 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 informationInstalling 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 informationIntegrating 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 informationDeployment 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 informationJAVA 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 informationOracle 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 informationNEWS 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 informationMYBATIS - 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 informationSchema 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 information1B1b 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 informationJava 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 informationCreate 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 informationHsql 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 informationTvorba 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 information13 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 informationJava 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 informationMyBatis-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 informationCopyright 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 informationCSE 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 informationAdvanced 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 informationModel-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 informationAccessing 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 informationRelational 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 informationJazyk 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 informationJava 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 informationUsing 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 informationVoyager 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 informationC15: 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 informationThingWorx 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 informationHibernate 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 informationTiers (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 informationRecipient 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 informationNotes 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 informationExploring 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 informationEnterprise 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 informationGo 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 informationTIBCO 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 informationEvent 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 informationEntity 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 informationPackage 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 informationConcurrency 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 informationJava 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 informationRelational 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 informationpackage 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 informationHolon 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 informationireport 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 informationSpring 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 informationChapter 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 informationWHAT 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 informationDaffodil 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 informationsqoop 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 informationOchrana 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 informationSQL 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 informationIntroduction 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 informationCS506 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