接口 DatabaseOperate
-
- 所有已知子接口:
BaseDatabaseOperate
public interface DatabaseOperateDerby database operation.- 作者:
- liaochuntao
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default java.lang.BooleanblockUpdate()data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.default java.lang.BooleanblockUpdate(java.util.function.BiConsumer<java.lang.Boolean,java.lang.Throwable> consumer)data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.java.util.concurrent.CompletableFuture<com.alibaba.nacos.common.model.RestResult<java.lang.String>>dataImport(java.io.File file)data importing, This method is suitable for importing data from external data sources into embedded data sources.default java.util.concurrent.CompletableFuture<java.lang.Boolean>futureUpdate()data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>queryMany(java.lang.String sql, java.lang.Object[] args)Data query transaction.<R> java.util.List<R>queryMany(java.lang.String sql, java.lang.Object[] args, java.lang.Class<R> rClass)Data query transaction.<R> java.util.List<R>queryMany(java.lang.String sql, java.lang.Object[] args, org.springframework.jdbc.core.RowMapper<R> mapper)Data query transaction.<R> RqueryOne(java.lang.String sql, java.lang.Class<R> cls)Data query transaction.<R> RqueryOne(java.lang.String sql, java.lang.Object[] args, java.lang.Class<R> cls)Data query transaction.<R> RqueryOne(java.lang.String sql, java.lang.Object[] args, org.springframework.jdbc.core.RowMapper<R> mapper)Data query transaction.default java.lang.Booleanupdate(java.util.List<ModifyRequest> modifyRequests)data modify transaction.java.lang.Booleanupdate(java.util.List<ModifyRequest> modifyRequests, java.util.function.BiConsumer<java.lang.Boolean,java.lang.Throwable> consumer)data modify transaction.
-
-
-
方法详细资料
-
queryOne
<R> R queryOne(java.lang.String sql, java.lang.Class<R> cls)Data query transaction.- 类型参数:
R- return type- 参数:
sql- sqk textcls- target type- 返回:
- query result
-
queryOne
<R> R queryOne(java.lang.String sql, java.lang.Object[] args, java.lang.Class<R> cls)Data query transaction.- 类型参数:
R- return type- 参数:
sql- sqk textargs- sql parameterscls- target type- 返回:
- query result
-
queryOne
<R> R queryOne(java.lang.String sql, java.lang.Object[] args, org.springframework.jdbc.core.RowMapper<R> mapper)Data query transaction.- 类型参数:
R- return type- 参数:
sql- sqk textargs- sql parametersmapper- Database query result converter- 返回:
- query result
-
queryMany
<R> java.util.List<R> queryMany(java.lang.String sql, java.lang.Object[] args, org.springframework.jdbc.core.RowMapper<R> mapper)Data query transaction.- 类型参数:
R- return type- 参数:
sql- sqk textargs- sql parametersmapper- Database query result converter- 返回:
- query result
-
queryMany
<R> java.util.List<R> queryMany(java.lang.String sql, java.lang.Object[] args, java.lang.Class<R> rClass)Data query transaction.- 类型参数:
R- return type- 参数:
sql- sqk textargs- sql parametersrClass- target type- 返回:
- query result
-
queryMany
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> queryMany(java.lang.String sql, java.lang.Object[] args)Data query transaction.- 参数:
sql- sqk textargs- sql parameters- 返回:
- query result
-
update
java.lang.Boolean update(java.util.List<ModifyRequest> modifyRequests, java.util.function.BiConsumer<java.lang.Boolean,java.lang.Throwable> consumer)
data modify transaction.- 参数:
modifyRequests-Listconsumer-BiConsumer- 返回:
- is success
-
update
default java.lang.Boolean update(java.util.List<ModifyRequest> modifyRequests)
data modify transaction.- 参数:
modifyRequests-List- 返回:
- is success
-
dataImport
java.util.concurrent.CompletableFuture<com.alibaba.nacos.common.model.RestResult<java.lang.String>> dataImport(java.io.File file)
data importing, This method is suitable for importing data from external data sources into embedded data sources.- 参数:
file-File- 返回:
CompletableFuture
-
blockUpdate
default java.lang.Boolean blockUpdate()
data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.- 返回:
- is success
-
blockUpdate
default java.lang.Boolean blockUpdate(java.util.function.BiConsumer<java.lang.Boolean,java.lang.Throwable> consumer)
data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.- 参数:
consumer- the consumer- 返回:
- java.lang.Boolean
-
futureUpdate
default java.util.concurrent.CompletableFuture<java.lang.Boolean> futureUpdate()
data modify transaction The SqlContext to be executed in the current thread will be executed and automatically cleared.- 返回:
- is success
-
-