mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-19 14:16:20 +00:00
chore[orm]: comment
This commit is contained in:
1 parent
059ddee61e
commit
d676fd0dff
1 file changed
+4
-4
+4
-4
@@ -13,7 +13,6 @@
|
|||||||
package com.zfoo.orm.cache;
|
package com.zfoo.orm.cache;
|
||||||
|
|
||||||
import com.zfoo.orm.model.IEntity;
|
import com.zfoo.orm.model.IEntity;
|
||||||
import org.springframework.lang.NonNull;
|
|
||||||
|
|
||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
|
|
||||||
@@ -23,10 +22,11 @@ import java.util.function.BiConsumer;
|
|||||||
public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>> {
|
public interface IEntityCache<PK extends Comparable<PK>, E extends IEntity<PK>> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EN: Load data from the database to the cache and return a default value with an empty ID if the database does not exist
|
* EN: Load data from the database to the cache and return a default value with an empty ID if the database does not exist.
|
||||||
* CN: 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值
|
* This can use the entity.empty() method to determine if the id is empty
|
||||||
|
* <p>
|
||||||
|
* CN: 从数据库中加载数据到缓存,如果数据库不存在则返回一个id为空的默认值。可以通过 entity.empty() 方法判断id是否为空
|
||||||
*/
|
*/
|
||||||
@NonNull
|
|
||||||
E load(PK pk);
|
E load(PK pk);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user