@Component(value="anyline.dao") public class DefaultDao<E> extends Object implements AnylineDao<E>
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
log |
protected DataRuntime |
runtime |
| 构造器和说明 |
|---|
DefaultDao() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Column meta) |
boolean |
add(Constraint meta) |
boolean |
add(ForeignKey meta) |
boolean |
add(Index meta) |
boolean |
add(PrimaryKey meta) |
boolean |
add(Tag meta) |
boolean |
add(Trigger meta)
触发器
|
boolean |
alter(Column meta) |
boolean |
alter(Constraint meta) |
boolean |
alter(ForeignKey meta) |
boolean |
alter(Function meta) |
boolean |
alter(Index meta) |
boolean |
alter(MasterTable meta) |
boolean |
alter(PartitionTable meta) |
boolean |
alter(PrimaryKey meta) |
boolean |
alter(Procedure meta) |
boolean |
alter(Sequence meta) |
boolean |
alter(Table meta) |
boolean |
alter(Table table,
Column column) |
boolean |
alter(Table table,
Column meta,
boolean trigger)
修改列
|
boolean |
alter(Table table,
Constraint meta) |
boolean |
alter(Table table,
ForeignKey meta) |
boolean |
alter(Table table,
Index meta) |
boolean |
alter(Table table,
PrimaryKey meta) |
boolean |
alter(Table table,
Tag column) |
boolean |
alter(Table table,
Tag meta,
boolean trigger)
修改标签
|
boolean |
alter(Tag meta) |
boolean |
alter(Trigger meta) |
boolean |
alter(View meta) |
Catalog |
catalog(DataRuntime runtime,
String random) |
List<Catalog> |
catalogs(DataRuntime runtime,
String random,
boolean greedy,
String name) |
LinkedHashMap<String,Catalog> |
catalogs(DataRuntime runtime,
String random,
String name) |
protected <T> void |
checkMany2ManyDependencyQuery(DataRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
protected <T> void |
checkOne2ManyDependencyQuery(DataRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
<T extends Column> |
columns(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema) |
<T extends Column> |
columns(DataRuntime runtime,
String random,
boolean greedy,
Table table,
boolean primary)
查询表结构
|
<T extends Constraint> |
constraints(DataRuntime runtime,
String random,
boolean greedy,
Table table,
String name) |
<T extends Constraint> |
constraints(DataRuntime runtime,
String random,
Table table,
Column column,
String name) |
long |
count(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
统计总行数
|
boolean |
create(Function meta)
函数
|
boolean |
create(MasterTable meta) |
boolean |
create(PartitionTable meta) |
boolean |
create(Procedure meta)
触发器
|
boolean |
create(Sequence meta)
函数
|
boolean |
create(Table meta) |
boolean |
create(View meta) |
Database |
database(DataRuntime runtime,
String random) |
Database |
database(DataRuntime runtime,
String random,
String name) |
List<Database> |
databases(DataRuntime runtime,
String random,
boolean greedy,
String name) |
LinkedHashMap<String,Database> |
databases(DataRuntime runtime,
String random,
String name) |
List<Run> |
ddl(DataRuntime runtime,
List<MetadataDiffer> differs)
根据差异生成SQL
|
List<Run> |
ddl(DataRuntime runtime,
MetadataDiffer differ)
根据差异生成SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
EdgeTable meta,
boolean init)
查询表的创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
Function function)
查询 Function 创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
PartitionTable table)
查询 PartitionTable 创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
Procedure procedure)
查询 Procedure 创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
Sequence sequence)
查询 sequence 创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
Table table,
boolean init)
查询表的创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
VertexTable meta,
boolean init)
查询表的创建SQL
|
List<String> |
ddl(DataRuntime runtime,
String random,
View view,
boolean init)
查询视图的创建SQL
|
long |
delete(DataRuntime runtime,
String random,
Table dest,
ConfigStore configs,
Object obj,
String... columns) |
long |
delete(DataRuntime runtime,
String random,
Table table,
ConfigStore configs,
String... conditions) |
<T> long |
deletes(DataRuntime runtime,
String random,
int batch,
Table table,
String key,
Collection<T> values) |
boolean |
drop(Column meta) |
boolean |
drop(Constraint meta) |
boolean |
drop(ForeignKey meta) |
boolean |
drop(Function meta) |
boolean |
drop(Index meta) |
boolean |
drop(MasterTable meta) |
boolean |
drop(PartitionTable meta) |
boolean |
drop(PrimaryKey meta) |
boolean |
drop(Procedure meta) |
boolean |
drop(Sequence meta) |
boolean |
drop(Table meta) |
boolean |
drop(Tag meta) |
boolean |
drop(Trigger meta) |
boolean |
drop(View meta) |
<T extends EdgeTable> |
edgeTables(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs)
edgeTables
|
<T extends EdgeTable> |
edgeTables(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs) |
long |
execute(DataRuntime runtime,
String random,
int batch,
int vol,
RunPrepare prepare,
Collection<Object> values) |
long |
execute(DataRuntime runtime,
String random,
int batch,
RunPrepare prepare,
Collection<Object> values) |
boolean |
execute(DataRuntime runtime,
String random,
Procedure procedure)
执行存储过程
|
long |
execute(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
执行
|
boolean |
exists(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
检测是否存在
|
boolean |
fix()
是否固定数据源
|
<T extends ForeignKey> |
foreigns(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Function> |
functions(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String name) |
<T extends Function> |
functions(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String name) |
<T extends Index> |
indexes(DataRuntime runtime,
String random,
boolean greedy,
Table table,
String name) |
<T extends Index> |
indexes(DataRuntime runtime,
String random,
Table table,
String name) |
long |
insert(DataRuntime runtime,
String random,
int batch,
Table dest,
Object data,
ConfigStore configs,
List<String> columns)
添加
|
long |
insert(DataRuntime runtime,
String random,
Table dest,
RunPrepare prepare,
ConfigStore configs,
Object obj,
String... conditions)
insert into table select * from table
与query参数一致
|
List<Map<String,Object>> |
maps(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询map列表
|
<T extends MasterTable> |
masterTables(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs)
masterTables
|
<T extends MasterTable> |
masterTables(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs) |
LinkedHashMap<String,Column> |
metadata(RunPrepare prepare,
boolean comment)
根据结果集对象获取列结构, 如果有表名应该调用metadata().columns(table);或metadata().table(table).getColumns()
|
<T extends PartitionTable> |
partitionTables(DataRuntime runtime,
String random,
boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
PrimaryKey |
primary(DataRuntime runtime,
String random,
boolean greedy,
Table table)
索引
|
<T extends Procedure> |
procedures(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String name) |
<T extends Procedure> |
procedures(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String name) |
String |
product(DataRuntime runtime,
String random)
当前数据源 数据库描述(产品名称+版本号)
|
DataSet |
querys(DataRuntime runtime,
String random,
Procedure procedure,
PageNavi navi)
根据存储过程查询(MSSQL AS 后必须加 SET NOCOUNT ON)
|
DataSet |
querys(DataRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原, querys会自动还原数据源(dao内部执行过程中不要调用除非是一些重载), 而select不会 |
boolean |
rename(Column origin,
String name) |
boolean |
rename(Constraint origin,
String name) |
boolean |
rename(ForeignKey origin,
String name) |
boolean |
rename(Function origin,
String name) |
boolean |
rename(Index origin,
String name) |
boolean |
rename(MasterTable origin,
String name) |
boolean |
rename(PartitionTable origin,
String name) |
boolean |
rename(PrimaryKey origin,
String name) |
boolean |
rename(Procedure origin,
String name) |
boolean |
rename(Sequence origin,
String name) |
boolean |
rename(Table origin,
String name)
重命名
|
boolean |
rename(Tag origin,
String name) |
boolean |
rename(Trigger origin,
String name) |
boolean |
rename(View origin,
String name) |
DataRuntime |
runtime() |
long |
save(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
保存(insert|update)
|
long |
save(DataRuntime runtime,
String random,
int batch,
Table dest,
Object data,
ConfigStore configs,
List<String> columns)
保存(insert|update)
|
Schema |
schema(DataRuntime runtime,
String random) |
List<Schema> |
schemas(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
String name) |
LinkedHashMap<String,Schema> |
schemas(DataRuntime runtime,
String random,
Catalog catalog,
String name) |
protected DataSet |
select(DataRuntime runtime,
String random,
boolean system,
String table,
ConfigStore configs,
Run run)
查询
|
<T> EntitySet<T> |
selects(DataRuntime runtime,
String random,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
查询
|
DataRow |
sequence(DataRuntime runtime,
String random,
boolean next,
String... names)
查询序列值
|
<T extends Sequence> |
sequences(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String name) |
<T extends Sequence> |
sequences(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String name) |
void |
setRuntime(DataRuntime runtime) |
<T extends Table> |
tables(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs)
tables
|
<T extends Table> |
tables(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs) |
<T extends Tag> |
tags(DataRuntime runtime,
String random,
boolean greedy,
Table table) |
<T extends Trigger> |
triggers(DataRuntime runtime,
String random,
boolean greedy,
Table table,
List<Trigger.EVENT> events) |
long |
truncate(DataRuntime runtime,
String random,
Table table) |
DatabaseType |
type()
当前数据源 数据库类型
|
long |
update(DataRuntime runtime,
String random,
int batch,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
更新记录
|
long |
update(DataRuntime runtime,
String random,
int batch,
Table dest,
Object data,
ConfigStore configs,
List<String> columns)
更新
|
String |
version(DataRuntime runtime,
String random)
当前数据源 数据库版本 版本号比较复杂 不是全数字
|
<T extends VertexTable> |
vertexTables(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs)
vertexTables
|
<T extends VertexTable> |
vertexTables(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs) |
<T extends View> |
views(DataRuntime runtime,
String random,
boolean greedy,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs)
views
|
<T extends View> |
views(DataRuntime runtime,
String random,
Catalog catalog,
Schema schema,
String pattern,
int types,
int struct,
ConfigStore configs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcatalog, catalogs, catalogs, columns, columns, columns, columns, columns, columns, columns, columns, columns, columns, constraints, constraints, constraints, constraints, constraints, constraints, constraints, constraints, constraints, constraints, constraints, constraints, count, database, database, databases, databases, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, delete, delete, delete, delete, delete, delete, delete, delete, deletes, deletes, deletes, deletes, deletes, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, edgeTables, execute, execute, execute, execute, execute, exists, foreigns, functions, functions, indexes, indexes, indexes, indexes, indexes, indexes, indexes, indexes, indexes, indexes, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, maps, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, masterTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, partitionTables, primary, primary, primary, primary, primary, primary, procedures, procedures, product, querys, querys, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, save, schema, schemas, schemas, selects, sequence, sequences, sequences, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tables, tags, tags, tags, tags, tags, tags, triggers, truncate, truncate, truncate, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, version, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, vertexTables, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, views, viewsprotected static final org.slf4j.Logger log
protected DataRuntime runtime
public DataRuntime runtime()
runtime 在接口中 AnylineDao<E>public void setRuntime(DataRuntime runtime)
setRuntime 在接口中 AnylineDao<E>public boolean fix()
public List<Run> ddl(DataRuntime runtime, MetadataDiffer differ)
ddl 在接口中 AnylineDao<E>differ - differpublic List<Run> ddl(DataRuntime runtime, List<MetadataDiffer> differs)
ddl 在接口中 AnylineDao<E>differs - differspublic List<Map<String,Object>> maps(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
maps 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件public DataSet querys(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
querys 在接口中 AnylineDao<E>prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public <T> EntitySet<T> selects(DataRuntime runtime, String random, RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions)
selects 在接口中 AnylineDao<E>prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public DataRow sequence(DataRuntime runtime, String random, boolean next, String... names)
sequence 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令next - 是否生成返回下一个序列 false:cur true:nextnames - 可以是多个序列public long count(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
count 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件public boolean exists(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
exists 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - 过滤条件及相关配置conditions - 简单过滤条件public long update(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns)
update 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源data - 需要更新的数据configs - 更新条件 如果没提供则根据data主键columns - 需要更新的列 如果没有提供则解析data解析public long update(DataRuntime runtime, String random, int batch, String dest, Object data, ConfigStore configs, List<String> columns)
AnylineDaoupdate 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源data - 需要更新的数据configs - 更新条件 如果没提供则根据data主键columns - 需要更新的列 如果没有提供则解析data解析protected <T> void checkMany2ManyDependencyQuery(DataRuntime runtime, String random, EntitySet<T> set, int dependency)
protected <T> void checkOne2ManyDependencyQuery(DataRuntime runtime, String random, EntitySet<T> set, int dependency)
public long save(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns)
save 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源data - datacolumns - columnspublic long save(DataRuntime runtime, String random, int batch, String dest, Object data, ConfigStore configs, List<String> columns)
AnylineDaosave 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源data - datacolumns - columnspublic long insert(DataRuntime runtime, String random, int batch, Table dest, Object data, ConfigStore configs, List<String> columns)
insert 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令dest - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源data - 需要插入的数据columns - 需要插入的列public long insert(DataRuntime runtime, String random, Table dest, RunPrepare prepare, ConfigStore configs, Object obj, String... conditions)
insert 在接口中 AnylineDao<E>dest - 插入表prepare - 查询表configs - 查询条件及相关配置obj - 查询条件conditions - 查询条件protected DataSet select(DataRuntime runtime, String random, boolean system, String table, ConfigStore configs, Run run)
runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 查询表结构时使用system - 系统表不查询表结构run - 最终待执行的命令和参数(如果是JDBC环境就是SQL)public long execute(DataRuntime runtime, String random, RunPrepare prepare, ConfigStore configs, String... conditions)
execute 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令prepare - 构建最终执行命令的全部参数,包含表(或视图|函数|自定义SQL)查询条件 排序 分页等configs - configsconditions - conditionspublic long execute(DataRuntime runtime, String random, int batch, RunPrepare prepare, Collection<Object> values)
execute 在接口中 AnylineDao<E>public long execute(DataRuntime runtime, String random, int batch, int vol, RunPrepare prepare, Collection<Object> values)
execute 在接口中 AnylineDao<E>public boolean execute(DataRuntime runtime, String random, Procedure procedure)
execute 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令procedure - 存储过程public DataSet querys(DataRuntime runtime, String random, Procedure procedure, PageNavi navi)
querys 在接口中 AnylineDao<E>procedure - procedurenavi - navipublic <T> long deletes(DataRuntime runtime, String random, int batch, Table table, String key, Collection<T> values)
deletes 在接口中 AnylineDao<E>T - runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令table - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源key - 列values - 值集合public long delete(DataRuntime runtime, String random, Table dest, ConfigStore configs, Object obj, String... columns)
delete 在接口中 AnylineDao<E>public long delete(DataRuntime runtime, String random, Table table, ConfigStore configs, String... conditions)
delete 在接口中 AnylineDao<E>public long truncate(DataRuntime runtime, String random, Table table)
truncate 在接口中 AnylineDao<E>public DatabaseType type()
AnylineDaotype 在接口中 AnylineDao<E>public String version(DataRuntime runtime, String random)
AnylineDaoversion 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public String product(DataRuntime runtime, String random)
AnylineDaoproduct 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public LinkedHashMap<String,Column> metadata(RunPrepare prepare, boolean comment)
metadata 在接口中 AnylineDao<E>prepare - RunPreparecomment - 是否需要注释public Database database(DataRuntime runtime, String random)
database 在接口中 AnylineDao<E>public LinkedHashMap<String,Database> databases(DataRuntime runtime, String random, String name)
databases 在接口中 AnylineDao<E>public List<Database> databases(DataRuntime runtime, String random, boolean greedy, String name)
databases 在接口中 AnylineDao<E>public Database database(DataRuntime runtime, String random, String name)
database 在接口中 AnylineDao<E>public Catalog catalog(DataRuntime runtime, String random)
catalog 在接口中 AnylineDao<E>public LinkedHashMap<String,Catalog> catalogs(DataRuntime runtime, String random, String name)
catalogs 在接口中 AnylineDao<E>public List<Catalog> catalogs(DataRuntime runtime, String random, boolean greedy, String name)
catalogs 在接口中 AnylineDao<E>public LinkedHashMap<String,Schema> schemas(DataRuntime runtime, String random, Catalog catalog, String name)
schemas 在接口中 AnylineDao<E>public Schema schema(DataRuntime runtime, String random)
schema 在接口中 AnylineDao<E>public List<Schema> schemas(DataRuntime runtime, String random, boolean greedy, Catalog catalog, String name)
schemas 在接口中 AnylineDao<E>public <T extends Table> List<T> tables(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
tables 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话, 可以直接设置为null, 如果设置为特定的表名称, 则返回该表的具体信息。types - Metadata.TYPEpublic <T extends Table> LinkedHashMap<String,T> tables(DataRuntime runtime, String random, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
tables 在接口中 AnylineDao<E>public <T extends VertexTable> List<T> vertexTables(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
vertexTables 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话, 可以直接设置为null, 如果设置为特定的表名称, 则返回该表的具体信息。types - Metadata.TYPEpublic <T extends VertexTable> LinkedHashMap<String,T> vertexTables(DataRuntime runtime, String random, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
vertexTables 在接口中 AnylineDao<E>public <T extends EdgeTable> List<T> edgeTables(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
edgeTables 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话, 可以直接设置为null, 如果设置为特定的表名称, 则返回该表的具体信息。types - Metadata.TYPEpublic <T extends EdgeTable> LinkedHashMap<String,T> edgeTables(DataRuntime runtime, String random, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
edgeTables 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, EdgeTable meta, boolean init)
ddl 在接口中 AnylineDao<E>meta - EdgeTableinit - 是否还原初始状态(如自增ID)runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public List<String> ddl(DataRuntime runtime, String random, VertexTable meta, boolean init)
ddl 在接口中 AnylineDao<E>meta - vertexTableinit - 是否还原初始状态(如自增ID)runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public List<String> ddl(DataRuntime runtime, String random, Table table, boolean init)
ddl 在接口中 AnylineDao<E>table - tableinit - 是否还原初始状态(如自增ID)runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令public <T extends View> List<T> views(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
views 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话, 可以直接设置为null, 如果设置为特定的表名称, 则返回该表的具体信息。types - Metadata.TYPEpublic <T extends View> LinkedHashMap<String,T> views(DataRuntime runtime, String random, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
views 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, View view, boolean init)
AnylineDaoddl 在接口中 AnylineDao<E>runtime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令view - 视图init - 是否还原初始状态(自增ID)public <T extends MasterTable> List<T> masterTables(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
masterTables 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL, 则对应相应的数据库, 对于Oracle来说, 则是对应相应的数据库实例, 可以不填, 也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名, 而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意, 其登陆名必须是大写, 不然的话是无法获取到相应的数据, 而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话, 可以直接设置为null, 如果设置为特定的表名称, 则返回该表的具体信息。types - Metadata.TYPEpublic <T extends MasterTable> LinkedHashMap<String,T> masterTables(DataRuntime runtime, String random, Catalog catalog, Schema schema, String pattern, int types, int struct, ConfigStore configs)
masterTables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> partitionTables(DataRuntime runtime, String random, boolean greedy, MasterTable master, Map<String,Object> tags, String name)
partitionTables 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, PartitionTable table)
ddl 在接口中 AnylineDao<E>table - PartitionTablepublic <T extends Column> LinkedHashMap<String,T> columns(DataRuntime runtime, String random, boolean greedy, Table table, boolean primary)
AnylineDaocolumns 在接口中 AnylineDao<E>T - Columnruntime - 运行环境主要包含驱动适配器 数据源或客户端random - 用来标记同一组命令greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询table - 表primary - 是否检测列的主键标识public <T extends Column> List<T> columns(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema)
columns 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(DataRuntime runtime, String random, boolean greedy, Table table)
tags 在接口中 AnylineDao<E>public PrimaryKey primary(DataRuntime runtime, String random, boolean greedy, Table table)
primary 在接口中 AnylineDao<E>table - 表 如果不提供表名则根据data解析, 表名可以事实前缀<数据源名>表示切换数据源public <T extends ForeignKey> LinkedHashMap<String,T> foreigns(DataRuntime runtime, String random, boolean greedy, Table table)
foreigns 在接口中 AnylineDao<E>public <T extends Index> List<T> indexes(DataRuntime runtime, String random, boolean greedy, Table table, String name)
indexes 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexes(DataRuntime runtime, String random, Table table, String name)
indexes 在接口中 AnylineDao<E>public <T extends Constraint> List<T> constraints(DataRuntime runtime, String random, boolean greedy, Table table, String name)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(DataRuntime runtime, String random, Table table, Column column, String name)
constraints 在接口中 AnylineDao<E>public <T extends Trigger> LinkedHashMap<String,T> triggers(DataRuntime runtime, String random, boolean greedy, Table table, List<Trigger.EVENT> events)
triggers 在接口中 AnylineDao<E>public <T extends Procedure> List<T> procedures(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String name)
procedures 在接口中 AnylineDao<E>public <T extends Procedure> LinkedHashMap<String,T> procedures(DataRuntime runtime, String random, Catalog catalog, Schema schema, String name)
procedures 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, Procedure procedure)
ddl 在接口中 AnylineDao<E>procedure - Procedurepublic <T extends Function> List<T> functions(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String name)
functions 在接口中 AnylineDao<E>public <T extends Function> LinkedHashMap<String,T> functions(DataRuntime runtime, String random, Catalog catalog, Schema schema, String name)
functions 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, Function function)
ddl 在接口中 AnylineDao<E>function - Functionpublic <T extends Sequence> List<T> sequences(DataRuntime runtime, String random, boolean greedy, Catalog catalog, Schema schema, String name)
sequences 在接口中 AnylineDao<E>public <T extends Sequence> LinkedHashMap<String,T> sequences(DataRuntime runtime, String random, Catalog catalog, Schema schema, String name)
sequences 在接口中 AnylineDao<E>public List<String> ddl(DataRuntime runtime, String random, Sequence sequence)
ddl 在接口中 AnylineDao<E>sequence - 序列public boolean create(Table meta) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Table origin, String name) throws Exception
rename 在接口中 AnylineDao<E>origin - 原表name - 新名称Exception - DDL异常public boolean create(View meta) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean rename(View origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(MasterTable meta) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean alter(MasterTable meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(MasterTable meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(MasterTable origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(PartitionTable meta) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean alter(PartitionTable meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(PartitionTable meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(PartitionTable origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Column column) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Column meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Column meta, boolean trigger) throws Exception
meta - 列trigger - 是否触发异常事件Exception - 异常 SQL异常public boolean rename(Column origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Tag column) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Tag meta, boolean trigger) throws Exception
meta - 标签trigger - 是否触发异常事件Exception - 异常 SQL异常public boolean rename(Tag origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(PrimaryKey meta) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(PrimaryKey meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, PrimaryKey meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(PrimaryKey meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(PrimaryKey origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(ForeignKey meta) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(ForeignKey meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, ForeignKey meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(ForeignKey meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(ForeignKey origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Index meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Index origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(Constraint meta) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Constraint meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Constraint meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Constraint meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Constraint origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(Trigger meta) throws Exception
AnylineDaoadd 在接口中 AnylineDao<E>meta - 触发器Exception - 异常 Exceptionpublic boolean alter(Trigger meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Trigger origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Procedure meta) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>meta - 存储过程Exception - 异常 Exceptionpublic boolean alter(Procedure meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Procedure meta) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Procedure origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Function meta) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>meta - 函数Exception - 异常 Exceptionpublic boolean alter(Function meta) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Function origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Sequence meta) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>meta - 序列Exception - 异常 Exceptionpublic boolean alter(Sequence meta) throws Exception
alter 在接口中 AnylineDao<E>ExceptionCopyright © 2024. All rights reserved.