| 限定符和类型 | 类和说明 |
|---|---|
static interface |
WriteBase.Callback
事件回调
|
static interface |
WriteBase.Event |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Connection |
transactionConnection
事务的链接信息
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
WriteBase() |
protected |
WriteBase(Connection transactionConnection) |
|
WriteBase(T data) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
checkUpdate(Class cls,
HashMap<String,Object> update)
效验update 是否合法
|
WriteBase.Callback |
getCallback() |
T |
getData() |
void |
isThrows(Throwable t)
处理异常
|
protected void |
recycling()
回收对象信息
|
abstract void |
run()
异步执行
|
protected void |
setAsync() |
WriteBase |
setCallback(WriteBase.Callback callback)
设置回调事件监听
|
WriteBase |
setData(T data) |
protected void |
setThrowable(Throwable throwable) |
getAsyncLog, getOptUserId, getRefKey, getRefMap, getRefWhere, getRemove, getTableName, getTag, getTclass, getTclass, getTransferLog, isThrows, isUseDataBaseName, putRefClass, putRefClass, runEnd, setOptUserId, setRefKey, setRemove, setRunSql, setTableName, setTag, setTclass, setThrows, setUseDataBaseNameprotected Connection transactionConnection
protected WriteBase(Connection transactionConnection)
protected WriteBase()
public WriteBase(T data)
data - 对应实体public WriteBase setCallback(WriteBase.Callback callback)
callback - 事件public WriteBase.Callback getCallback()
protected void setThrowable(Throwable throwable)
protected void setAsync()
public abstract void run()
public T getData()
Copyright © 2017–2018. All rights reserved.