Home » Archives for Yatin » Page 39

Author Archives: Yatin

An experience full-stack engineer well versed with Core Java, Spring/Springboot, MVC, Security, AOP, Frontend (Angular & React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).

Eclipse XPath Evaluation Plugin Example

Hello, I started using Eclipse IDE to work with XML. In this tutorial, we will learn to use the XML and XPath Editor available through the Web Tools Platform (WTP) within Eclipse. 1. Introduction XML stands for Extensible Markup Language and is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are ...

Read More »

Eclipse HTML Plugin Example

Hello, I started using Eclipse IDE to work with HTML5 and Bootstrap. However, editing HTML files in Eclipse IDE was not nice and it felt like using Windows Notepad. In this tutorial, we will learn how to use the HTML Editor available through the Web Tools Platform (WTP) within Eclipse.                 1. Introduction ...

Read More »

Eclipse Zest Plugin Tutorial

Eclipse Zest is a visualization toolkit for graphs. This tutorial explains how to directly create a Zest Graph in Eclipse IDE and how to use the JFace abstraction.                   Table Of Contents 1. Introduction 1.1 Zest Components 1.2 Zest Layout Managers 1.3 Zest Filters 1.4 Zest Installation 2. Eclipse Zest Plugin Tutorial ...

Read More »

Java JDBC MSSQL Connection Example

Java Database Connectivity (JDBC) is a Java-based data access technology that defines how a client may access a database. It provides methods for querying and updating the data in a database. The JDBC classes are contained in the Java package i.e. java.sql and javax.sql.                 1. Introduction In this article, we will describe ...

Read More »

JDBC Query Builder Tutorial

Handling SQL within a Java application can be tricky. For one thing, Java does not support multi-line string constants, so developers can end up with code that looks like this:                     Sample Code String sql_query = "select *" + "from user_table" + "where name like 'Fred%'"; This code is not just ...

Read More »

JDBC Nested Transactions Example

A nested transaction is used to provide a transactional guarantee for a subset of operations performed within the scope of a larger transaction. Doing this allows us to commit and abort the subset of operations independently of the larger transaction. This operation is theoretically possible, however, in JDBC 3.0 we can’t achieve this as easily as the definition looks. In ...

Read More »

JDBC with Oracle Thin Driver Example

Java Database Connectivity (JDBC) is a Java-based data access technology that defines how a client may access a database. It provides methods for querying and updating the data in a database. The JDBC classes are contained in the Java package i.e. java.sql and javax.sql.                 1. Introduction In this JDBC Oracle connectivity example, ...

Read More »

JDBC ResultSetExtractor Example

Spring provides a simplification in handling database access with the Spring JDBC Template. The org.springframework.jdbc.core.ResultSetExtractor interface is a callback interface used by JdbcTemplate’s query methods. Implementations of this interface perform the actual work of extracting results from an SQL ResultSet object. In this article, we will try to show how the ResultSetExtractor mechanism can be applied to a Java application.   ...

Read More »

Logging System.out.println Results in a Log File Example

In Java the three main streams stdin (Standard Input), stdout (Standard Output), and stderr (Standard Output Error) are handled by default by System.in, Sytem.out, and System.err respectively. In this example, we will try to show how to redirect the System.out.println() to a log file using Log4j logging services. 1. Introduction Printing messages to the console is an integral part of ...

Read More »

JDBC DDL Example

Data Definition Language (DDL) is a unique set of SQL commands that lets you manipulate the structure of the database. In this article, we will try to show how the JDBC DDL mechanism can be applied to a Java application.               1. Introduction It might sound like its own programming language, but Data Definition ...

Read More »