public class GlobalJdbcUpdateImpl extends AbstractJdbcUpdate implements IGlobalUpdate
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
dbCluster, idGenerator, primaryCache, secondCache| Constructor and Description |
|---|
GlobalJdbcUpdateImpl() |
| Modifier and Type | Method and Description |
|---|---|
private void |
_removeByPksGlobal(Connection conn,
List<? extends Number> pks,
Class<?> clazz) |
private void |
_saveBatchGlobal(Connection conn,
List<? extends Object> entities) |
private void |
_updateBatchGlobal(Connection conn,
List<? extends Object> entities) |
void |
globalRemoveByPk(Number pk,
Class<?> clazz,
String clusterName)
删除全局库
|
void |
globalRemoveByPks(List<? extends Number> pks,
Class<?> clazz,
String clusterName)
批量删除全局库
|
Number |
globalSave(Object entity,
String clusterName)
保存数据到集群全局库.
|
Number[] |
globalSaveBatch(List<? extends Object> entities,
String clusterName)
批量保存数据到全局库.
|
void |
globalUpdate(Object entity,
String clusterName)
更新全局库
|
void |
globalUpdateBatch(List<? extends Object> entities,
String clusterName)
批量更新全局库
|
_removeByPks, _saveBatch, _updateBatch, getDBCluster, getIdGenerator, getPrimaryCache, getSecondCache, isCacheAvailable, isSecondCacheAvailable, setDBCluster, setIdGenerator, setPrimaryCache, setSecondCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDBCluster, getIdGenerator, getPrimaryCache, getSecondCache, setDBCluster, setIdGenerator, setPrimaryCache, setSecondCachepublic Number globalSave(Object entity, String clusterName)
IGlobalUpdateglobalSave in interface IGlobalUpdateentity - 数据对象clusterName - 集群名public Number[] globalSaveBatch(List<? extends Object> entities, String clusterName)
IGlobalUpdateglobalSaveBatch in interface IGlobalUpdateentities - 批量数据对象clusterName - 集群名public void globalUpdate(Object entity, String clusterName)
IGlobalUpdateglobalUpdate in interface IGlobalUpdateentity - 数据对象clusterName - 集群名称public void globalUpdateBatch(List<? extends Object> entities, String clusterName)
IGlobalUpdateglobalUpdateBatch in interface IGlobalUpdateentities - 批量更新数据clusterName - 集群名public void globalRemoveByPk(Number pk, Class<?> clazz, String clusterName)
IGlobalUpdateglobalRemoveByPk in interface IGlobalUpdatepublic void globalRemoveByPks(List<? extends Number> pks, Class<?> clazz, String clusterName)
IGlobalUpdateglobalRemoveByPks in interface IGlobalUpdateprivate void _saveBatchGlobal(Connection conn, List<? extends Object> entities)
private void _updateBatchGlobal(Connection conn, List<? extends Object> entities)
private void _removeByPksGlobal(Connection conn, List<? extends Number> pks, Class<?> clazz)
Copyright © 2015. All rights reserved.