public class TableMetaKit extends Object
| 构造器和说明 |
|---|
TableMetaKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addMutation(TableMetaMutation mutation)
覆盖默认的实体表元数据配置信息,优先级高于默认配置
在需要动态修改表名、列名等场景下使用
|
void |
addMutationInCurrentThread(TableMetaMutation mutation) |
void |
addMutationsInCurrentThread(TableMetaMutation... mutations) |
void |
clearMutationsInCurrentThread() |
TableMeta |
get(Class<?> entityClass) |
TableMeta |
get(String entityClassName) |
io.polaris.core.jdbc.ColumnMeta |
getColumn(Class<?> entityClass,
String fieldName) |
Map<String,io.polaris.core.jdbc.ColumnMeta> |
getColumns(Class<?> entityClass) |
io.polaris.core.jdbc.ExpressionMeta |
getExpression(Class<?> entityClass,
String fieldName) |
Map<String,io.polaris.core.jdbc.ExpressionMeta> |
getExpressions(Class<?> entityClass) |
static TableMetaKit |
instance() |
void |
removeMutation(Class<?> entityClass) |
void |
removeMutationInCurrentThread(TableMetaMutation mutation) |
public static TableMetaKit instance()
public void addMutation(TableMetaMutation mutation)
在需要动态修改表名、列名等场景下使用
public void removeMutation(Class<?> entityClass)
public void clearMutationsInCurrentThread()
public void addMutationInCurrentThread(TableMetaMutation mutation)
public void removeMutationInCurrentThread(TableMetaMutation mutation)
public void addMutationsInCurrentThread(TableMetaMutation... mutations)
public Map<String,io.polaris.core.jdbc.ExpressionMeta> getExpressions(Class<?> entityClass)
Copyright © 2024 fossc. All rights reserved.