• Home
  • Java
  • Databases
  1. You are here:  
  2. Home
  3. Java
  4. Spring boot vs micronaut

Java

Handling Pagination with JDBC

Details
Category: Java
Last Updated: 06 March 2025
Hits: 136
  • MySQL
  • JDBC

When dealing with large datasets in Java applications, retrieving all records at once can be inefficient and resource-intensive. Instead, pagination is used to fetch data in manageable chunks, improving performance and user experience. This blog explores how to implement JDBC pagination effectively, using a single SQL's LIMIT and OFFSET clauses also via the implementation of PageRequest and PageResponse objects to optimize data retrieval in relational databases.

Read more: Handling Pagination with JDBC

DAO Factory Pattern: A Scalable Approach to Data Access in Java

Details
Category: Java
Last Updated: 05 February 2025
Hits: 190
  • Java Design Patterns
  • JDBC

The DAO Factory Pattern is an advanced extension of the DAO (Data Access Object) Pattern that centralizes the creation and management of DAO instances. This approach improves flexibility, maintainability, and scalability in Java applications that interact with databases. It is particularly useful when working with multiple DAO implementations (e.g., JDBC, Hibernate, JPA).

Read more: DAO Factory Pattern: A Scalable Approach to Data Access in Java

Processing JDBC ResultSet

Processing JDBC ResultSet

Details
Category: Java
Last Updated: 17 February 2025
Hits: 145
  • SQL
  • MySQL
  • JDBC

JDBC (Java Database Connectivity) is the standard API in Java that connects with relational databases. The ResultSet is a key component of JDBC, allowing developers to retrieve and process query results. Optimizing the handling of ResultSet can improve performance and ensure efficient resource management.

Read more: Processing JDBC ResultSet

DAO pattern in java

Implement DAO pattern in java

Details
Category: Java
Last Updated: 07 March 2025
Hits: 175
  • Java Design Patterns
  • JDBC

The Data Access Object (DAO) pattern is a widely used design pattern in Java for managing database interactions in an efficient and structured manner. It separates the persistence logic from the business logic, improving code maintainability, reusability, and scalability. In this article, we will explore the DAO pattern, its advantages, and how to implement it in Java.

Read more: Implement DAO pattern in java

Mockito Framework

Mockito Framework Tutorial

Details
Category: Java
Last Updated: 03 February 2025
Hits: 171
  • Unit testing

Mockito is a powerful Java framework used for unit testing by creating mock objects. It helps developers isolate components of a system, making testing easier, faster, and more reliable. In this tutorial, we'll cover the basics of using Mockito, including creating mocks, stubbing methods, verifying behavior, and more.

Read more: Mockito Framework Tutorial

Mockito framework

Details
Category: Java
Last Updated: 03 February 2025
Hits: 97
  • Unit testing

Mockito is a popular Java framework used for creating mock objects in unit tests. It enables developers to isolate components in a system by mocking dependencies, making it easier to write clean and reliable tests. Here's a comprehensive overview of Mockito:

Read more: Mockito framework

Mockito how can check if was called method from superclass

Details
Category: Java
Last Updated: 27 January 2025
Hits: 162
  • Unit testing

In Mockito, you cannot directly verify if a method of a superclass was called. Mockito works with mocks and spies to verify interactions with specific methods, but it doesn't have built-in support for verifying calls to superclass methods.

Read more: Mockito how can check if was called method from superclass

What is GraalVM

Details
Category: Java
Last Updated: 26 December 2024
Hits: 69

GraalVM is a universal virtual machine designed to improve the performance and interoperability of programming languages. It is developed by Oracle Labs. GraalVM provides high-performance runtime support for Java, JavaScript, Python, Ruby, and other languages, along with the ability to run native code.

Read more: What is GraalVM

Spring boot vs micronaut

Spring boot vs micronaut

Details
Category: Java
Last Updated: 02 February 2025
Hits: 122

Whether Spring Boot is better than Micronaut or vice versa depends on your specific use case, requirements, and preferences. Both Spring Boot and Micronaut are popular frameworks for building Java-based microservices and web applications, and they have their own strengths and weaknesses.

Read more: Spring boot vs micronaut

Object Relational Mapping

Details
Category: Java
Last Updated: 11 February 2025
Hits: 93

Object-Relational Mapping (ORM) is a programming technique used to convert data between incompatible type systems, such as databases and object-oriented programming languages. In the context of software development, ORM is often used to bridge the gap between relational databases and object-oriented programming languages, allowing developers to interact with a database using objects in their programming language of choice.

Read more: Object Relational Mapping

  1. JDBC - Java Database Connectivity

Page 2 of 3

  • 1
  • 2
  • 3