Oracle Forms Jenseits der DB Connection
|
|
- Alannah Hensley
- 5 years ago
- Views:
Transcription
1 Oracle Forms Jenseits der DB Connection
2 Web Services Client WLS Web Services DB 2
3 Web Services im SQL SELECT utl_http.request( ' en ) translation FROM dual; {"responsedata": {"translatedtext":"senior technician","match":0.94,"quotafinished":false,"mtlangsupported":null,"responsedeta ils":"","responsestatus":200,"responderid":"242","exception_code":null,"matches": [{"id":" ","segment":"meister","translation":"senior technician","quality":"74","reference":null,"usage-count":1,"subject":"all","createdby":"matecat","last-updated-by":"matecat","create-date":" :24:58","last-updatedate":" :24:58","match":0.94, {"id":" ","segment":"meister","translation":"master","quality":"80","reference":null,"usage- count":41,"subject":"all","created-by":"matecat","last-updated-by":"matecat","create-date":" :57:18","last-update-date":" :57:18","match":0.93, {"id":" ","segment":"meister","translation":"senior LABOURS FORMAN","quality":"74","reference":null,"usage-count":1,"subject":"All","created-by":"MateCat","lastupdated-by":"MateCat","create-date":" :00:03","last-update-date":" :00:03","match":0.92] 3
4 Web Services im SQL SELECT json_value( utl_http.request( ' en ),'$.responsedata.translatedtext' returning VARCHAR2) translated FROM dual; 4
5 Web Services im SQL 5
6 Web Services im PL/SQL {"responsedata":{"translatedtext":"senior technician","match":0.94, "quotafinished":false,"mtlangsupported":null,"responsedetails":"", "responsestatus":200,"responderid":"242","exception_code":null, matches":[{"id":" ","segment":"meister","translation": "Senior technician","quality":"74","reference":null,"usage-count":1, "subject":"all","created-by":"matecat","last-updated-by": "MateCat","create-date":" :24:58","last-update-date": " :24:58","match":0.94,{"id":" ","segment": "MEISTER","translation":"MASTER","quality":"80","reference":null, "usage-count":41,"subject":"all","created-by":"matecat","last-updatedby":"matecat","create-date":" :57:18","last-update-date": " :57:18","match":0.93,{"id":" ","segment": "MEISTER","translation":"SENIOR LABOURS FORMAN","quality":"74", "reference":null,"usage-count":1,"subject":"all","created-by":"matecat", "last-updated-by":"matecat","create-date":" :00:03", "last-update-date":" :00:03","match":0.92] 6
7 Web Services im Oracle Forms 7
8 Web Services Client WLS Web Services DB 8
9 Web Services mit Java abrufen Die Beispielklasse hat lediglich eine Statische Funktion. Definition der URL mit Einsatz des Übergebene Strings Aufruf des Webservice und Empfang der Antwort Auswertung der JSON Antwort 9
10 Java in der Datenbank create or replace and compile java source named "Translator" as /* import com.google.gson.jsonobject; import com.google.gson.jsonparser;*/ import java.nio.charset.charset; import java.io.bufferedreader; import java.io.inputstreamreader; import java.net.httpurlconnection; import java.net.url; /** This class manages the translation of TownyWands GUI's! (EXPERIMENTAL) FastFelix771 to mymemory.translated.net for its awesome API, without this feature wouldnt be possible with the same awesome translationquality! */ public class Translator { // Code im Anhang / create or replace function translateplease( inputtext varchar2 ) return varchar2 as language java name 'Translator.translate( java.lang.string ) return java.lang.string'; / 10
11 Java in der Datenbank begin DBMS_OUTPUT.PUT_LINE(translatePlease('Meister')); end; / select translateplease('meister') from dual; "responsedata":{"translatedtext":"senior technician","match":1,"quotafinished":false, "mtlangsupported":null,"responsedetails":"","responsestatus":200,"responderid":"235", "exception_code":null,"matches":[.] 11
12 Web Services Client WLS JNI Web Services DB UTL_HTTP Java 12
13 Classpath einbinden Jar Datei erstellen und signieren. Anpassung des FORMS_BUILDER_CLASSPATH Neustart des Oracle Form Builder Anpassung Formsweb.cfg (* Für Java Beans) archive=frmall.jar,formsday.jar Anpassung default.env (* Für das Java Native Interface) CLASSPATH=C:\Oracle\Middleware\FormsBuilderDev\forms\java\formsday.jar 13
14 Web Services mit JNI abrufen Java Klasse importieren 14
15 Web Services mit JNI abrufen Java Klasse importieren 15
16 Web Services mit JNI abrufen Java Klasse importieren 16
17 Web Services Client WLS Java Native Interface Web Services DB UTL_HTTP Java 17
18 Java Bean /** * Set the properties to the bean **/ public boolean setproperty(id property, Object value) { if (property == translate) { translatedtext = Translator.translate((String) value); return true; return false; /** * Get the properties of the bean **/ public Object getproperty(id property) { if (property == translate) { // return the corresponding value return translatedtext; return null; 18
19 Java Bean in Forms nutzen 19
20 Web Services Client Java Beans OLE Java Script WLS Java Native Interface Web Services DB UTL_HTTP Java 20
21 Danke für Ihr Interesse Mail: Web: Königsdorfer Straße Wolfratshausen 21
22 Web Services im PL/SQL DECLARE BEGIN END; l_http_request utl_http.req; l_http_response utl_http.resp; l_buffer_size NUMBER(10) := 512; l_raw_data RAW(512); l_clob_response CLOB; l_http_request := utl_http.begin_request(url => ' en',method => 'GET',http_version => 'HTTP/1.1'); l_http_response := utl_http.get_response(l_http_request); BEGIN <<response_loop>> LOOP utl_http.read_raw(l_http_response,l_raw_data,l_buffer_size); l_clob_response := l_clob_response utl_raw.cast_to_varchar2(l_raw_data); END LOOP response_loop; EXCEPTION WHEN utl_http.end_of_body THEN utl_http.end_response(l_http_response); END; DBMS_OUTPUT.PUT_LINE(l_clob_response); utl_http.end_response(l_http_response); 22
23 Translator.java package formsday; import com.google.gson.jsonobject; import com.google.gson.jsonparser; import java.nio.charset.charset; import java.io.bufferedreader; import java.io.inputstreamreader; import java.net.httpurlconnection; import java.net.url; /** This class manages the translation of TownyWands GUI's! (EXPERIMENTAL) FastFelix771 to mymemory.translated.net for its awesome API, without this feature wouldnt be possible with the same awesome translation-quality! */ public class Translator { private static final String USER_AGENT = "Mozilla/5.0"; private static final Charset UTF8 = Charset.forName("UTF-8"); public static String translate(final String inputtext) { String text = inputtext; text = text.replace(" ", "%20"); final byte[] bytes = text.getbytes(utf8); if (bytes.length > 500) {return null; final String mymemory = " + text + "&langpair=de en"; URL url = null; HttpURLConnection connection = null; int code = 0; BufferedReader input = null; String translated = null; try { url = new URL(myMemory); connection = (HttpURLConnection) url.openconnection(); connection.setrequestmethod("get"); connection.setreadtimeout(10000); connection.setrequestproperty("user-agent", USER_AGENT); connection.setrequestproperty("accept-charset", "UTF-8"); code = connection.getresponsecode(); input = new BufferedReader(new InputStreamReader(connection.getInputStream())); if (code!= 200) {return null; String line; final StringBuilder response = new StringBuilder(); while ((line = input.readline())!= null) { response.append(line); input.close(); translated = response.tostring(); catch (final Exception e) { return null; try { final JsonObject json; json = (JsonObject) new JsonParser().parse(translated); final JsonObject data = (JsonObject) json.get("responsedata"); translated = data.get("translatedtext").tostring(); catch (final Exception e) { return null; return translated; 23
24 WebServiceBean.java package formsday; import com.google.gson.gson; import java.io.inputstreamreader; import java.net.url; import java.net.urlencoder; import java.util.date; import oracle.forms.handler.ihandler; import oracle.forms.ui.customevent; import oracle.forms.properties.id; import oracle.forms.ui.vbean; import oracle.forms.engine.*; import oracle.forms.handler.*; public class WebServiceBean extends VBean { static IHandler mhandler; // properties you can set protected static final ID translate = ID.registerProperty("translate"); protected String translatedtext; // default constructor public WebServiceBean() { super(); public void init(ihandler handler) { super.init(handler); mhandler = handler; // put your initialisation instructions here /** * Set the properties to the bean **/ public boolean setproperty(id property, Object value) { if (property == translate) { System.out.println("Set property 01=" + (String) value); // add your code here translatedtext = Translator.translate((String) value); return true; return false; /** * Get the properties of the bean **/ public Object getproperty(id property) { if (property == translate) { // return the corresponding value return translatedtext; return null; /** * Send a message to the Forms module **/ public void dispatch_event(id id) { CustomEvent ce = new CustomEvent(mHandler, id); dispatchcustomevent(ce); 24
25 TestBean.java package formsday; public class TestBean { public static void main(string[] args) { TestBean testbean = new TestBean(); System.out.println(Translator.translate("Meister")); WebServiceBean wsb=new WebServiceBean(); wsb.setproperty(wsb.translate,(object) "Meisterschaft"); System.out.println(wsb.getProperty(wsb.translate)); 25
26 DB Java Class create or replace and compile java source named "Translator" as /* import com.google.gson.jsonobject; import com.google.gson.jsonparser;*/ import java.nio.charset.charset; import java.io.bufferedreader; import java.io.inputstreamreader; import java.net.httpurlconnection; import java.net.url; /** This class manages the translation of TownyWands GUI's! (EXPERIMENTAL) FastFelix771 to mymemory.translated.net for its awesome API, without this feature wouldnt be possible with the same awesome translation-quality! */ public class Translator { private static final String USER_AGENT = "Mozilla/5.0"; private static final Charset UTF8 = Charset.forName("UTF-8"); public static String translate( String inputtext) { String text = inputtext; text = text.replace(" ", "%20"); final byte[] bytes = text.getbytes(utf8); if (bytes.length > 500) {return null; final String mymemory = " + text + "&langpair=de en"; URL url = null; HttpURLConnection connection = null; int code = 0; BufferedReader input = null; String translated = null; try { url = new URL(myMemory); connection = (HttpURLConnection) url.openconnection(); connection.setrequestmethod("get"); connection.setreadtimeout(10000); connection.setrequestproperty("user-agent", USER_AGENT); connection.setrequestproperty("accept-charset", "UTF-8"); code = connection.getresponsecode(); input = new BufferedReader(new InputStreamReader(connection.getInputStream())); if (code!= 200) {return null; String line; final StringBuilder response = new StringBuilder(); while ((line = input.readline())!= null) { response.append(line); input.close(); translated = response.tostring(); catch (final Exception e) { return null; /*try { final JsonObject json; json = (JsonObject) new JsonParser().parse(translated); final JsonObject data = (JsonObject) json.get("responsedata"); translated = data.get("translatedtext").tostring(); catch (final Exception e) { return null; */ return translated.substring(1,254); 26
Requirement Document v1.2 WELCOME TO CANLOG.IN. API-Key Help Document. Version SMS Integration Document
WELCOME TO CANLOG.IN API-Key Help Document Version 1.2 http://www.canlog.in SMS Integration Document Integration 1. Purpose SMS integration with Canlog enables you to notify your customers and agents via
More informationTabel mysql. Kode di PHP. Config.php. Service.php
Tabel mysql Kode di PHP Config.php Service.php Layout Kode di Main Activity package com.example.mini.webandroid; import android.app.progressdialog; import android.os.asynctask; import android.support.v7.app.appcompatactivity;
More informationRequirement Document v1.1 WELCOME TO CANLOG.IN. API Help Document. Version SMS Integration Document
WELCOME TO CANLOG.IN API Help Document Version 1.1 http://www.canlog.in SMS Integration Document Integration 1. Purpose SMS integration with Canlog enables you to notify your customers and agents via Text
More informationDepartamento de Engenharia Informática. Systems Integration. External Service Tutorial
Departamento de Engenharia Informática Systems Integration External Service Tutorial IE 2016 In this tutorial, we shall create a Web service in Java that can access an external service. In addition, you
More informationHow to integrate Oracle BI Publisher via Web Services in Oracle Forms 11g
How to integrate Oracle BI Publisher via Web Services in Oracle Forms 11g Version 4.0 White Paper, May 2013 Authors: Axel Harsch, PITSS Jürgen Menge, Oracle Florin Serban, PITSS Rainer Willems, Oracle
More informationCS1092: Tutorial Sheet: No 3 Exceptions and Files. Tutor s Guide
CS1092: Tutorial Sheet: No 3 Exceptions and Files Tutor s Guide Preliminary This tutorial sheet requires that you ve read Chapter 15 on Exceptions (CS1081 lectured material), and followed the recent CS1092
More informationGetting started with Winstone. Minimal servlet container
Getting started with Winstone Minimal servlet container What is Winstone? Winstone is a small servlet container, consisting of a single JAR file. You can run Winstone on your computer using Java, and get
More informationCOT 3530: Data Structures. Giri Narasimhan. ECS 389; Phone: x3748
COT 3530: Data Structures Giri Narasimhan ECS 389; Phone: x3748 giri@cs.fiu.edu www.cs.fiu.edu/~giri/teach/3530spring04.html Evaluation Midterm & Final Exams Programming Assignments Class Participation
More informationOXYGEN GROUP. mycrm Technology. Interfacing with the mycrm API. engage
mycrm Technology Interfacing with the engage Introduction The mycrm in Engage is used to store mobile numbers and related customer data. By using the mycrm database, a client can load a wealth of information
More informationBridging the Gap. Peter Ebell AMIS
Bridging the Gap between SOA and the Database Peter Ebell AMIS Agenda Two different worlds: Database and SOA? Bridging the Gap How the Database reaches out to SOA Middleware How SOA Middleware reaches
More informationExploring EJB3 With JBoss Application Server Part 6.2
By Swaminathan Bhaskar 01/24/2009 Exploring EJB3 With JBoss Application Server Part 6.2 In this part, we will continue to explore Entity Beans Using Java Persistence API (JPA). Thus far, we have seen examples
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 informationWeb Services and Student Events
Web Services and Student Events Vernon (Vern) Huber Asst. Dir. Application Development and DB Support (ADDS) University of Illinois at Springfield Student Events - CollegiateLinks UIS Connection licensed
More informationThis document is published by Appiyo Technologies Pte., Ltd., without any warranty.
MeOnCloud REST APIs 2015 All rights reserved. All trademarks acknowledged This document is published by Appiyo Technologies Pte., Ltd., without any warranty. No part of this document may be reproduced
More informationJava reflection. alberto ferrari university of parma
Java reflection alberto ferrari university of parma reflection metaprogramming is a programming technique in which computer programs have the ability to treat programs as their data a program can be designed
More informationSimple Data Source Crawler Plugin to Set the Document Title
Simple Data Source Crawler Plugin to Set the Document Title IBM Content Analytics 1 Contents Introduction... 4 Basic FS Crawler behavior.... 8 Using the Customizer Filter to Modify the title Field... 13
More information1 Shyam sir JAVA Notes
1 Shyam sir JAVA Notes 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write
More informationJava.net Package and Classes(Url, UrlConnection, HttpUrlConnection)
Java.net Package and Classes(Url, UrlConnection, HttpUrlConnection) Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in
More informationClasses and Objects 3/28/2017. How can multiple methods within a Java class read and write the same variable?
Peer Instruction 8 Classes and Objects How can multiple methods within a Java class read and write the same variable? A. Allow one method to reference a local variable of the other B. Declare a variable
More informationPENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE)
PENGEMBANGAN APLIKASI PERANGKAT BERGERAK (MOBILE) Network Connection Web Service K Candra Brata andra.course@gmail.com Mobille App Lab 2015-2016 Network Connection http://developer.android.com/training/basics/network-ops/connecting.html
More informationChapter 2. Introduction to Mapping
Chapter 2. Introduction to Mapping 1 / 20 Class and Table Generation of Track TRACK id title filepath
More informationHOLA ENTERPRISE API REFERENCE MANUAL. Abstract This document explains the various features in Hola Enterprise, that can be accessed using API
HOLA ENTERPRISE API REFERENCE MANUAL Abstract This document explains the various features in Hola Enterprise, that can be accessed using API Table of Contents 1. Overview... 7 2. Sending Card to user by
More informationSophos Mobile Control Network Access Control interface guide
Sophos Mobile Control Network Access Control interface guide Product version: 5.1 Document date: July 2015 Contents 1 About Sophos Mobile Control... 3 2 About Network Access Control integration... 4 3
More informationpublic class Q1 { public int x; public static void main(string[] args) { Q1 a = new Q1(17); Q1 b = new Q1(39); public Q1(int x) { this.
CS 201, Fall 2013 Oct 2nd Exam 1 Name: Question 1. [5 points] What output is printed by the following program (which begins on the left and continues on the right)? public class Q1 { public int x; public
More informationAP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS
AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this
More informationIntegrating Zendesk into Cisco Finesse
White Paper Integrating Zendesk into Cisco Finesse White Paper 2016 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public Information. Page 1 of 10 Providing an integrated customer
More information15CS45 : OBJECT ORIENTED CONCEPTS
15CS45 : OBJECT ORIENTED CONCEPTS QUESTION BANK: What do you know about Java? What are the supported platforms by Java Programming Language? List any five features of Java? Why is Java Architectural Neutral?
More informationClass, Variable, Constructor, Object, Method Questions
Class, Variable, Constructor, Object, Method Questions http://www.wideskills.com/java-interview-questions/java-classes-andobjects-interview-questions https://www.careerride.com/java-objects-classes-methods.aspx
More informationGetting started with Java
Getting started with Java by Vlad Costel Ungureanu for Learn Stuff Programming Languages A programming language is a formal constructed language designed to communicate instructions to a machine, particularly
More informationContents Introduction... 5 Using Gateway API... 9 Using SampleRestAPI Security Troubleshooting Gateway API Legal Notices...
Gateway API Programming Guide Version 17 July 2017 Contents Introduction... 5 Prerequisites for On-Premises... 5 REST Style Architecture... 5 Using Gateway API... 9 Sample Java Code that Invokes the API
More informationJava Input/Output. 11 April 2013 OSU CSE 1
Java Input/Output 11 April 2013 OSU CSE 1 Overview The Java I/O (Input/Output) package java.io contains a group of interfaces and classes similar to the OSU CSE components SimpleReader and SimpleWriter
More informationWeb Services Using Standard Oracle EBS
Web Services Using Standard Oracle EBS Divya Kantem Senior Consultant Apps Associates LLC December 14, 2015 Copyright 2015. Apps Associates LLC. 1 Confidentiality Statement The content of this document
More informationMSc/ICY Software Workshop Exception Handling, Assertions Scanner, Patterns File Input/Output
MSc/ICY Software Workshop Exception Handling, Assertions Scanner, Patterns File Input/Output Manfred Kerber www.cs.bham.ac.uk/~mmk 21 October 2015 1 / 18 Manfred Kerber Classes and Objects The information
More informationPage 1
Java 1. Core java a. Core Java Programming Introduction of Java Introduction to Java; features of Java Comparison with C and C++ Download and install JDK/JRE (Environment variables set up) The JDK Directory
More informationSoftware and Programming 1
Software and Programming 1 Lab 8: Use of classes, static class variables and methods 1st March 2018 SP1-Lab8-2018.pdf Tobi Brodie (Tobi@dcs.bbk.ac.uk) 1 Lab 8 Objectives Understanding the encapsulation
More informationHow Well Do Relational Database Engines Support
How Well Do Relational Database Engines Support JSON? Christian Antognini @ChrisAntognini ITOUGTD19 @ChrisAntognini Senior principal consultant, trainer and partner at Trivadis christian.antognini@trivadis.com
More informationREST DB Links Zugriff auf Datenbanken mit ORDS, REST & JSON
REST DB Links Zugriff auf Datenbanken mit ORDS, REST & JSON 10. Mai 2017 Robert Marz Technical Architect Robert Marz Client Senior Technical Architect with database centric view of the world its-people
More informationTHE CONTEXTUAL DATA SUPPLIER. API Integration Guide
THE CONTEXTUAL DATA SUPPLIER API Integration Guide Contextual Data API v3 April 2018 Overview No Matter if you want to integrate our Contextual Data API into your website with JavaScript or call it from
More informationFIFO PAGE REPLACEMENT : import java.io.*; public class FIFO {
FIFO PAGE REPLACEMENT : import java.io.*; public class FIFO public static void main(string[] args) throws IOException BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int frames,
More informationSoftware Practice 1 - Basic Grammar Basic Syntax Data Type Loop Control Making Decision
Software Practice 1 - Basic Grammar Basic Syntax Data Type Loop Control Making Decision Prof. Hwansoo Han T.A. Minseop Jeong T.A. Wonseok Choi 1 Java Program //package details public class ClassName {
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationCOE318 Lecture Notes Week 10 (Nov 7, 2011)
COE318 Software Systems Lecture Notes: Week 10 1 of 5 COE318 Lecture Notes Week 10 (Nov 7, 2011) Topics More about exceptions References Head First Java: Chapter 11 (Risky Behavior) The Java Tutorial:
More informationName Return type Argument list. Then the new method is said to override the old one. So, what is the objective of subclass?
1. Overriding Methods A subclass can modify behavior inherited from a parent class. A subclass can create a method with different functionality than the parent s method but with the same: Name Return type
More informationIntroduction to Java
Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn
More informationREST access to ESM Web Services
REST access to ESM Web Services Dmitry Udalov, Sr. Software Engineer #HPProtect Forward-looking statements This is a rolling (up to three year) Roadmap and is subject to change without notice. This document
More informationBinghamton University. CS-140 Fall Problem Solving. Creating a class from scratch
Problem Solving Creating a class from scratch 1 Recipe for Writing a Class 1. Write the class boilerplate stuff 2. Declare Fields 3. Write Creator(s) 4. Write accessor methods 5. Write mutator methods
More informationComputer Programming, I. Laboratory Manual. Final Exam Solution
Think Twice Code Once The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2005 Khaleel I. Shaheen Computer Programming, I Laboratory Manual Final Exam Solution
More informationExceptions and Libraries
Exceptions and Libraries RS 9.3, 6.4 Some slides created by Marty Stepp http://www.cs.washington.edu/143/ Edited by Sarah Heckman 1 Exceptions exception: An object representing an error or unusual condition.
More informationCS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)
CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers
More informationMidterm assessment - MAKEUP Fall 2010
M257 MTA Faculty of Computer Studies Information Technology and Computing Date: /1/2011 Duration: 60 minutes 1-Version 1 M 257: Putting Java to Work Midterm assessment - MAKEUP Fall 2010 Student Name:
More information1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these. Answer: B
1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these 2. How many primitive data types are there in Java? A. 5 B. 6 C. 7 D. 8 3. In Java byte, short, int and long
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 informationIntroduction This assignment will ask that you write a simple graphical user interface (GUI).
Computing and Information Systems/Creative Computing University of London International Programmes 2910220: Graphical Object-Oriented and Internet programming in Java Coursework one 2011-12 Introduction
More information,pm-diffs.patch -408, ,13
,pm-diffs.patch diff -r 763e4be166aa edu.harvard.i2b2.pm/src/edu/harvard/i2b2/pm/delegate/serviceshandler.java --- a/edu.harvard.i2b2.pm/src/edu/harvard/i2b2/pm/delegate/serviceshandler.java Wed Aug 11
More informationJDBC. Oracle ODBC SP API SP API. SQL server C function calls. SQL server ODBC SP API. Oracle DSN Oracle ODBC Oracle
How to Interact with DataBase? THETOPPERSWAY.COM Generally every DB vendor provides a User Interface through which we can easily execute SQL query s and get the result (For example Oracle Query Manager
More informationTable of contents 2 / 12
OraRSA 1 / 12 Table of contents Introduction... 3 Install... 4 Setup... 4 Load the JAR files... 4 Register ORA_RSA package... 4 Permissions... 4 Upgrade... 4 Uninstall... 5 Switch from Trial to Production
More informationTrusted Source SSO. Document version 2.3 Last updated: 30/10/2017.
Trusted Source SSO Document version 2.3 Last updated: 30/10/2017 www.iamcloud.com TABLE OF CONTENTS 1 INTRODUCTION... 1 2 PREREQUISITES... 2 2.1 Agent... 2 2.2 SPS Client... Error! Bookmark not defined.
More informationCS 5010: PDP. Lecture 11: Networks CS 5010 Fall 2017 Seattle. Adrienne Slaughter, Ph.D.
Lecture 11: Networks CS 5010 Fall 2017 Seattle CS 5010: PDP Adrienne Slaughter, Ph.D. ahslaughter@northeastern.edu Northeastern University 1 Agenda Networking Northeastern University 2 INTRODUCTION Northeastern
More informationCSC 1214: Object-Oriented Programming
CSC 1214: Object-Oriented Programming J. Kizito Makerere University e-mail: jkizito@cis.mak.ac.ug www: http://serval.ug/~jona materials: http://serval.ug/~jona/materials/csc1214 e-learning environment:
More informationB2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA
B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE
More informationA foundation for programming. Classes and objects. Overview. Java primitive types. Primitive types Creating your own data types
Classes and objects A foundation for programming any program you might want to write objects functions and modules build even bigger programs and reuse code http://www.flickr.com/photos/vermegrigio/5923415248/
More informationObject-Oriented Programming in Java
Software and Programming I Object-Oriented Programming in Java Roman Kontchakov / Carsten Fuhs Birkbeck, University of London Outline Object-Oriented Programming Public Interface of a Class Instance Variables
More informationJAVA SYLLABUS FOR 6 WEEKS
JAVA SYLLABUS FOR 6 WEEKS Java 6-Weeks INTRODUCTION TO JAVA History and Features of Java Comparison of C, C++, and Java Java Versions and its domain areas Life cycle of Java program Writing first Java
More informationREST Style Architecture... 5 Using the Primavera Gateway API... 7 Sample Java Code that Invokes the API... 7 Reference Documentation...
Gateway API Programmer's Guide Release 14.2 September 2014 Contents Introduction... 5 REST Style Architecture... 5 Using the Primavera Gateway API... 7 Sample Java Code that Invokes the API... 7 Reference
More informationJAVA MOCK TEST JAVA MOCK TEST II
http://www.tutorialspoint.com JAVA MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Java Framework. You can download these sample mock tests at your
More informationModule 8 The Java Persistence API
Module 8 The Java Persistence API Objectives Describe the role of the Java Persistence API (JPA) in a Java EE application Describe the basics of Object Relational Mapping Describe the elements and environment
More informationSelected Questions from by Nageshwara Rao
Selected Questions from http://way2java.com by Nageshwara Rao Swaminathan J Amrita University swaminathanj@am.amrita.edu November 24, 2016 Swaminathan J (Amrita University) way2java.com (Nageshwara Rao)
More informationPROGRAMMING FUNDAMENTALS
PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write
More informationA sample print out is: is is -11 key entered was: w
Lab 9 Lesson 9-2: Exercise 1, 2 and 3: Note: when you run this you may need to maximize the window. The modified buttonhandler is: private static class ButtonListener implements ActionListener public void
More informationSelected Java Topics
Selected Java Topics Introduction Basic Types, Objects and Pointers Modifiers Abstract Classes and Interfaces Exceptions and Runtime Exceptions Static Variables and Static Methods Type Safe Constants Swings
More information6.Introducing Classes 9. Exceptions
6.Introducing Classes 9. Exceptions Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 Learning
More information(A) 99 ** (B) 100 (C) 101 (D) 100 initial integers plus any additional integers required during program execution
Ch 5 Arrays Multiple Choice Test 01. An array is a ** (A) data structure with one, or more, elements of the same type. (B) data structure with LIFO access. (C) data structure, which allows transfer between
More informationJava Identifiers, Data Types & Variables
Java Identifiers, Data Types & Variables 1. Java Identifiers: Identifiers are name given to a class, variable or a method. public class TestingShastra { //TestingShastra is an identifier for class char
More informationFAQ: Classes & Objects
Question 1: How do I define a class as a data type? Answer 1: Data types in Java can be simple data types such as integers and floating point numbers. Data types can also be complex, collecting many different
More informationCreating and Working with JSON in Oracle Database
Creating and Working with JSON in Oracle Database Dan McGhan Oracle Developer Advocate JavaScript & HTML5 January, 2016 Safe Harbor Statement The following is intended to outline our general product direction.
More informationOracle Forms 10J Dynamic Color Customization. )UDQoRLV'HJUHOOH
Oracle Forms 10J Dynamic Color Customization $Q2UDFOH)RUPV&RPPXQLW\:KLWH3DSHU )UDQoRLV'HJUHOOH -XQH Oracle Forms 10J Dynamic Color Customization Introduction...3 Color definition table...3 Colors.pll...4
More informationGetting Started in Java. Bill Pugh Dept. of Computer Science Univ. of Maryland, College Park
Getting Started in Java Bill Pugh Dept. of Computer Science Univ. of Maryland, College Park Hello, World In HelloWorld.java public class HelloWorld { public static void main(string [] args) { System.out.println(
More informationBIT Java Programming. Sem 1 Session 2011/12. Chapter 2 JAVA. basic
BIT 3383 Java Programming Sem 1 Session 2011/12 Chapter 2 JAVA basic Objective: After this lesson, you should be able to: declare, initialize and use variables according to Java programming language guidelines
More informationCS506 Web Design & Development Final Term Solved MCQs with Reference
with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar
More informationFDK API Manual for Java. FDK API Manual for Java. June FN Pricing
FDK API Manual for Java June 2015 FN Pricing Contents Overview... 1 System Environments... 1 Installation files... 1 Runtime Environments... 1 Sample codes... 1 CCallFdk... 8 static void Initialize(String
More informationCOMP 430 Intro. to Database Systems. SQL from application code
COMP 430 Intro. to Database Systems SQL from application code Some issues How to connect to database Where, what type, user credentials, How to send SQL commands How to get communicate data to/from DB
More informationJava Programming Language Advance Feature
Java Programming Language Advance Feature Peter.Cheng founder_chen@yahoo.com.cn http://www.huihoo.com 2004-04 Huihoo - Enterprise Open Source http://www.huihoo.com 1 Course Goal The main goal of this course
More informationThe XML PDF Access API for Java Technology (XPAAJ)
The XML PDF Access API for Java Technology (XPAAJ) Duane Nickull Senior Technology Evangelist Adobe Systems TS-93260 2007 JavaOne SM Conference Session TS-93260 Agenda Using Java technology to manipulate
More informationGraphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub
Lebanese University Faculty of Science Computer Science BS Degree Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub 2 Crash Course in JAVA Classes A Java
More informationCSCI 136: Fundamentals of Computer Science II Keith Vertanen Copyright 2012
Web clients in Java CSCI 136: Fundamentals of Computer Science II Keith Vertanen Copyright 2012 The World Wide Web History Main components: URLs, HTTP Protocol, HTML Web support in Java Overview Connecting
More informationIn this lab we will practice creating, throwing and handling exceptions.
Lab 5 Exceptions Exceptions indicate that a program has encountered an unforeseen problem. While some problems place programmers at fault (for example, using an index that is outside the boundaries of
More informationJava Classes & Primitive Types
Java Classes & Primitive Types Rui Moreira Classes Ponto (from figgeom) x : int = 0 y : int = 0 n Attributes q Characteristics/properties of classes q Primitive types (e.g., char, byte, int, float, etc.)
More informationCLASSES AND OBJECTS. Fundamentals of Computer Science I
CLASSES AND OBJECTS Fundamentals of Computer Science I Outline Primitive types Creating your own data types Classes Objects Instance variables Instance methods Constructors Arrays of objects A Foundation
More informationDownloading Tweet Streams and Parsing
and Parsing Ayan Bandyopadhyay IR Lab. CVPR Unit Indian Statistical Institute (Kolkata) To download this slide go to: https://goo.gl/aywi1s 1 and Parsing Downloading Tweet Streams It is imagined that Tweets
More informationWhat is it? CMSC 433 Programming Language Technologies and Paradigms Spring Approach 1. Disadvantage of Approach 1
CMSC 433 Programming Language Technologies and Paradigms Spring 2007 Singleton Pattern Mar. 13, 2007 What is it? If you need to make sure that there can be one and only one instance of a class. For example,
More informationKING FAHD UNIVERSITY OF PETROLEUM & MINERALS Information and Computer Science Department
KING FAHD UNIVERSITY OF PETROLEUM & MINERALS Information and Computer Science Department ICS-201 Introduction to Computer Science Lab 03: Java Virtual Machines and Java Packages Objectives: In this lab,
More informationd. If a is false and b is false then the output is "ELSE" Answer?
Intermediate Level 1) Predict the output for the below code: public void foo( boolean a, boolean b) if( a ) System.out.println("A"); if(a && b) System.out.println( "A && B"); if (!b ) System.out.println(
More informationThis tutorial discusses the basic functionalities of Microservice Architecture along with relevant examples for easy understanding.
About the Tutorial Microservice Architecture is a special design pattern of Service-oriented Architecture. It is an open source methodology. In this type of service architecture, all the processes will
More informationorg.json - parsing Parsing JSON using org.json
org.json - parsing Parsing JSON using org.json What is parsing? A parser is a component which takes some input and turns it into some datastructure like an object or a tree etc. It allows us to check for
More informationArray. Prepared By - Rifat Shahriyar
Java More Details Array 2 Arrays A group of variables containing values that all have the same type Arrays are fixed length entities In Java, arrays are objects, so they are considered reference types
More informationJava Classes. Produced by. Introduction to the Java Programming Language. Eamonn de Leastar
Java Classes Introduction to the Java Programming Language Produced by Eamonn de Leastar edeleastar@wit.ie Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie
More informationAlter Change Default Schema Oracle Sql Developer
Alter Change Default Schema Oracle Sql Developer Set default schema in Oracle Developer Tools in Visual STudio 2013 any other schema's. I can run alter session set current_schema=xxx Browse other questions
More informationJava Classes & Primitive Types
Java Classes & Primitive Types Rui Moreira Classes Ponto (from figgeom) x : int = 0 y : int = 0 n Attributes q Characteristics/properties of classes q Primitive types (e.g., char, byte, int, float, etc.)
More informationFull file at Chapter 2 - Inheritance and Exception Handling
Chapter 2 - Inheritance and Exception Handling TRUE/FALSE 1. The superclass inherits all its properties from the subclass. ANS: F PTS: 1 REF: 76 2. Private members of a superclass can be accessed by a
More informationBreaking the PL/SQL Barrier for Procedures Calling Java Routines from Validation/Derivation Procedures. Thomas Struzik
Breaking the PL/SQL Barrier for Procedures Calling Java Routines from Validation/Derivation Procedures Thomas Struzik DBMS Consulting 12 October 2010 Validation/Derivation Procedures Acknowledgements Many
More information