- java.lang.Object
-
- org.redkale.source.EntityCache<T>
-
- 类型参数:
T
- Entity类的泛型
public final class EntityCache<T> extends Object
Entity数据的缓存类详情见: https://redkale.org
- 作者:
- zhangjx
-
-
构造器概要
构造器 构造器 说明 EntityCache(EntityInfo<T> info, Entity c)
-
方法概要
-
-
-
构造器详细资料
-
EntityCache
public EntityCache(EntityInfo<T> info, Entity c)
-
-
方法详细资料
-
fullLoadAsync
public CompletableFuture<List<T>> fullLoadAsync()
-
clear
public int clear()
-
isFullLoaded
public boolean isFullLoaded()
-
size
public int size()
-
find
public T find(Serializable pk)
-
finds
public T[] finds(Serializable... pks)
-
find
public T find(SelectColumn selects, Serializable pk)
-
finds
public T[] finds(SelectColumn selects, Serializable... pks)
-
find
public T find(SelectColumn selects, FilterNode node)
-
findColumn
public Serializable findColumn(String column, Serializable defValue, Serializable pk)
-
findColumn
public Serializable findColumn(String column, Serializable defValue, FilterNode node)
-
exists
public boolean exists(Serializable pk)
-
exists
public boolean exists(FilterNode node)
-
queryColumnMap
public Map<Serializable,Number> queryColumnMap(String keyColumn, FilterFunc func, String funcColumn, FilterNode node)
-
queryColumnMap
public Map<Serializable[],Number[]> queryColumnMap(ColumnNode[] funcNodes, String[] groupByColumns, FilterNode node)
-
getNumberResult
public Number getNumberResult(FilterFunc func, Number defResult, String column, FilterNode node)
-
querySheet
public Sheet<T> querySheet(SelectColumn selects, Flipper flipper, FilterNode node)
-
distinctStream
protected Stream<T> distinctStream(Stream<T> stream, List<Attribute<T,Serializable>> keyattrs)
-
querySheet
public Sheet<T> querySheet(boolean needTotal, boolean distinct, SelectColumn selects, Flipper flipper, FilterNode node)
-
insert
public int insert(T entity)
-
delete
public int delete(Serializable pk)
-
delete
public Serializable[] delete(Flipper flipper, FilterNode node)
-
drop
public int drop()
-
update
public int update(T entity)
-
update
public T update(T entity, Collection<Attribute<T,Serializable>> attrs)
-
update
public T[] update(T entity, Collection<Attribute<T,Serializable>> attrs, FilterNode node)
-
update
public <V> T update(Serializable pk, Attribute<T,V> attr, V fieldValue)
-
update
public <V> T[] update(Attribute<T,V> attr, V fieldValue, FilterNode node)
-
updateColumn
public T updateColumn(Serializable pk, List<Attribute<T,Serializable>> attrs, List<ColumnValue> values)
-
updateColumn
public T[] updateColumn(FilterNode node, Flipper flipper, List<Attribute<T,Serializable>> attrs, List<ColumnValue> values)
-
updateColumnOr
public <V> T updateColumnOr(Serializable pk, Attribute<T,V> attr, long orvalue)
-
updateColumnAnd
public <V> T updateColumnAnd(Serializable pk, Attribute<T,V> attr, long andvalue)
-
updateColumnIncrement
public <V> T updateColumnIncrement(Serializable pk, Attribute<T,V> attr, long incvalue)
-
updateColumnDecrement
public <V> T updateColumnDecrement(Serializable pk, Attribute<T,V> attr, long incvalue)
-
getAttribute
public Attribute<T,Serializable> getAttribute(String fieldname)
-
createComparator
protected Comparator<T> createComparator(Flipper flipper)
-
-