Package cc.carm.lib.easysql.api.builder
Interface TableMetadataBuilder
-
- All Superinterfaces:
SQLBuilder
public interface TableMetadataBuilder extends SQLBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <R> java.util.concurrent.CompletableFuture<R>
fetchColumns(@Nullable java.lang.String columnPattern, @NotNull SQLFunction<java.sql.ResultSet,R> reader)
对表内的数据列元数据进行读取java.util.concurrent.CompletableFuture<java.lang.Boolean>
isColumnExists(@NotNull java.lang.String columnPattern)
default java.util.concurrent.CompletableFuture<@Unmodifiable java.util.Set<java.lang.String>>
listColumns()
列出所有表内的全部列。java.util.concurrent.CompletableFuture<@Unmodifiable java.util.Set<java.lang.String>>
listColumns(@Nullable java.lang.String columnPattern)
列出所有满足表达式的列。java.util.concurrent.CompletableFuture<java.lang.Boolean>
validateExist()
-
Methods inherited from interface cc.carm.lib.easysql.api.SQLBuilder
getManager
-
-
-
-
Method Detail
-
validateExist
java.util.concurrent.CompletableFuture<java.lang.Boolean> validateExist()
- Returns:
- 本表是否存在
-
fetchColumns
<R> java.util.concurrent.CompletableFuture<R> fetchColumns(@Nullable @Nullable java.lang.String columnPattern, @NotNull @NotNull SQLFunction<java.sql.ResultSet,R> reader)
对表内的数据列元数据进行读取- Type Parameters:
R
- 结果类型- Parameters:
columnPattern
- 列的名称匹配表达式, 为空则匹配所有列reader
- 读取的方法- Returns:
- 读取结果
-
isColumnExists
java.util.concurrent.CompletableFuture<java.lang.Boolean> isColumnExists(@NotNull @NotNull java.lang.String columnPattern)
- Parameters:
columnPattern
- 需要判断的列名表达式- Returns:
- 对应列是否存在
-
listColumns
default java.util.concurrent.CompletableFuture<@Unmodifiable java.util.Set<java.lang.String>> listColumns()
列出所有表内的全部列。- Returns:
- 表内全部数据列的列名
-
listColumns
java.util.concurrent.CompletableFuture<@Unmodifiable java.util.Set<java.lang.String>> listColumns(@Nullable @Nullable java.lang.String columnPattern)
列出所有满足表达式的列。- Parameters:
columnPattern
- 列名表达式,为空则列出全部- Returns:
- 所有满足表达式的列名
-
-