public interface IGlobalUpdate extends IDataUpdate
| Modifier and Type | Method and Description |
|---|---|
void |
removeByPk(EntityPK pk,
Class<?> clazz,
String clusterName)
删除全局库
|
void |
removeByPks(List<EntityPK> pks,
Class<?> clazz,
String clusterName)
批量删除全局库
|
PKValue |
save(Object entity,
String clusterName)
保存数据到集群全局库.
|
PKValue[] |
saveBatch(List<? extends Object> entities,
String clusterName,
boolean autoGeneratedKeys)
批量保存数据到全局库.
|
void |
update(Object entity,
String clusterName)
更新全局库
|
void |
updateBatch(List<? extends Object> entities,
String clusterName)
批量更新全局库
|
getDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerPKValue save(Object entity, String clusterName)
entity - 数据对象clusterName - 集群名DBOperationException - 操作失败PKValue[] saveBatch(List<? extends Object> entities, String clusterName, boolean autoGeneratedKeys)
entities - 批量数据对象clusterName - 集群名DBOperationException - 操作失败void update(Object entity, String clusterName)
entity - 数据对象clusterName - 集群名称DBOperationException - 操作失败void updateBatch(List<? extends Object> entities, String clusterName)
entities - 批量更新数据clusterName - 集群名DBOperationException - 操作失败void removeByPk(EntityPK pk, Class<?> clazz, String clusterName)
pk - shardingValue - clazz - Copyright © 2015. All rights reserved.