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