![jdbc](https://myskillsup.com/images/jdbc.png)
JDBC - Java Database Connectivity
- Details
- Category: Java
- Hits: 63
Java Database Connectivity (JDBC) is an API provided by Java that allows developers to connect and interact with databases. With Java 21, new enhancements in the language and libraries further improve JDBC usage, making database operations more efficient and developer-friendly.
![DAO pattern in java](https://myskillsup.com/images/dao.png)
Implement DAO pattern in java
- Details
- Category: Java
- Hits: 48
The DAO (Data Access Object) pattern is a structural pattern used to separate the persistence logic from the business logic. It provides an abstraction layer for data access and ensures that changes in the underlying database do not affect the business logic.
Handling Pagination with JDBC
- Details
- Category: Java
- Hits: 18
Pagination is essential when dealing with large datasets in databases. Instead of retrieving all records simultaneously, we can fetch data in smaller chunks using pagination techniques. In this article, we'll explore how to implement pagination efficiently with JDBC using a single SQL's LIMIT
and OFFSET
clauses also via the implementation of PageRequest
and PageResponse
objects.
Batch Processing in JDBC
- Details
- Category: Java
- Hits: 17
Batch processing is a powerful feature in JDBC (Java Database Connectivity) that allows developers to execute multiple SQL statements efficiently in a single transaction. This technique significantly improves performance when dealing with bulk database operations, such as inserting or updating a large number of records.
![Processing JDBC ResultSet](https://myskillsup.com/images/resultser-mapping.webp)
Processing JDBC ResultSet
- Details
- Category: Java
- Hits: 30
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.
![Mockito Framework](https://myskillsup.com/images/mockito.png)
Mockito Framework Tutorial
- Details
- Category: Java
- Hits: 57
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.
![Spring boot vs micronaut](https://myskillsup.com/images/sb_vs_mn.png)
Spring boot vs micronaut
- Details
- Category: Java
- Hits: 45
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.
Mockito how can check if was called method from superclass
- Details
- Category: Java
- Hits: 47
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
![Introduction to Structured Query Language (SQL)](/images/introduction-to-sql.png)
Introduction to SQL
- Details
- Category: Databases
- Hits: 117
SQL is an abbreviation that means Structured Query Language, and is a domain-specific programming language designed for managing and manipulating relational databases. It is widely used for managing and querying data in relational database management systems (RDBMS) or for stream processing in a relational data stream management system (RDSMS).