public class DefaultSQLOperator extends Service implements SQLOperator
Service.Election, Service.ElectionListenerActivity.ServiceState| 构造器和说明 |
|---|
DefaultSQLOperator(Properties properties,
DataSourceFactory dataSourceFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
BatchSQLOperator |
beginBatch() |
int |
delete(String sql,
Object... params) |
protected void |
doStop() |
protected Connection |
getConnection() |
protected Connection |
getTransactionConnection() |
String |
insert(String sql,
Object... params) |
ResultSet |
query(String sql,
Object... params) |
protected void |
releaseConnection(Connection connection) |
int |
update(String sql,
Object... params) |
getServiceState, isReady, isStarted, isStopped, start, stop, stop, validate, willStopafterStart, afterStop, await, beforeStart, beforeStop, convert, doStart, getReadLock, getWriteLock, startErrorpublic DefaultSQLOperator(Properties properties, DataSourceFactory dataSourceFactory)
public String insert(String sql, Object... params)
insert 在接口中 SQLOperatorpublic int update(String sql, Object... params)
update 在接口中 SQLOperatorpublic int delete(String sql, Object... params)
delete 在接口中 SQLOperatorpublic ResultSet query(String sql, Object... params)
query 在接口中 SQLOperatorpublic BatchSQLOperator beginBatch()
beginBatch 在接口中 SQLOperatorprotected Connection getTransactionConnection()
protected Connection getConnection()
protected void releaseConnection(Connection connection)
Copyright © 2020 Joyqueue Community. All rights reserved.