Skip to content

Commit

Permalink
3.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
landawn committed Mar 24, 2024
1 parent d1a1b00 commit 25a788d
Show file tree
Hide file tree
Showing 41 changed files with 285 additions and 258 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.5.11

* Improvements and bug fix.

### 3.5.10

* Improvements and bug fix.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# abacus-jdbc

[![Maven Central](https://img.shields.io/maven-central/v/com.landawn/abacus-jdbc.svg)](https://maven-badges.herokuapp.com/maven-central/com.landawn/abacus-jdbc/)
[![Javadocs](https://img.shields.io/badge/javadoc-3.5.10-brightgreen.svg)](https://www.javadoc.io/doc/com.landawn/abacus-jdbc/3.5.10/index.html)
[![Javadocs](https://img.shields.io/badge/javadoc-3.5.11-brightgreen.svg)](https://www.javadoc.io/doc/com.landawn/abacus-jdbc/3.5.11/index.html)

Hope it will bring you the programming experiences: coding with SQL/DB is just like coding with Collections.

Expand Down Expand Up @@ -141,15 +141,15 @@ The biggest difference between this library and other data(database) access fram
<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-jdbc</artifactId>
<version>3.5.10</version>
<version>3.5.11</version>
<dependency>
```

* Gradle:

```gradle
// JDK 17 or above:
compile 'com.landawn:abacus-jdbc:3.5.10'
compile 'com.landawn:abacus-jdbc:3.5.11'
```

## User Guide:
Expand Down
4 changes: 2 additions & 2 deletions maven/0.0.1-SNAPSHOT/abacus-jdbc-0.0.1-SNAPSHOT.pom
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-common</artifactId>
<version>3.10.15</version>
<version>3.10.16</version>
</dependency>

<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-query</artifactId>
<version>1.3.17</version>
<version>1.3.18</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.landawn</groupId>
<artifactId>abacus-jdbc</artifactId>
<version>3.5.11</version>
<version>3.5.12</version>
<packaging>jar</packaging>

<name>abacus-jdbc</name>
Expand All @@ -32,14 +32,14 @@
<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-common</artifactId>
<version>3.10.15</version>
<version>3.10.16</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-query</artifactId>
<version>1.3.17</version>
<version>1.3.18</version>
<scope>provided</scope>
</dependency>

Expand Down
17 changes: 9 additions & 8 deletions src/main/java/com/landawn/abacus/jdbc/AbstractQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ public This setTimestamp(int parameterIndex, java.util.Date x) throws SQLExcepti
*
* @param parameterIndex starts from 1, not 0.
* @param x
* @param cal
* @return
* @throws SQLException
*/
Expand Down Expand Up @@ -2447,7 +2448,7 @@ private void checkParameterIndices(final int... parameterIndices) {

/**
*
* @param <T>
*
* @param batchParameters
* @return
* @throws SQLException
Expand Down Expand Up @@ -2485,7 +2486,7 @@ public <T> This addBatchParameters(final Collection<? extends T> batchParameters

/**
*
* @param <T>
*
* @param batchParameters
* @return
* @throws SQLException
Expand Down Expand Up @@ -3704,10 +3705,10 @@ public <R, E extends Exception> R queryThenApply(final Class<?> entityClass, fin
}

/**
*
*
* @param <E>
* @param action
* @return
* @throws SQLException
* @throws E
*/
Expand All @@ -3717,11 +3718,11 @@ public <E extends Exception> void queryThenAccept(final Throwables.Consumer<? su
}

/**
*
*
* @param <E>
* @param entityClass used to fetch fields from columns
* @param action
* @return
* @throws SQLException
* @throws E
* @see {@link Jdbc.ResultExtractor#toDataSet(Class)}
Expand Down Expand Up @@ -4010,7 +4011,7 @@ public <T> Optional<T> findFirst(Jdbc.RowMapper<? extends T> rowMapper) throws S
* @return
* @throws SQLException
* @throws IllegalArgumentException if {@code rowMapper} returns {@code null} for the found record.
* @deprecated Use {@link stream(RowFilter, RowMapper).first()} instead.
* @deprecated Use {@code stream(RowFilter, RowMapper).first()} instead.
*/
@Deprecated
public <T> Optional<T> findFirst(final Jdbc.RowFilter rowFilter, Jdbc.RowMapper<? extends T> rowMapper) throws SQLException, IllegalArgumentException {
Expand All @@ -4037,7 +4038,7 @@ public <T> Optional<T> findFirst(Jdbc.BiRowMapper<? extends T> rowMapper) throws
* @return
* @throws SQLException
* @throws IllegalArgumentException if {@code rowMapper} returns {@code null} for the found record.
* @deprecated Use {@link stream(BiRowFilter, BiRowMapper).first()} instead.
* @deprecated Use {@code stream(BiRowFilter, BiRowMapper).first()} instead.
*/
@Deprecated
public <T> Optional<T> findFirst(final Jdbc.BiRowFilter rowFilter, Jdbc.BiRowMapper<? extends T> rowMapper) throws SQLException, IllegalArgumentException {
Expand Down Expand Up @@ -4106,7 +4107,7 @@ public <T> T findFirstOrNull(Jdbc.RowMapper<? extends T> rowMapper) throws SQLEx
* @return
* @throws SQLException
* @throws IllegalArgumentException if {@code rowMapper} returns {@code null} for the found record.
* @deprecated Use {@link stream(RowFilter, RowMapper).first()} instead.
* @deprecated Use {@code stream(RowFilter, RowMapper).first()} instead.
*/
@Deprecated
public <T> T findFirstOrNull(final Jdbc.RowFilter rowFilter, Jdbc.RowMapper<? extends T> rowMapper) throws SQLException, IllegalArgumentException {
Expand Down Expand Up @@ -4158,7 +4159,7 @@ public <T> T findFirstOrNull(Jdbc.BiRowMapper<? extends T> rowMapper) throws SQL
* @return
* @throws SQLException
* @throws IllegalArgumentException if {@code rowMapper} returns {@code null} for the found record.
* @deprecated Use {@link stream(BiRowFilter, BiRowMapper).first()} instead.
* @deprecated Use {@code stream(BiRowFilter, BiRowMapper).first()} instead.
*/
@Deprecated
public <T> T findFirstOrNull(final Jdbc.BiRowFilter rowFilter, Jdbc.BiRowMapper<? extends T> rowMapper) throws SQLException, IllegalArgumentException {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/landawn/abacus/jdbc/CallableQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ protected ResultSet executeQuery() throws SQLException {
* @param getter
* @return
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand All @@ -1285,7 +1285,7 @@ public <R> R executeThenApply(final Throwables.Function<? super CallableStatemen
* @param getter
* @return
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand All @@ -1301,7 +1301,7 @@ public <R> R executeThenApply(final Throwables.BiFunction<Boolean, ? super Calla
* @param getter the first parameter is {@code isFirstResultSet}, the second one is {@code outParametes} and third one is the executed {@code CallableStatement}.
* @return
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand All @@ -1325,7 +1325,7 @@ public <R> R executeThenApply(final Throwables.TriFunction<Boolean, List<Jdbc.Ou
*
* @param consumer
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand All @@ -1339,7 +1339,7 @@ public void executeThenAccept(final Throwables.Consumer<? super CallableStatemen
*
* @param consumer
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand All @@ -1353,7 +1353,7 @@ public void executeThenAccept(final Throwables.BiConsumer<Boolean, ? super Calla
*
* @param consumer the first parameter is {@code isFirstResultSet}, the second one is {@code outParametes} and third one is the executed {@code CallableStatement}.
* @throws SQLException the SQL exception
* @see JdbcUtil#getOutParameters(CallableStatement, int)
* @see JdbcUtil#getOutParameters(CallableStatement, List)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, RowMapper)
* @see JdbcUtil#streamAllResultSets(java.sql.Statement, BiRowMapper)
*/
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/com/landawn/abacus/jdbc/DBProductInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@

import lombok.Value;

/**
*
*
* @param productName
* @param productVersion
* @param version
*/
@Value
public class DBProductInfo { // NOSONAR

Expand Down
44 changes: 0 additions & 44 deletions src/main/java/com/landawn/abacus/jdbc/EntityCodeConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,53 +54,9 @@
* </pre>
*
*/

/**
*
*
* @return
*/
@Builder

/**
*
*
* @return
*/
@Data

/**
*
*/
@NoArgsConstructor

/**
*
*
* @param srcDir
* @param packageName
* @param className
* @param fieldNameConverter
* @param fieldTypeConverter
* @param customizedFields
* @param customizedFieldDbTypes
* @param useBoxedType
* @param mapBigIntegerToLong
* @param mapBigDecimalToDouble
* @param readOnlyFields
* @param nonUpdatableFields
* @param idFields
* @param idField
* @param excludedFields
* @param additionalFieldsOrLines
* @param tableAnnotationClass
* @param columnAnnotationClass
* @param idAnnotationClass
* @param chainAccessor
* @param generateBuilder
* @param generateCopyMethod
* @param jsonXmlConfig
*/
@AllArgsConstructor
public final class EntityCodeConfig {

Expand Down
32 changes: 9 additions & 23 deletions src/main/java/com/landawn/abacus/jdbc/Jdbc.java
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ default BiRowMapper<T> toBiRowMapper() {
// * @param <T>
// * @param biRowMapper
// * @return
// * @deprecated because it's stateful and may be misused easily&frequently
// * @deprecated because it's stateful and may be misused easily and frequently
// */
// @Beta
// @Deprecated
Expand Down Expand Up @@ -1293,6 +1293,8 @@ static RowMapper<List<Object>> toList(final ColumnGetter<?> columnGetterForAll)

/**
*
*
* @param <C>
* @param columnGetterForAll
* @param supplier
* @return
Expand Down Expand Up @@ -2041,7 +2043,7 @@ default <R> BiRowMapper<R> andThen(final Throwables.Function<? super T, ? extend
*
* @return
* @see RowMapper#toBiRowMapper()
* @deprecated because it's stateful and may be misused easily&frequently
* @deprecated because it's stateful and may be misused easily and frequently
*/
@Beta
@Deprecated
Expand Down Expand Up @@ -2917,6 +2919,8 @@ static BiRowMapper<List<Object>> toList(final ColumnGetter<?> columnGetterForAll

/**
*
*
* @param <C>
* @param columnGetterForAll
* @param supplier
* @return
Expand Down Expand Up @@ -3524,7 +3528,7 @@ default BiRowConsumer toBiRowConsumer() {
/**
* It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
*
* @param consumer
* @param consumerForAll
* @return
*/
@Beta
Expand Down Expand Up @@ -3701,7 +3705,8 @@ default BiRowConsumer andThen(final Throwables.BiConsumer<? super ResultSet, ? s

/**
*
* @param consumer
*
* @param consumerForAll
* @return
*/
@Beta
Expand Down Expand Up @@ -4976,27 +4981,8 @@ public static <T> BiParametersSetter<AbstractQuery, T> set(final Type<T> type) {
// }
}

/**
*
*/
@NoArgsConstructor

/**
*
*
* @param parameterIndex
* @param parameterName
* @param sqlType
* @param typeName
* @param scale
*/
@AllArgsConstructor

/**
*
*
* @return
*/
@Data
public static final class OutParam {
private int parameterIndex;
Expand Down
Loading

0 comments on commit 25a788d

Please sign in to comment.