Skip to content

Commit

Permalink
2.0.8
Browse files Browse the repository at this point in the history
haiyangl committed Jul 21, 2024
1 parent d8822b4 commit ac248fa
Showing 14 changed files with 34 additions and 32 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.8

* Improvements

## 2.0.7

* Improvements
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# abacus-query

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

## Download/Installation & [Changes](https://github.com/landawn/abacus-query/blob/master/CHANGES.md):

@@ -10,7 +10,7 @@
* Gradle:
```gradle
// JDK 1.8 or above:
compile 'com.landawn:abacus-query:2.0.7'
compile 'com.landawn:abacus-query:2.0.8'
```


2 changes: 1 addition & 1 deletion maven/0.0.1-SNAPSHOT/abacus-query-0.0.1-SNAPSHOT.pom
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@
<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-common</artifactId>
<version>5.1.1</version>
<version>5.2.0</version>
</dependency>
</dependencies>

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

<groupId>com.landawn</groupId>
<artifactId>abacus-query</artifactId>
<version>2.0.8</version>
<version>2.0.9</version>
<packaging>jar</packaging>

<name>abacus-query</name>
@@ -25,7 +25,7 @@
<dependency>
<groupId>com.landawn</groupId>
<artifactId>abacus-common</artifactId>
<version>5.1.1</version>
<version>5.2.0</version>
<scope>provided</scope>
</dependency>

4 changes: 2 additions & 2 deletions src/main/java/com/landawn/abacus/condition/Between.java
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ public <T> T getMinValue() {
* Sets the min value.
*
* @param minValue the new min value
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setMinValue(Object minValue) {
@@ -105,7 +105,7 @@ public <T> T getMaxValue() {
* Sets the max value.
*
* @param maxValue the new max value
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setMaxValue(Object maxValue) {
2 changes: 1 addition & 1 deletion src/main/java/com/landawn/abacus/condition/Binary.java
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ public <T> T getPropValue() {
* Sets the prop value.
*
* @param propValue the new prop value
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setPropValue(Object propValue) {
2 changes: 1 addition & 1 deletion src/main/java/com/landawn/abacus/condition/Cell.java
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ public <T extends Condition> T getCondition() {
* Sets the condition.
*
* @param condition the new condition
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setCondition(Condition condition) {
7 changes: 4 additions & 3 deletions src/main/java/com/landawn/abacus/condition/Condition.java
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@
import com.landawn.abacus.util.NamingPolicy;

/**
* Condition should be immutable except using {@code clearParameter()} to release resources.
*
* @author Haiyang Li
* @since 0.8
@@ -27,7 +28,7 @@
*/
public interface Condition {
/**
*
*
* @return Operator
*/
Operator getOperator();
@@ -47,7 +48,7 @@ public interface Condition {
Or or(Condition condition);

/**
*
*
* @return Not
*/
Not not();
@@ -60,7 +61,7 @@ public interface Condition {
<T extends Condition> T copy();

/**
*
*
* @return List<Object>
*/
List<Object> getParameters();
2 changes: 1 addition & 1 deletion src/main/java/com/landawn/abacus/condition/In.java
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ public List<?> getValues() { //NOSONAR
* Sets the values.
*
* @param values the new values
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setValues(List<?> values) {
6 changes: 3 additions & 3 deletions src/main/java/com/landawn/abacus/condition/InSubQuery.java
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@

import java.util.Collection;
import java.util.List;
import java.util.function.Function;

import com.landawn.abacus.util.N;
import com.landawn.abacus.util.NamingPolicy;
import com.landawn.abacus.util.Strings;
import com.landawn.abacus.util.Throwables;
import com.landawn.abacus.util.WD;

/**
@@ -108,7 +108,7 @@ public SubQuery getSubQuery() {
*
*
* @param subQuery
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setSubQuery(SubQuery subQuery) {
@@ -205,7 +205,7 @@ public String toString(final NamingPolicy namingPolicy) {
return "(" + Strings.join(propNames, ", ") + ") " + getOperator().toString() + WD.SPACE_PARENTHESES_L + subQuery.toString(namingPolicy)
+ WD.PARENTHESES_R;
} else {
final Throwables.Function<String, String, RuntimeException> func = new Throwables.Function<>() {
final Function<String, String> func = new Function<>() {
@Override
public String apply(String t) throws RuntimeException {
return namingPolicy.convert(t);
4 changes: 2 additions & 2 deletions src/main/java/com/landawn/abacus/condition/Junction.java
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ public void add(Collection<? extends Condition> conditions) {
/**
*
* @param conditions
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
@SafeVarargs
@@ -130,7 +130,7 @@ public final void remove(Condition... conditions) {
/**
*
* @param conditions
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void remove(Collection<? extends Condition> conditions) {
4 changes: 2 additions & 2 deletions src/main/java/com/landawn/abacus/condition/NotBetween.java
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ public <T> T getMinValue() {
* Sets the min value.
*
* @param minValue the new min value
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setMinValue(Object minValue) {
@@ -105,7 +105,7 @@ public <T> T getMaxValue() {
* Sets the max value.
*
* @param maxValue the new max value
* @deprecated
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setMaxValue(Object maxValue) {
12 changes: 7 additions & 5 deletions src/main/java/com/landawn/abacus/condition/NotIn.java
Original file line number Diff line number Diff line change
@@ -40,10 +40,10 @@ public class NotIn extends AbstractCondition {
}

/**
*
*
* @param propName
* @param values
*
* @param propName
* @param values
*/
public NotIn(String propName, Collection<?> values) {
super(Operator.NOT_IN);
@@ -77,7 +77,9 @@ public List<?> getValues() { //NOSONAR
* Sets the values.
*
* @param values the new values
* @deprecated Condition should be immutable except using {@code clearParameter()} to release resources.
*/
@Deprecated
public void setValues(List<?> values) {
this.values = values;
}
@@ -135,9 +137,9 @@ public String toString(NamingPolicy namingPolicy) {
}

/**
*
*
* @return
*
* @return
*/
@Override
public int hashCode() {
9 changes: 2 additions & 7 deletions src/main/java/com/landawn/abacus/condition/NotInSubQuery.java
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@

import java.util.Collection;
import java.util.List;
import java.util.function.Function;

import com.landawn.abacus.util.N;
import com.landawn.abacus.util.NamingPolicy;
import com.landawn.abacus.util.Strings;
import com.landawn.abacus.util.Throwables;
import com.landawn.abacus.util.WD;

/**
@@ -203,12 +203,7 @@ public String toString(final NamingPolicy namingPolicy) {
return "(" + Strings.join(propNames, ", ") + ") " + getOperator().toString() + WD.SPACE_PARENTHESES_L + subQuery.toString(namingPolicy)
+ WD.PARENTHESES_R;
} else {
final Throwables.Function<String, String, RuntimeException> func = new Throwables.Function<>() {
@Override
public String apply(String t) throws RuntimeException {
return namingPolicy.convert(t);
}
};
final Function<String, String> func = t -> namingPolicy.convert(t);

return "(" + Strings.join(N.map(propNames, func), ", ") + ") " + getOperator().toString() + WD.SPACE_PARENTHESES_L
+ subQuery.toString(namingPolicy) + WD.PARENTHESES_R;

0 comments on commit ac248fa

Please sign in to comment.