Deprecated方法增加since描述
This commit is contained in:
@@ -22,10 +22,10 @@ import java.lang.annotation.*;
|
|||||||
* 值越大,优先级越高
|
* 值越大,优先级越高
|
||||||
*
|
*
|
||||||
* @since Common Annotations 1.2
|
* @since Common Annotations 1.2
|
||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.annotation.Priority
|
* @deprecated replace by org.redkale.annotation.Priority
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({ElementType.TYPE})
|
@Target({ElementType.TYPE})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Priority {
|
public @interface Priority {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.annotation.Resource
|
* @deprecated replace by org.redkale.annotation.Resource
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
|
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface Resource {
|
public @interface Resource {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Cacheable
|
* @deprecated replace by org.redkale.persistence.Cacheable
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({TYPE})
|
@Target({TYPE})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface Cacheable {
|
public @interface Cacheable {
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
package javax.persistence;
|
package javax.persistence;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.*;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
import static java.lang.annotation.ElementType.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the mapped column for a persistent property or field.
|
* Specifies the mapped column for a persistent property or field.
|
||||||
@@ -49,7 +49,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Column
|
* @deprecated replace by org.redkale.persistence.Column
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({METHOD, FIELD})
|
@Target({METHOD, FIELD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface Column {
|
public @interface Column {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Entity
|
* @deprecated replace by org.redkale.persistence.Entity
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target(TYPE)
|
@Target(TYPE)
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package javax.persistence;
|
package javax.persistence;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.*;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
import static java.lang.annotation.ElementType.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the primary key of an entity.
|
* Specifies the primary key of an entity.
|
||||||
@@ -49,7 +49,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Id
|
* @deprecated replace by org.redkale.persistence.Id
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({METHOD, FIELD})
|
@Target({METHOD, FIELD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ import java.lang.annotation.*;
|
|||||||
* @deprecated replace by org.redkale.persistence.Index
|
* @deprecated replace by org.redkale.persistence.Index
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({})
|
@Target({})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface Index {
|
public @interface Index {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Table
|
* @deprecated replace by org.redkale.persistence.Table
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target(TYPE)
|
@Target(TYPE)
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface Table {
|
public @interface Table {
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package javax.persistence;
|
package javax.persistence;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.*;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
import static java.lang.annotation.ElementType.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies that the property or field is not persistent. It is used
|
* Specifies that the property or field is not persistent. It is used
|
||||||
@@ -39,7 +39,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.Transient
|
* @deprecated replace by org.redkale.persistence.Transient
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({METHOD, FIELD})
|
@Target({METHOD, FIELD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replace by org.redkale.persistence.UniqueConstraint
|
* @deprecated replace by org.redkale.persistence.UniqueConstraint
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({})
|
@Target({})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface UniqueConstraint {
|
public @interface UniqueConstraint {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import org.redkale.util.Utility;
|
|||||||
*
|
*
|
||||||
* @deprecated 2.5.0 JDK9以上用byte[]代替char[]会有更好的性能
|
* @deprecated 2.5.0 JDK9以上用byte[]代替char[]会有更好的性能
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public class JsonCharsWriter extends JsonWriter {
|
public class JsonCharsWriter extends JsonWriter {
|
||||||
|
|
||||||
private static final char[] CHARS_TUREVALUE = "true".toCharArray();
|
private static final char[] CHARS_TUREVALUE = "true".toCharArray();
|
||||||
|
|||||||
@@ -483,10 +483,10 @@ abstract class AsyncNioConnection extends AsyncConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@since 2.5.0
|
@Deprecated(since = "2.5.0")
|
||||||
protected abstract ReadableByteChannel readableByteChannel();
|
protected abstract ReadableByteChannel readableByteChannel();
|
||||||
|
|
||||||
@Deprecated //@since 2.5.0
|
@Deprecated(since = "2.5.0")
|
||||||
protected abstract WritableByteChannel writableByteChannel();
|
protected abstract WritableByteChannel writableByteChannel();
|
||||||
|
|
||||||
protected InputStream newInputStream() {
|
protected InputStream newInputStream() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.net;
|
package org.redkale.net;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.InputStream;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import org.redkale.convert.ConvertDisabled;
|
import org.redkale.convert.ConvertDisabled;
|
||||||
@@ -157,7 +157,7 @@ public abstract class Request<C extends Context> {
|
|||||||
return this.context;
|
return this.context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //since 2.7.0 replace by getCreateTime()
|
@Deprecated(since = "2.7.0") //replace by getCreateTime()
|
||||||
@ConvertDisabled
|
@ConvertDisabled
|
||||||
public long getCreatetime() {
|
public long getCreatetime() {
|
||||||
return createTime;
|
return createTime;
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ public @interface HttpMapping {
|
|||||||
/**
|
/**
|
||||||
* 输出结果的数据类型集合,由于结果类型可能是泛型而注解的参数值不支持泛型,因此加入明细数据类型集合
|
* 输出结果的数据类型集合,由于结果类型可能是泛型而注解的参数值不支持泛型,因此加入明细数据类型集合
|
||||||
*
|
*
|
||||||
* @deprecated 2.5.0
|
* @deprecated
|
||||||
* @return Class[]
|
* @return Class[]
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
Class[] results() default {};
|
Class[] results() default {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ import org.redkale.util.*;
|
|||||||
*/
|
*/
|
||||||
public class HttpServlet extends Servlet<HttpContext, HttpRequest, HttpResponse> {
|
public class HttpServlet extends Servlet<HttpContext, HttpRequest, HttpResponse> {
|
||||||
|
|
||||||
@Deprecated //@deprecated 2.8.0
|
@Deprecated(since = "2.8.0")
|
||||||
public static final int RET_SERVER_ERROR = 1200_0001;
|
public static final int RET_SERVER_ERROR = 1200_0001;
|
||||||
|
|
||||||
@Deprecated //@deprecated 2.8.0
|
@Deprecated(since = "2.8.0")
|
||||||
public static final int RET_METHOD_ERROR = 1200_0002;
|
public static final int RET_METHOD_ERROR = 1200_0002;
|
||||||
|
|
||||||
String _actionSimpleMappingUrl; //只给HttpActionServlet使用,_actionSimpleMappingUrl不能包含正则表达式,比如 /json /createRecord, 不能是 /user/**
|
String _actionSimpleMappingUrl; //只给HttpActionServlet使用,_actionSimpleMappingUrl不能包含正则表达式,比如 /json /createRecord, 不能是 /user/**
|
||||||
|
|||||||
@@ -15,11 +15,10 @@
|
|||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
package org.redkale.persistence;
|
package org.redkale.persistence;
|
||||||
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import static java.lang.annotation.ElementType.METHOD;
|
|
||||||
import static java.lang.annotation.ElementType.FIELD;
|
import static java.lang.annotation.ElementType.FIELD;
|
||||||
|
import static java.lang.annotation.ElementType.METHOD;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the mapped column for a persistent property or field.
|
* Specifies the mapped column for a persistent property or field.
|
||||||
@@ -110,14 +109,6 @@ public @interface Column {
|
|||||||
*/
|
*/
|
||||||
boolean updatable() default true;
|
boolean updatable() default true;
|
||||||
|
|
||||||
/**
|
|
||||||
* (Optional) The name of the table that contains the column.
|
|
||||||
* If absent the column is assumed to be in the primary table.
|
|
||||||
*
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
String table() default "";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (Optional) The column length. (Applies only if a
|
* (Optional) The column length. (Applies only if a
|
||||||
|
|||||||
@@ -5,17 +5,16 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.service;
|
package org.redkale.service;
|
||||||
|
|
||||||
import org.redkale.util.RedkaleClassLoader;
|
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
import static java.lang.annotation.ElementType.*;
|
import static java.lang.annotation.ElementType.*;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|
||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.function.BiFunction;
|
import java.util.function.BiFunction;
|
||||||
import static org.redkale.boot.Application.*;
|
import static org.redkale.boot.Application.*;
|
||||||
|
import org.redkale.util.RedkaleClassLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用于定义错误码的注解 <br>
|
* 用于定义错误码的注解 <br>
|
||||||
@@ -106,9 +105,5 @@ public @interface RetLabel {
|
|||||||
return rets;
|
return rets;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Deprecated
|
|
||||||
// public static Map<Integer, String> load(Class clazz) {
|
|
||||||
// return loadMap(clazz).computeIfAbsent("", (k) -> new LinkedHashMap<>());
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
protected T result;
|
protected T result;
|
||||||
|
|
||||||
@ConvertColumn(index = 5)
|
@ConvertColumn(index = 5)
|
||||||
@Deprecated //@since 2.5.0
|
@Deprecated(since = "2.5.0")
|
||||||
protected Map<String, String> attach;
|
protected Map<String, String> attach;
|
||||||
|
|
||||||
@ConvertDisabled
|
@ConvertDisabled
|
||||||
@@ -228,7 +228,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return RetResult
|
* @return RetResult
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public RetResult<T> attach(Map<String, String> attach) {
|
public RetResult<T> attach(Map<String, String> attach) {
|
||||||
this.attach = attach;
|
this.attach = attach;
|
||||||
System.err.println("RetResult.attach is deprecated");
|
System.err.println("RetResult.attach is deprecated");
|
||||||
@@ -243,7 +243,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return RetResult
|
* @return RetResult
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public RetResult<T> attach(String key, Object value) {
|
public RetResult<T> attach(String key, Object value) {
|
||||||
System.err.println("RetResult.attach is deprecated");
|
System.err.println("RetResult.attach is deprecated");
|
||||||
if (this.attach == null) {
|
if (this.attach == null) {
|
||||||
@@ -260,7 +260,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return RetResult
|
* @return RetResult
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public RetResult<T> clearAttach() {
|
public RetResult<T> clearAttach() {
|
||||||
this.attach = null;
|
this.attach = null;
|
||||||
return this;
|
return this;
|
||||||
@@ -312,7 +312,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return 结果附件
|
* @return 结果附件
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public Map<String, String> getAttach() {
|
public Map<String, String> getAttach() {
|
||||||
return attach;
|
return attach;
|
||||||
}
|
}
|
||||||
@@ -322,7 +322,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @param attach Map
|
* @param attach Map
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public void setAttach(Map<String, String> attach) {
|
public void setAttach(Map<String, String> attach) {
|
||||||
this.attach = attach;
|
this.attach = attach;
|
||||||
}
|
}
|
||||||
@@ -335,7 +335,7 @@ public class RetResult<T> implements Serializable {
|
|||||||
*
|
*
|
||||||
* @return 结果值
|
* @return 结果值
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.5.0")
|
||||||
public String getAttach(String name, String defValue) {
|
public String getAttach(String name, String defValue) {
|
||||||
System.err.println("RetResult.attach is deprecated");
|
System.err.println("RetResult.attach is deprecated");
|
||||||
return attach == null ? defValue : attach.getOrDefault(name, defValue);
|
return attach == null ? defValue : attach.getOrDefault(name, defValue);
|
||||||
|
|||||||
@@ -6,11 +6,9 @@
|
|||||||
package org.redkale.service;
|
package org.redkale.service;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
import org.redkale.annotation.*;
|
||||||
import org.redkale.annotation.AutoLoad;
|
import org.redkale.net.http.WebSocketNode;
|
||||||
import org.redkale.annotation.ResourceType;
|
import org.redkale.util.AnyValue;
|
||||||
import org.redkale.net.http.*;
|
|
||||||
import org.redkale.util.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 由 org.redkale.net.http.WebSocketNodeService 代替
|
* 由 org.redkale.net.http.WebSocketNodeService 代替
|
||||||
@@ -21,7 +19,7 @@ import org.redkale.util.*;
|
|||||||
* @deprecated 2.6.0
|
* @deprecated 2.6.0
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.6.0")
|
||||||
@AutoLoad(false)
|
@AutoLoad(false)
|
||||||
@ResourceType(WebSocketNode.class)
|
@ResourceType(WebSocketNode.class)
|
||||||
public class WebSocketNodeService extends org.redkale.net.http.WebSocketNodeService {
|
public class WebSocketNodeService extends org.redkale.net.http.WebSocketNodeService {
|
||||||
|
|||||||
@@ -300,34 +300,34 @@ public interface CacheSource extends Resourcable {
|
|||||||
public long dbsize();
|
public long dbsize();
|
||||||
|
|
||||||
//------------------------ collection ------------------------
|
//------------------------ collection ------------------------
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> Collection<T> getCollection(final String key, final Type componentType);
|
public <T> Collection<T> getCollection(final String key, final Type componentType);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> Map<String, Collection<T>> getCollectionMap(final boolean set, final Type componentType, final String... keys);
|
public <T> Map<String, Collection<T>> getCollectionMap(final boolean set, final Type componentType, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public int getCollectionSize(final String key);
|
public int getCollectionSize(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> Collection<T> getexCollection(final String key, final int expireSeconds, final Type componentType);
|
public <T> Collection<T> getexCollection(final String key, final int expireSeconds, final Type componentType);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Map<String, Collection<String>> getStringCollectionMap(final boolean set, final String... keys);
|
public Map<String, Collection<String>> getStringCollectionMap(final boolean set, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Collection<String> getStringCollection(final String key);
|
public Collection<String> getStringCollection(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Collection<String> getexStringCollection(final String key, final int expireSeconds);
|
public Collection<String> getexStringCollection(final String key, final int expireSeconds);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Collection<Long> getLongCollection(final String key);
|
public Collection<Long> getLongCollection(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Map<String, Collection<Long>> getLongCollectionMap(final boolean set, final String... keys);
|
public Map<String, Collection<Long>> getLongCollectionMap(final boolean set, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public Collection<Long> getexLongCollection(final String key, final int expireSeconds);
|
public Collection<Long> getexLongCollection(final String key, final int expireSeconds);
|
||||||
|
|
||||||
//---------------------- CompletableFuture 异步版 ---------------------------------
|
//---------------------- CompletableFuture 异步版 ---------------------------------
|
||||||
@@ -601,478 +601,478 @@ public interface CacheSource extends Resourcable {
|
|||||||
public CompletableFuture<Long> dbsizeAsync();
|
public CompletableFuture<Long> dbsizeAsync();
|
||||||
|
|
||||||
//------------------------ collectionAsync ------------------------
|
//------------------------ collectionAsync ------------------------
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> CompletableFuture<Collection<T>> getCollectionAsync(final String key, final Type componentType);
|
public <T> CompletableFuture<Collection<T>> getCollectionAsync(final String key, final Type componentType);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> CompletableFuture<Map<String, Collection<T>>> getCollectionMapAsync(final boolean set, final Type componentType, final String... keys);
|
public <T> CompletableFuture<Map<String, Collection<T>>> getCollectionMapAsync(final boolean set, final Type componentType, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Integer> getCollectionSizeAsync(final String key);
|
public CompletableFuture<Integer> getCollectionSizeAsync(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public <T> CompletableFuture<Collection<T>> getexCollectionAsync(final String key, final int expireSeconds, final Type componentType);
|
public <T> CompletableFuture<Collection<T>> getexCollectionAsync(final String key, final int expireSeconds, final Type componentType);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Collection<String>> getStringCollectionAsync(final String key);
|
public CompletableFuture<Collection<String>> getStringCollectionAsync(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Map<String, Collection<String>>> getStringCollectionMapAsync(final boolean set, final String... keys);
|
public CompletableFuture<Map<String, Collection<String>>> getStringCollectionMapAsync(final boolean set, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Collection<String>> getexStringCollectionAsync(final String key, final int expireSeconds);
|
public CompletableFuture<Collection<String>> getexStringCollectionAsync(final String key, final int expireSeconds);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Collection<Long>> getLongCollectionAsync(final String key);
|
public CompletableFuture<Collection<Long>> getLongCollectionAsync(final String key);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Map<String, Collection<Long>>> getLongCollectionMapAsync(final boolean set, final String... keys);
|
public CompletableFuture<Map<String, Collection<Long>>> getLongCollectionMapAsync(final boolean set, final String... keys);
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
public CompletableFuture<Collection<Long>> getexLongCollectionAsync(final String key, final int expireSeconds);
|
public CompletableFuture<Collection<Long>> getexLongCollectionAsync(final String key, final int expireSeconds);
|
||||||
|
|
||||||
//-------------------------- 过期方法 ----------------------------------
|
//-------------------------- 过期方法 ----------------------------------
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> refreshAsync(final String key, final int expireSeconds) {
|
default CompletableFuture<Void> refreshAsync(final String key, final int expireSeconds) {
|
||||||
return expireAsync(key, expireSeconds);
|
return expireAsync(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> hremoveAsync(final String key, String... fields) {
|
default CompletableFuture<Integer> hremoveAsync(final String key, String... fields) {
|
||||||
return hdelAsync(key, fields);
|
return hdelAsync(key, fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Convert convert, final T value) {
|
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Convert convert, final T value) {
|
||||||
return setexAsync(key, expireSeconds, convert, value.getClass(), value);
|
return setexAsync(key, expireSeconds, convert, value.getClass(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Type type, final T value) {
|
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Type type, final T value) {
|
||||||
return setexAsync(key, expireSeconds, type, value);
|
return setexAsync(key, expireSeconds, type, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Convert convert, final Type type, final T value) {
|
default <T> CompletableFuture<Void> setAsync(final int expireSeconds, final String key, final Convert convert, final Type type, final T value) {
|
||||||
return setexAsync(key, expireSeconds, convert, type, value);
|
return setexAsync(key, expireSeconds, convert, type, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> setExpireSecondsAsync(final String key, final int expireSeconds) {
|
default CompletableFuture<Void> setExpireSecondsAsync(final String key, final int expireSeconds) {
|
||||||
return expireAsync(key, expireSeconds);
|
return expireAsync(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> removeAsync(final String key) {
|
default CompletableFuture<Integer> removeAsync(final String key) {
|
||||||
return delAsync(key);
|
return delAsync(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int hremove(final String key, String... fields) {
|
default int hremove(final String key, String... fields) {
|
||||||
return hdel(key, fields);
|
return hdel(key, fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void refresh(final String key, final int expireSeconds) {
|
default void refresh(final String key, final int expireSeconds) {
|
||||||
expire(key, expireSeconds);
|
expire(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> void set(final int expireSeconds, final String key, final Convert convert, final T value) {
|
default <T> void set(final int expireSeconds, final String key, final Convert convert, final T value) {
|
||||||
setex(key, expireSeconds, convert, value.getClass(), value);
|
setex(key, expireSeconds, convert, value.getClass(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> void set(final int expireSeconds, final String key, final Type type, final T value) {
|
default <T> void set(final int expireSeconds, final String key, final Type type, final T value) {
|
||||||
setex(key, expireSeconds, type, value);
|
setex(key, expireSeconds, type, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> void set(final int expireSeconds, final String key, final Convert convert, final Type type, final T value) {
|
default <T> void set(final int expireSeconds, final String key, final Convert convert, final Type type, final T value) {
|
||||||
setex(key, expireSeconds, convert, type, value);
|
setex(key, expireSeconds, convert, type, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void setExpireSeconds(final String key, final int expireSeconds) {
|
default void setExpireSeconds(final String key, final int expireSeconds) {
|
||||||
expire(key, expireSeconds);
|
expire(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int remove(final String key) {
|
default int remove(final String key) {
|
||||||
return del(key);
|
return del(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void setString(final int expireSeconds, final String key, final String value) {
|
default void setString(final int expireSeconds, final String key, final String value) {
|
||||||
setexString(key, expireSeconds, value);
|
setexString(key, expireSeconds, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void setLong(final int expireSeconds, final String key, final long value) {
|
default void setLong(final int expireSeconds, final String key, final long value) {
|
||||||
setexLong(key, expireSeconds, value);
|
setexLong(key, expireSeconds, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void setBytes(final int expireSeconds, final String key, final byte[] value) {
|
default void setBytes(final int expireSeconds, final String key, final byte[] value) {
|
||||||
setexBytes(key, expireSeconds, value);
|
setexBytes(key, expireSeconds, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<T> getAndRefreshAsync(final String key, final int expireSeconds, final Type type) {
|
default <T> CompletableFuture<T> getAndRefreshAsync(final String key, final int expireSeconds, final Type type) {
|
||||||
return getexAsync(key, expireSeconds, type);
|
return getexAsync(key, expireSeconds, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> T getAndRefresh(final String key, final int expireSeconds, final Type type) {
|
default <T> T getAndRefresh(final String key, final int expireSeconds, final Type type) {
|
||||||
return getex(key, expireSeconds, type);
|
return getex(key, expireSeconds, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default String getStringAndRefresh(final String key, final int expireSeconds) {
|
default String getStringAndRefresh(final String key, final int expireSeconds) {
|
||||||
return getexString(key, expireSeconds);
|
return getexString(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default long getLongAndRefresh(final String key, final int expireSeconds, long defValue) {
|
default long getLongAndRefresh(final String key, final int expireSeconds, long defValue) {
|
||||||
return getexLong(key, expireSeconds, defValue);
|
return getexLong(key, expireSeconds, defValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default byte[] getBytesAndRefresh(final String key, final int expireSeconds) {
|
default byte[] getBytesAndRefresh(final String key, final int expireSeconds) {
|
||||||
return getexBytes(key, expireSeconds);
|
return getexBytes(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Long> getLongAndRefreshAsync(final String key, final int expireSeconds, long defValue) {
|
default CompletableFuture<Long> getLongAndRefreshAsync(final String key, final int expireSeconds, long defValue) {
|
||||||
return getexLongAsync(key, expireSeconds, defValue);
|
return getexLongAsync(key, expireSeconds, defValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<String> getStringAndRefreshAsync(final String key, final int expireSeconds) {
|
default CompletableFuture<String> getStringAndRefreshAsync(final String key, final int expireSeconds) {
|
||||||
return getexStringAsync(key, expireSeconds);
|
return getexStringAsync(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<byte[]> getBytesAndRefreshAsync(final String key, final int expireSeconds) {
|
default CompletableFuture<byte[]> getBytesAndRefreshAsync(final String key, final int expireSeconds) {
|
||||||
return getexBytesAsync(key, expireSeconds);
|
return getexBytesAsync(key, expireSeconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int hsize(final String key) {
|
default int hsize(final String key) {
|
||||||
return hlen(key);
|
return hlen(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> hsizeAsync(final String key) {
|
default CompletableFuture<Integer> hsizeAsync(final String key) {
|
||||||
return hlenAsync(key);
|
return hlenAsync(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> void appendSetItem(final String key, final Type componentType, final T value) {
|
default <T> void appendSetItem(final String key, final Type componentType, final T value) {
|
||||||
sadd(key, componentType, value);
|
sadd(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> int removeSetItem(final String key, final Type componentType, final T value) {
|
default <T> int removeSetItem(final String key, final Type componentType, final T value) {
|
||||||
return srem(key, componentType, value);
|
return srem(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> T spopSetItem(final String key, final Type componentType) {
|
default <T> T spopSetItem(final String key, final Type componentType) {
|
||||||
return CacheSource.this.spop(key, componentType);
|
return CacheSource.this.spop(key, componentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> Set<T> spopSetItem(final String key, final int count, final Type componentType) {
|
default <T> Set<T> spopSetItem(final String key, final int count, final Type componentType) {
|
||||||
return spop(key, count, componentType);
|
return spop(key, count, componentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> boolean existsSetItem(final String key, final Type componentType, final T value) {
|
default <T> boolean existsSetItem(final String key, final Type componentType, final T value) {
|
||||||
return sismember(key, componentType, value);
|
return sismember(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Boolean> existsSetItemAsync(final String key, final Type componentType, final T value) {
|
default <T> CompletableFuture<Boolean> existsSetItemAsync(final String key, final Type componentType, final T value) {
|
||||||
return sismemberAsync(key, componentType, value);
|
return sismemberAsync(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Void> appendSetItemAsync(final String key, final Type componentType, final T value) {
|
default <T> CompletableFuture<Void> appendSetItemAsync(final String key, final Type componentType, final T value) {
|
||||||
return saddAsync(key, componentType, value);
|
return saddAsync(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Integer> removeSetItemAsync(final String key, final Type componentType, final T value) {
|
default <T> CompletableFuture<Integer> removeSetItemAsync(final String key, final Type componentType, final T value) {
|
||||||
return sremAsync(key, componentType, value);
|
return sremAsync(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<T> spopSetItemAsync(final String key, final Type componentType) {
|
default <T> CompletableFuture<T> spopSetItemAsync(final String key, final Type componentType) {
|
||||||
return spopAsync(key, componentType);
|
return spopAsync(key, componentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Set<T>> spopSetItemAsync(final String key, final int count, final Type componentType) {
|
default <T> CompletableFuture<Set<T>> spopSetItemAsync(final String key, final int count, final Type componentType) {
|
||||||
return spopAsync(key, count, componentType);
|
return spopAsync(key, count, componentType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default boolean existsStringSetItem(final String key, final String value) {
|
default boolean existsStringSetItem(final String key, final String value) {
|
||||||
return sismemberString(key, value);
|
return sismemberString(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void appendStringSetItem(final String key, final String value) {
|
default void appendStringSetItem(final String key, final String value) {
|
||||||
saddString(key, value);
|
saddString(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int removeStringSetItem(final String key, final String value) {
|
default int removeStringSetItem(final String key, final String value) {
|
||||||
return sremString(key, value);
|
return sremString(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default String spopStringSetItem(final String key) {
|
default String spopStringSetItem(final String key) {
|
||||||
return spopString(key);
|
return spopString(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Set<String> spopStringSetItem(final String key, final int count) {
|
default Set<String> spopStringSetItem(final String key, final int count) {
|
||||||
return spopString(key, count);
|
return spopString(key, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default boolean existsLongSetItem(final String key, final long value) {
|
default boolean existsLongSetItem(final String key, final long value) {
|
||||||
return sismemberLong(key, value);
|
return sismemberLong(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void appendLongSetItem(final String key, final long value) {
|
default void appendLongSetItem(final String key, final long value) {
|
||||||
saddLong(key, value);
|
saddLong(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int removeLongSetItem(final String key, final long value) {
|
default int removeLongSetItem(final String key, final long value) {
|
||||||
return sremLong(key, value);
|
return sremLong(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Long spopLongSetItem(final String key) {
|
default Long spopLongSetItem(final String key) {
|
||||||
return spopLong(key);
|
return spopLong(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Set<Long> spopLongSetItem(final String key, final int count) {
|
default Set<Long> spopLongSetItem(final String key, final int count) {
|
||||||
return spopLong(key, count);
|
return spopLong(key, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Boolean> existsStringSetItemAsync(final String key, final String value) {
|
default CompletableFuture<Boolean> existsStringSetItemAsync(final String key, final String value) {
|
||||||
return sismemberStringAsync(key, value);
|
return sismemberStringAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> appendStringSetItemAsync(final String key, final String value) {
|
default CompletableFuture<Void> appendStringSetItemAsync(final String key, final String value) {
|
||||||
return saddStringAsync(key, value);
|
return saddStringAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> removeStringSetItemAsync(final String key, final String value) {
|
default CompletableFuture<Integer> removeStringSetItemAsync(final String key, final String value) {
|
||||||
return sremStringAsync(key, value);
|
return sremStringAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<String> spopStringSetItemAsync(final String key) {
|
default CompletableFuture<String> spopStringSetItemAsync(final String key) {
|
||||||
return spopStringAsync(key);
|
return spopStringAsync(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Set<String>> spopStringSetItemAsync(final String key, final int count) {
|
default CompletableFuture<Set<String>> spopStringSetItemAsync(final String key, final int count) {
|
||||||
return spopStringAsync(key, count);
|
return spopStringAsync(key, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Boolean> existsLongSetItemAsync(final String key, final long value) {
|
default CompletableFuture<Boolean> existsLongSetItemAsync(final String key, final long value) {
|
||||||
return sismemberLongAsync(key, value);
|
return sismemberLongAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> appendLongSetItemAsync(final String key, final long value) {
|
default CompletableFuture<Void> appendLongSetItemAsync(final String key, final long value) {
|
||||||
return saddLongAsync(key, value);
|
return saddLongAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> removeLongSetItemAsync(final String key, final long value) {
|
default CompletableFuture<Integer> removeLongSetItemAsync(final String key, final long value) {
|
||||||
return sremLongAsync(key, value);
|
return sremLongAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Long> spopLongSetItemAsync(final String key) {
|
default CompletableFuture<Long> spopLongSetItemAsync(final String key) {
|
||||||
return spopLongAsync(key);
|
return spopLongAsync(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Set<Long>> spopLongSetItemAsync(final String key, final int count) {
|
default CompletableFuture<Set<Long>> spopLongSetItemAsync(final String key, final int count) {
|
||||||
return spopLongAsync(key, count);
|
return spopLongAsync(key, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Void> appendListItemAsync(final String key, final Type componentType, final T value) {
|
default <T> CompletableFuture<Void> appendListItemAsync(final String key, final Type componentType, final T value) {
|
||||||
return rpushAsync(key, componentType, value);
|
return rpushAsync(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Integer> removeListItemAsync(final String key, final Type componentType, final T value) {
|
default <T> CompletableFuture<Integer> removeListItemAsync(final String key, final Type componentType, final T value) {
|
||||||
return lremAsync(key, componentType, value);
|
return lremAsync(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> appendStringListItemAsync(final String key, final String value) {
|
default CompletableFuture<Void> appendStringListItemAsync(final String key, final String value) {
|
||||||
return rpushStringAsync(key, value);
|
return rpushStringAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> removeStringListItemAsync(final String key, final String value) {
|
default CompletableFuture<Integer> removeStringListItemAsync(final String key, final String value) {
|
||||||
return lremStringAsync(key, value);
|
return lremStringAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Void> appendLongListItemAsync(final String key, final long value) {
|
default CompletableFuture<Void> appendLongListItemAsync(final String key, final long value) {
|
||||||
return rpushLongAsync(key, value);
|
return rpushLongAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> removeLongListItemAsync(final String key, final long value) {
|
default CompletableFuture<Integer> removeLongListItemAsync(final String key, final long value) {
|
||||||
return lremLongAsync(key, value);
|
return lremLongAsync(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> void appendListItem(final String key, final Type componentType, final T value) {
|
default <T> void appendListItem(final String key, final Type componentType, final T value) {
|
||||||
rpush(key, componentType, value);
|
rpush(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> int removeListItem(final String key, final Type componentType, final T value) {
|
default <T> int removeListItem(final String key, final Type componentType, final T value) {
|
||||||
return lrem(key, componentType, value);
|
return lrem(key, componentType, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void appendStringListItem(final String key, final String value) {
|
default void appendStringListItem(final String key, final String value) {
|
||||||
rpushString(key, value);
|
rpushString(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int removeStringListItem(final String key, final String value) {
|
default int removeStringListItem(final String key, final String value) {
|
||||||
return lremString(key, value);
|
return lremString(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default void appendLongListItem(final String key, final long value) {
|
default void appendLongListItem(final String key, final long value) {
|
||||||
rpushLong(key, value);
|
rpushLong(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int removeLongListItem(final String key, final long value) {
|
default int removeLongListItem(final String key, final long value) {
|
||||||
return lremLong(key, value);
|
return lremLong(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default List<String> queryKeys() {
|
default List<String> queryKeys() {
|
||||||
return keys();
|
return keys();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default List<String> queryKeysStartsWith(String startsWith) {
|
default List<String> queryKeysStartsWith(String startsWith) {
|
||||||
return keys(startsWith + "*");
|
return keys(startsWith + "*");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default List<String> queryKeysEndsWith(String endsWith) {
|
default List<String> queryKeysEndsWith(String endsWith) {
|
||||||
return keys("*" + endsWith);
|
return keys("*" + endsWith);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<List<String>> queryKeysAsync() {
|
default CompletableFuture<List<String>> queryKeysAsync() {
|
||||||
return keysAsync();
|
return keysAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<List<String>> queryKeysStartsWithAsync(String startsWith) {
|
default CompletableFuture<List<String>> queryKeysStartsWithAsync(String startsWith) {
|
||||||
return keysAsync(startsWith + "*");
|
return keysAsync(startsWith + "*");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<List<String>> queryKeysEndsWithAsync(String endsWith) {
|
default CompletableFuture<List<String>> queryKeysEndsWithAsync(String endsWith) {
|
||||||
return keysAsync("*" + endsWith);
|
return keysAsync("*" + endsWith);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> Map<String, T> getMap(final Type componentType, final String... keys) {
|
default <T> Map<String, T> getMap(final Type componentType, final String... keys) {
|
||||||
return mget(componentType, keys);
|
return mget(componentType, keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Map<String, String> getStringMap(final String... keys) {
|
default Map<String, String> getStringMap(final String... keys) {
|
||||||
return mgetString(keys);
|
return mgetString(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Map<String, Long> getLongMap(final String... keys) {
|
default Map<String, Long> getLongMap(final String... keys) {
|
||||||
return mgetLong(keys);
|
return mgetLong(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default <T> CompletableFuture<Map<String, T>> getMapAsync(final Type componentType, final String... keys) {
|
default <T> CompletableFuture<Map<String, T>> getMapAsync(final Type componentType, final String... keys) {
|
||||||
return mgetAsync(componentType, keys);
|
return mgetAsync(componentType, keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Map<String, String>> getStringMapAsync(final String... keys) {
|
default CompletableFuture<Map<String, String>> getStringMapAsync(final String... keys) {
|
||||||
return mgetStringAsync(keys);
|
return mgetStringAsync(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Map<String, Long>> getLongMapAsync(final String... keys) {
|
default CompletableFuture<Map<String, Long>> getLongMapAsync(final String... keys) {
|
||||||
return mgetLongAsync(keys);
|
return mgetLongAsync(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default long incr(final String key, long num) {
|
default long incr(final String key, long num) {
|
||||||
return incrby(key, num);
|
return incrby(key, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default long decr(final String key, long num) {
|
default long decr(final String key, long num) {
|
||||||
return decrby(key, num);
|
return decrby(key, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default String[] getStringArray(final String... keys) {
|
default String[] getStringArray(final String... keys) {
|
||||||
return mgetsString(keys);
|
return mgetsString(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default Long[] getLongArray(final String... keys) {
|
default Long[] getLongArray(final String... keys) {
|
||||||
return mgetsLong(keys);
|
return mgetsLong(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<String[]> getStringArrayAsync(final String... keys) {
|
default CompletableFuture<String[]> getStringArrayAsync(final String... keys) {
|
||||||
return mgetsStringAsync(keys);
|
return mgetsStringAsync(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Long[]> getLongArrayAsync(final String... keys) {
|
default CompletableFuture<Long[]> getLongArrayAsync(final String... keys) {
|
||||||
return mgetsLongAsync(keys);
|
return mgetsLongAsync(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default CompletableFuture<Integer> getKeySizeAsync() {
|
default CompletableFuture<Integer> getKeySizeAsync() {
|
||||||
return dbsizeAsync().thenApply(v -> v.intValue());
|
return dbsizeAsync().thenApply(v -> v.intValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default int getKeySize() {
|
default int getKeySize() {
|
||||||
return (int) dbsize();
|
return (int) dbsize();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,64 +15,64 @@ import org.redkale.util.*;
|
|||||||
*
|
*
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public final class DataSources {
|
public final class DataSources {
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String DATASOURCE_CONFPATH = "DATASOURCE_CONFPATH";
|
private static final String DATASOURCE_CONFPATH = "DATASOURCE_CONFPATH";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_DATASOURCE_CLASS = "javax.persistence.datasource";
|
private static final String JDBC_DATASOURCE_CLASS = "javax.persistence.datasource";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_TABLE_AUTODDL = "javax.persistence.table.autoddl";
|
private static final String JDBC_TABLE_AUTODDL = "javax.persistence.table.autoddl";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_CACHE_MODE = "javax.persistence.cachemode";
|
private static final String JDBC_CACHE_MODE = "javax.persistence.cachemode";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_CONNECTIONS_LIMIT = "javax.persistence.connections.limit";
|
private static final String JDBC_CONNECTIONS_LIMIT = "javax.persistence.connections.limit";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_CONNECTIONSCAPACITY = "javax.persistence.connections.bufcapacity";
|
private static final String JDBC_CONNECTIONSCAPACITY = "javax.persistence.connections.bufcapacity";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_CONTAIN_SQLTEMPLATE = "javax.persistence.contain.sqltemplate";
|
private static final String JDBC_CONTAIN_SQLTEMPLATE = "javax.persistence.contain.sqltemplate";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_NOTCONTAIN_SQLTEMPLATE = "javax.persistence.notcontain.sqltemplate";
|
private static final String JDBC_NOTCONTAIN_SQLTEMPLATE = "javax.persistence.notcontain.sqltemplate";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_TABLENOTEXIST_SQLSTATES = "javax.persistence.tablenotexist.sqlstates";
|
private static final String JDBC_TABLENOTEXIST_SQLSTATES = "javax.persistence.tablenotexist.sqlstates";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_TABLECOPY_SQLTEMPLATE = "javax.persistence.tablecopy.sqltemplate";
|
private static final String JDBC_TABLECOPY_SQLTEMPLATE = "javax.persistence.tablecopy.sqltemplate";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_CONNECTTIMEOUT_SECONDS = "javax.persistence.connecttimeout";
|
private static final String JDBC_CONNECTTIMEOUT_SECONDS = "javax.persistence.connecttimeout";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_READTIMEOUT_SECONDS = "javax.persistence.readtimeout";
|
private static final String JDBC_READTIMEOUT_SECONDS = "javax.persistence.readtimeout";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_WRITETIMEOUT_SECONDS = "javax.persistence.writetimeout";
|
private static final String JDBC_WRITETIMEOUT_SECONDS = "javax.persistence.writetimeout";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_URL = "javax.persistence.jdbc.url";
|
private static final String JDBC_URL = "javax.persistence.jdbc.url";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_USER = "javax.persistence.jdbc.user";
|
private static final String JDBC_USER = "javax.persistence.jdbc.user";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_PWD = "javax.persistence.jdbc.password";
|
private static final String JDBC_PWD = "javax.persistence.jdbc.password";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
private static final String JDBC_ENCODING = "javax.persistence.jdbc.encoding";
|
private static final String JDBC_ENCODING = "javax.persistence.jdbc.encoding";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.5.0
|
@Deprecated(since = "2.5.0")
|
||||||
private static final String JDBC_DRIVER = "javax.persistence.jdbc.driver";
|
private static final String JDBC_DRIVER = "javax.persistence.jdbc.driver";
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.5.0
|
@Deprecated(since = "2.5.0")
|
||||||
private static final String JDBC_SOURCE = "javax.persistence.jdbc.source";
|
private static final String JDBC_SOURCE = "javax.persistence.jdbc.source";
|
||||||
|
|
||||||
//@since 2.4.0 for SearchSource default value: true
|
//@since 2.4.0 for SearchSource default value: true
|
||||||
@@ -81,7 +81,7 @@ public final class DataSources {
|
|||||||
private DataSources() {
|
private DataSources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String unitName, final AnyValue conf) throws IOException {
|
public static DataSource createDataSource(final String unitName, final AnyValue conf) throws IOException {
|
||||||
Properties prop = new Properties();
|
Properties prop = new Properties();
|
||||||
AnyValue[] confs = conf.getAnyValues("property");
|
AnyValue[] confs = conf.getAnyValues("property");
|
||||||
@@ -97,17 +97,17 @@ public final class DataSources {
|
|||||||
return createDataSource(unitName, prop, prop);
|
return createDataSource(unitName, prop, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String unitName, Properties prop) throws IOException {
|
public static DataSource createDataSource(final String unitName, Properties prop) throws IOException {
|
||||||
return createDataSource(unitName, prop, prop);
|
return createDataSource(unitName, prop, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String unitName, Properties readprop, Properties writeprop) throws IOException {
|
public static DataSource createDataSource(final String unitName, Properties readprop, Properties writeprop) throws IOException {
|
||||||
return createDataSource(unitName, null, readprop, writeprop);
|
return createDataSource(unitName, null, readprop, writeprop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String unitName, URL persistxml, Properties readprop, Properties writeprop) throws IOException {
|
public static DataSource createDataSource(final String unitName, URL persistxml, Properties readprop, Properties writeprop) throws IOException {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
// String impl = readprop.getProperty(JDBC_DATASOURCE_CLASS, DataJdbcSource.class.getName());
|
// String impl = readprop.getProperty(JDBC_DATASOURCE_CLASS, DataJdbcSource.class.getName());
|
||||||
@@ -182,14 +182,14 @@ public final class DataSources {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String confURI, final String unitName) throws IOException {
|
public static DataSource createDataSource(final String confURI, final String unitName) throws IOException {
|
||||||
return createDataSource(unitName, System.getProperty(DATASOURCE_CONFPATH, "").isEmpty()
|
return createDataSource(unitName, System.getProperty(DATASOURCE_CONFPATH, "").isEmpty()
|
||||||
? RedkaleClassLoader.getConfResourceAsURI(confURI, "persistence.xml").toURL()
|
? RedkaleClassLoader.getConfResourceAsURI(confURI, "persistence.xml").toURL()
|
||||||
: (System.getProperty(DATASOURCE_CONFPATH, "").contains("://") ? URI.create(System.getProperty(DATASOURCE_CONFPATH)).toURL() : new File(System.getProperty(DATASOURCE_CONFPATH)).toURI().toURL()));
|
: (System.getProperty(DATASOURCE_CONFPATH, "").contains("://") ? URI.create(System.getProperty(DATASOURCE_CONFPATH)).toURL() : new File(System.getProperty(DATASOURCE_CONFPATH)).toURI().toURL()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static DataSource createDataSource(final String unitName, URL persistxml) throws IOException {
|
public static DataSource createDataSource(final String unitName, URL persistxml) throws IOException {
|
||||||
if (persistxml == null) {
|
if (persistxml == null) {
|
||||||
persistxml = DataSources.class.getResource("/persistence.xml");
|
persistxml = DataSources.class.getResource("/persistence.xml");
|
||||||
@@ -302,7 +302,7 @@ public final class DataSources {
|
|||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.7.0
|
@Deprecated(since = "2.7.0")
|
||||||
public static Map<String, Properties> loadPersistenceXml(final InputStream in0) {
|
public static Map<String, Properties> loadPersistenceXml(final InputStream in0) {
|
||||||
final Map<String, Properties> map = new TreeMap<>();
|
final Map<String, Properties> map = new TreeMap<>();
|
||||||
try (final InputStream in = in0) {
|
try (final InputStream in = in0) {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public interface DistributeTableStrategy<T> {
|
|||||||
*
|
*
|
||||||
* @return 带库名的全表名
|
* @return 带库名的全表名
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
default String getTable(String table, FilterNode node) {
|
default String getTable(String table, FilterNode node) {
|
||||||
return getTables(table, node)[0];
|
return getTables(table, node)[0];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -347,17 +347,17 @@ public class FilterNode { //FilterNode 不能实现Serializable接口, 否则
|
|||||||
return new FilterNode(column, express, itemand, value);
|
return new FilterNode(column, express, itemand, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.8.0
|
@Deprecated(since = "2.8.0")
|
||||||
public static FilterNode filter(String column, Serializable value) {
|
public static FilterNode filter(String column, Serializable value) {
|
||||||
return create(column, null, value);
|
return create(column, null, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.8.0
|
@Deprecated(since = "2.8.0")
|
||||||
public static FilterNode filter(String column, FilterExpress express, Serializable value) {
|
public static FilterNode filter(String column, FilterExpress express, Serializable value) {
|
||||||
return create(column, express, true, value);
|
return create(column, express, true, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated //@deprecated @since 2.8.0
|
@Deprecated(since = "2.8.0")
|
||||||
public static FilterNode filter(String column, FilterExpress express, boolean itemand, Serializable value) {
|
public static FilterNode filter(String column, FilterExpress express, boolean itemand, Serializable value) {
|
||||||
return new FilterNode(column, express, itemand, value);
|
return new FilterNode(column, express, itemand, value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replaced by org.redkale.persistence.SearchColumn
|
* @deprecated replaced by org.redkale.persistence.SearchColumn
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Target({FIELD})
|
@Target({FIELD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
public @interface SearchColumn {
|
public @interface SearchColumn {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.util.function.BiFunction;
|
|||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
* @deprecated replaced by org.redkale.persistence.VirtualEntity
|
* @deprecated replaced by org.redkale.persistence.VirtualEntity
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target(TYPE)
|
@Target(TYPE)
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import java.lang.annotation.*;
|
|||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
* @deprecated replaced by org.redkale.annotation.AutoLoad
|
* @deprecated replaced by org.redkale.annotation.AutoLoad
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE})
|
@Target({TYPE})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
import static java.lang.annotation.ElementType.TYPE;
|
import static java.lang.annotation.ElementType.TYPE;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标记参数bean
|
* 标记参数bean
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target(TYPE)
|
@Target(TYPE)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
import static java.lang.annotation.ElementType.*;
|
import static java.lang.annotation.ElementType.*;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接收命令的标记, 只能标记在本地模式下Service里参数为(String)或(String, String[])的public方法上
|
* 接收命令的标记, 只能标记在本地模式下Service里参数为(String)或(String, String[])的public方法上
|
||||||
@@ -19,7 +19,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target({METHOD})
|
@Target({METHOD})
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
import static java.lang.annotation.ElementType.*;
|
import static java.lang.annotation.ElementType.*;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标记注释,备注
|
* 标记注释,备注
|
||||||
@@ -17,7 +17,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
*
|
*
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE, METHOD, FIELD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, ANNOTATION_TYPE, TYPE_PARAMETER})
|
@Target({TYPE, METHOD, FIELD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, ANNOTATION_TYPE, TYPE_PARAMETER})
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.*;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
import static java.lang.annotation.ElementType.*;
|
import static java.lang.annotation.ElementType.*;
|
||||||
@@ -19,7 +18,7 @@ import static java.lang.annotation.ElementType.*;
|
|||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
* @deprecated replaced by org.redkale.annotation.ConstructorParameters
|
* @deprecated replaced by org.redkale.annotation.ConstructorParameters
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target({METHOD, CONSTRUCTOR})
|
@Target({METHOD, CONSTRUCTOR})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
import static java.lang.annotation.ElementType.TYPE;
|
import static java.lang.annotation.ElementType.TYPE;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 等于level日志级别且包含keys字符串的日志才会被排除 <br>
|
* 等于level日志级别且包含keys字符串的日志才会被排除 <br>
|
||||||
@@ -26,7 +26,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
*
|
*
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE})
|
@Target({TYPE})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
import static java.lang.annotation.ElementType.TYPE;
|
import static java.lang.annotation.ElementType.TYPE;
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 被标记的日志级别以上的才会被记录
|
* 被标记的日志级别以上的才会被记录
|
||||||
@@ -17,7 +17,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||||||
*
|
*
|
||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE})
|
@Target({TYPE})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ import java.lang.annotation.*;
|
|||||||
* @author zhangjx
|
* @author zhangjx
|
||||||
* @deprecated replaced by org.redkale.annotation.ResourceListener
|
* @deprecated replaced by org.redkale.annotation.ResourceListener
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Documented
|
@Documented
|
||||||
@Target({METHOD})
|
@Target({METHOD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.lang.annotation.*;
|
|||||||
*
|
*
|
||||||
* @deprecated replaced by org.redkale.annotation.ResourceType
|
* @deprecated replaced by org.redkale.annotation.ResourceType
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE})
|
@Target({TYPE})
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.util;
|
package org.redkale.util;
|
||||||
|
|
||||||
import static java.lang.annotation.ElementType.*;
|
|
||||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
import static java.lang.annotation.ElementType.*;
|
import static java.lang.annotation.ElementType.*;
|
||||||
@@ -22,7 +21,7 @@ import static java.lang.annotation.ElementType.*;
|
|||||||
*
|
*
|
||||||
* @deprecated 暂不实现
|
* @deprecated 暂不实现
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "2.8.0")
|
||||||
@Inherited
|
@Inherited
|
||||||
@Documented
|
@Documented
|
||||||
@Target({TYPE, METHOD})
|
@Target({TYPE, METHOD})
|
||||||
|
|||||||
Reference in New Issue
Block a user