public abstract class AbstractJdbcUpdate extends AbstractDataLayer implements IDataUpdate
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
dbCluster, entityMetaManager, primaryCache, secondCache, txManager| Constructor and Description |
|---|
AbstractJdbcUpdate() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
_removeByPks(Connection conn,
List<EntityPK> pks,
Class<?> clazz,
int tableIndex) |
protected List<PKValue> |
_saveBatchWithAutoGeneratedKeys(Connection conn,
List<? extends Object> entities,
int tableIndex)
执行保存数据操作.
|
protected int |
_saveBatchWithoutAutoGeneratedKeys(Connection conn,
List<? extends Object> entities,
int tableIndex)
批量保存数据,忽略自增主键.
|
protected int |
_updateBatch(Connection conn,
List<? extends Object> entities,
int tableIndex) |
fillParam, getDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, isCacheAvailable, isCacheAvailable, isSecondCacheAvailable, isSecondCacheAvailable, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerprotected List<PKValue> _saveBatchWithAutoGeneratedKeys(Connection conn, List<? extends Object> entities, int tableIndex) throws SQLException
conn - 数据库连接entities - 需要被保存的数据tableIndex - 分片表下标. 当-1时忽略下标SQLExceptionprotected int _saveBatchWithoutAutoGeneratedKeys(Connection conn, List<? extends Object> entities, int tableIndex) throws SQLException
conn - entities - tableIndex - SQLExceptionprotected int _removeByPks(Connection conn, List<EntityPK> pks, Class<?> clazz, int tableIndex) throws SQLException
tableIndex - 等于-1时会被忽略.SQLExceptionprotected int _updateBatch(Connection conn, List<? extends Object> entities, int tableIndex) throws SQLException
tableIndex - 等于-1时会被忽略.SQLExceptionCopyright © 2015. All rights reserved.