How to use JDBC ResultSetMetaData

In this tutorial you will learn about the ResultSetMetaData object of JDBC, and the name suggest this object gives you comprehensive information about the ResultSet retrieved by statement.

The interface ResultSetMetaData enables you to determine the attributes like number of columns, names, and data types for a result set.

JDBC Prepared Statements example

In this tutorial you will learn about the JDBC Prepared statements, the Java JDBC Prepared statements are pre-compiled SQL statements. Precompiled SQL is useful where same SQL has to be executed more than one time or repeatedly.

For example you need to insert thousand of data in one table, for that you have to make thousands of INSERT SQL statement with data, here you can note that the structure of INSERT will be same for all the INSERT SQL statements except data values. In this situation you can make use of Java JDBC Prepared statements.

For example you need to insert thousand of data in one table, for that you have to make thousands of INSERT SQL statement .

Java DOM getTextContent Explained

What happens when you call getTextContent on the element below?

This piece of HTML actually contains two elements, here is how to print their actual runtime types

Groovy tutorial with examples

Groovy has native language supports for java.util.Map, In addition Groovy has some Special syntax for map literals, and additional common methods. In this page we shows some additional common method of Groovy Map.

You can define an empty Map as

How to manipulate font in PDF document using java iText library

In this tutorial you will learn how to use Fonts while generating text in PDF using iText java library. You can specify fonts for most text objects like Chunk, Phrase or Paragraph in IText.

But you can much more with fonts in iText what has been shown in this example.

How to manipulate image in PDF document using java iText library

In this example you will learn how to add the image in absolute position in PDF document using iText java library.

You can set the absolute position of an image using the setAbsolutePosition() method. You have set the absolute position of image before adding the image to the PDF document. The method the setAbsolutePosition() takes two parameters X and Y coordinate of the lower left corner of the image.

You can set the absolute position of an image using the setAbsolutePosition() method. You have set the absolute position of image before adding the image to the PDF document. The method the setAbsolutePosition() takes two parameters X and Y .

How to add table and image in PDF document using java iText library

In this example you will learn how to create the table and fill the data in table using iText PDF java library.

The com.lowagie.text.Table class is used to create the table in PDF document. There are various stuff you can do with PDF table, but here we see some of basic stuff to create the PDF table.

The com.lowagie.text.Table class is used to create the table in PDF document. There are various stuff you can do with PDF table, but here we see some of basic stuff to create the PDF table..

How to modify existing PDF document using java iText library

In this tutorial you will learn how to modify the existing PDF document using iText java library. IText can modify existing PDF files in many ways. You can modify existing PDF document and can add header, footer or watermark in PDF document.

To modify the existing PDF documents you have to follow below steps.

How to add watermark in PDF document using java iText library

In this tutorial you will learn how to add the watermark text in existing PDF document using iText java library.

You have to follow these steps in order to add watermark in PDF document.

Create excel file and add new sheet using Apache POI

This example shows you how to create the new Excel workbook using Apache POI framework. The Apache POI framework is used to read and write the Microsoft documents like Excel, Word, Power point etc. Mostly the POI framework used to read and write the Excel file.

Previous Page 1 2 3 4 ... 76 Next Page