Java Persistence Architecture (JPA) is generally used in Java EE applications but can also be used directly in a Java SE program, see this article setting up JPA in a Java SE environment. However, you can get added advantages of running JPA in a web server environment and have your Java SE client programs access that, advantages such as:
- Better use of JPA connection pool and cache as these are shared amongst the clients
- Smaller client code without the need for full JPA and JPA implementation libraries
- Better security as clients don’t need to hold database login information
The problem is how to provide the access and still have pretty much the full functionality that JPA provides, this is where WebDAO comes in.
Broken Link Checker For A Website Using Java explains about how to identify the broken links and images in a website using Java and sitemap.xml.
Broken links and images in yous website reduce your SEO rank. so you need to check the broken links frequently and rectify the errors in order to boost your SEO rank
Below java example, I am showing how to find the broken links and images by reading the sitemap.xml.
Create Wind Chart Using JFreeChart explains about creating a simple wind chart using JFreechart API
How To Create Wind Chart Using JFreeChart library?
JFreeChart is a free and open source java chart library used for creating professional quality charts. JFreeChart is purely written in java language, we can very easily incorporate JFreeChart in our java standalone and web applications.
Create Bubble Chart Using JFreeChart explains about creating a simple bubble chart using JFreechart API
A bubble chart or bubble graph is a type of chart that displays three dimensions of data. Each entity with its triplet (v1, v2, v3) of associated data is plotted as a disk that expresses two of the vi values through the disk's xy location and the third through its size. Bubble charts can facilitate the understanding of social, economical, medical, and other scientific relationships.
Reference -> http://en.wikipedia.org/wiki/Bubble_chart
How To Create Bubble Chart Using JFreeChart library?
Create Polar Chart Using JFreeChart explains about creating a simple polar chart using JFreechart API
A polar chart or polar graph is a circular graph on which data points are displayed using the angle, and the distance from the center point. The X axis is located on the boundaries of the circle and the Y axis connects the center of the circle with the X axis.
How To Create Polar Chart Using JFreeChart library?
In this example, we are showing how to use Java Batch Update Example With SQL Statement & PreparedStatement
In batch update, update happens on the database as batches, which will increase the processing speed and performance. We can use batch updates for both JDBC Statement & PreparedStatement. You can see the JDBC examples for both Statement & PreparedStatement below.
In this tutorial, we are using H2 database and inserting some data using Java Batch Update
In this example, we are going to convert a Java collection/list/string array into appropriate JSON String using GSON library
In this example, we are going to explain the usage of Java Math.PI to calculate area / circumference of circle
On below example, we are using Math.PI for finding the area / circumference of circle.
Formula to find the Area/Circumference are below Area = radius*radius*PI Circumference = PI*radius*2