@Primary @Repository(value="anyline.dao") public class DefaultDao<E> extends Object implements AnylineDao<E>
| 限定符和类型 | 字段和说明 |
|---|---|
protected static DDListener |
ddListener |
protected static DMListener |
dmListener |
protected static boolean |
isBatchInsertRun |
protected static org.slf4j.Logger |
log |
protected JDBCRuntime |
runtime |
| 构造器和说明 |
|---|
DefaultDao() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Column column) |
boolean |
add(Constraint constraint) |
boolean |
add(ForeignKey foreign) |
boolean |
add(Index index) |
boolean |
add(PrimaryKey primary) |
boolean |
add(Tag tag) |
boolean |
alter(Column column) |
boolean |
alter(Constraint constraint) |
boolean |
alter(ForeignKey foreign) |
boolean |
alter(Function function) |
boolean |
alter(Index index) |
boolean |
alter(MasterTable table) |
boolean |
alter(PartitionTable table) |
boolean |
alter(PrimaryKey primary) |
boolean |
alter(Procedure procedure) |
boolean |
alter(Table table) |
boolean |
alter(Table table,
Column column) |
boolean |
alter(Table table,
Constraint constraint) |
boolean |
alter(Table table,
ForeignKey foreign) |
boolean |
alter(Table table,
Index index) |
boolean |
alter(Table table,
PrimaryKey primary) |
boolean |
alter(Table table,
Tag tag) |
boolean |
alter(Tag tag) |
boolean |
alter(Trigger trigger) |
boolean |
alter(View view) |
protected boolean |
checkIsNew(Object obj) |
protected <T> void |
checkMany2ManyDependencyQuery(JDBCRuntime runtime,
EntitySet<T> set,
int dependency) |
protected <T> void |
checkOne2ManyDependencyQuery(JDBCRuntime runtime,
EntitySet<T> set,
int dependency) |
protected Boolean |
checkOverride(Object obj) |
protected Map<String,Object> |
checkPv(Object obj) |
void |
checkSchema(JDBCRuntime runtime,
Column column) |
void |
checkSchema(JDBCRuntime runtime,
Constraint constraint) |
void |
checkSchema(JDBCRuntime runtime,
Function function) |
void |
checkSchema(JDBCRuntime runtime,
Index index) |
void |
checkSchema(JDBCRuntime runtime,
Procedure procedure) |
void |
checkSchema(JDBCRuntime runtime,
Table table) |
void |
checkSchema(JDBCRuntime runtime,
Trigger trigger) |
<T extends Column> |
columns(boolean greedy,
String table) |
<T extends Column> |
columns(boolean greedy,
String catalog,
String schema,
String table) |
<T extends Column> |
columns(boolean greedy,
Table table) |
<T extends Column> |
columns(JDBCRuntime runtime,
boolean greedy,
Table table) |
<T extends Column> |
columns(String table) |
<T extends Column> |
columns(String catalog,
String schema,
String table) |
<T extends Column> |
columns(Table table) |
<T extends Constraint> |
constraints(boolean greedy,
String table) |
<T extends Constraint> |
constraints(boolean greedy,
String table,
String name) |
<T extends Constraint> |
constraints(boolean greedy,
String catalog,
String schema,
String table) |
<T extends Constraint> |
constraints(boolean greedy,
Table table) |
<T extends Constraint> |
constraints(boolean greedy,
Table table,
String name) |
<T extends Constraint> |
constraints(String table) |
<T extends Constraint> |
constraints(String table,
String name) |
<T extends Constraint> |
constraints(String catalog,
String schema,
String table) |
<T extends Constraint> |
constraints(Table table) |
<T extends Constraint> |
constraints(Table table,
String name) |
protected int |
count(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
int |
count(RunPrepare prepare,
ConfigStore configs,
String... conditions) |
int |
count(RunPrepare prepare,
String... conditions) |
boolean |
create(Function function)
函数
|
boolean |
create(MasterTable table) |
boolean |
create(PartitionTable table) |
boolean |
create(Procedure procedure)
触发器
|
boolean |
create(Table table) |
boolean |
create(Trigger trigger)
触发器
|
boolean |
create(View view) |
LinkedHashMap<String,Database> |
databases() |
int |
delete(String table,
ConfigStore configs,
String... conditions) |
int |
delete(String dest,
Object obj,
String... columns) |
protected int |
deletes(boolean recover,
String table,
String key,
Object... values) |
<T> int |
deletes(String table,
String key,
Collection<T> values)
删除多行
|
int |
deletes(String table,
String key,
Object... values) |
boolean |
drop(Column column) |
boolean |
drop(Constraint constraint) |
boolean |
drop(ForeignKey foreign) |
boolean |
drop(Function function) |
boolean |
drop(Index index) |
boolean |
drop(MasterTable table) |
boolean |
drop(PartitionTable table) |
boolean |
drop(PrimaryKey primary) |
boolean |
drop(Procedure procedure) |
boolean |
drop(Table table) |
boolean |
drop(Tag tag) |
boolean |
drop(Trigger trigger) |
boolean |
drop(View view) |
protected boolean |
execute(boolean recover,
Procedure procedure) |
protected int |
execute(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
boolean |
execute(JDBCRuntime runtime,
String title,
List<String> sqls) |
boolean |
execute(JDBCRuntime runtime,
String title,
String sql) |
boolean |
execute(JDBCRuntime runtime,
String random,
String title,
List<String> sqls) |
boolean |
execute(JDBCRuntime runtime,
String random,
String title,
String sql) |
boolean |
execute(Procedure procedure)
执行存储过程
|
int |
execute(RunPrepare prepare,
ConfigStore configs,
String... conditions) |
int |
execute(RunPrepare prepare,
String... conditions) |
protected int |
exeDelete(boolean recover,
JDBCRuntime runtime,
Run run)
执行删除
|
protected boolean |
exists(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
boolean |
exists(RunPrepare prepare,
ConfigStore configs,
String... conditions) |
boolean |
exists(RunPrepare prepare,
String... conditions) |
<T extends ForeignKey> |
foreigns(boolean greedy,
Table table) |
<T extends Function> |
functions(boolean greedy,
String catalog,
String schema,
String name) |
DMListener |
getListener() |
JDBCRuntime |
getRuntime() |
protected int |
getTotal(String sql,
List<Object> values)
总记录数
|
<T extends Index> |
indexs(boolean greedy,
String table) |
<T extends Index> |
indexs(boolean greedy,
String table,
String name) |
<T extends Index> |
indexs(boolean greedy,
String catalog,
String schema,
String table) |
<T extends Index> |
indexs(boolean greedy,
Table table) |
<T extends Index> |
indexs(boolean greedy,
Table table,
String name)
索引
|
<T extends Index> |
indexs(String table) |
<T extends Index> |
indexs(String table,
String name) |
<T extends Index> |
indexs(String catalog,
String schema,
String table) |
<T extends Index> |
indexs(Table table) |
<T extends Index> |
indexs(Table table,
String name) |
protected int |
insert(boolean recover,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
protected int |
insert(boolean recover,
String dest,
Object data,
String... columns) |
int |
insert(Object data,
boolean checkPrimary,
List<String> columns) |
int |
insert(Object data,
boolean checkPrimary,
String... columns) |
int |
insert(Object data,
List<String> columns) |
int |
insert(Object data,
String... columns) |
int |
insert(String dest,
Object data,
boolean checkPrimary,
List<String> columns)
添加
|
int |
insert(String dest,
Object data,
boolean checkPrimary,
String... columns)
添加
|
int |
insert(String dest,
Object data,
List<String> columns) |
int |
insert(String dest,
Object data,
String... columns) |
boolean |
isFix()
是否固定数据源
|
protected List<Map<String,Object>> |
maps(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
protected List<Map<String,Object>> |
maps(JDBCRuntime runtime,
String sql,
List<Object> values)
查询
|
List<Map<String,Object>> |
maps(RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原,maps会自动还原数据源(dao内部执行过程中不要调用除非是一些重载),而protected maps不会 |
List<Map<String,Object>> |
maps(RunPrepare prepare,
String... conditions) |
<T extends MasterTable> |
mtables() |
<T extends MasterTable> |
mtables(boolean greedy) |
<T extends MasterTable> |
mtables(boolean greedy,
String types) |
<T extends MasterTable> |
mtables(boolean greedy,
String name,
String types) |
<T extends MasterTable> |
mtables(boolean greedy,
String schema,
String name,
String types) |
<T extends MasterTable> |
mtables(boolean greedy,
String catalog,
String schema,
String pattern,
String types) |
<T extends MasterTable> |
mtables(String types) |
<T extends MasterTable> |
mtables(String name,
String types) |
<T extends MasterTable> |
mtables(String schema,
String name,
String types) |
<T extends MasterTable> |
mtables(String catalog,
String schema,
String pattern,
String types) |
protected String |
paramLogFormat(List<?> params)
参数日志格式化
|
protected String |
paramLogFormat(List<?> keys,
List<?> values) |
PrimaryKey |
primary(boolean greedy,
String table) |
PrimaryKey |
primary(boolean greedy,
String catalog,
String schema,
String table) |
PrimaryKey |
primary(boolean greedy,
Table table)
索引
|
PrimaryKey |
primary(String table) |
PrimaryKey |
primary(String catalog,
String schema,
String table) |
PrimaryKey |
primary(Table table) |
<T extends Procedure> |
procedures(boolean greedy,
String catalog,
String schema,
String name) |
<T extends PartitionTable> |
ptables(boolean greedy,
MasterTable master) |
<T extends PartitionTable> |
ptables(boolean greedy,
MasterTable master,
Map<String,Object> tags) |
<T extends PartitionTable> |
ptables(boolean greedy,
MasterTable master,
Map<String,Object> tags,
String name) |
<T extends PartitionTable> |
ptables(boolean greedy,
String master) |
<T extends PartitionTable> |
ptables(boolean greedy,
String master,
String name) |
<T extends PartitionTable> |
ptables(boolean greedy,
String schema,
String master,
String name) |
<T extends PartitionTable> |
ptables(boolean greedy,
String catalog,
String schema,
String master,
String name) |
<T extends PartitionTable> |
ptables(MasterTable master) |
<T extends PartitionTable> |
ptables(MasterTable master,
Map<String,Object> tags) |
<T extends PartitionTable> |
ptables(MasterTable master,
Map<String,Object> tags,
String name) |
<T extends PartitionTable> |
ptables(String master) |
<T extends PartitionTable> |
ptables(String master,
String name) |
<T extends PartitionTable> |
ptables(String schema,
String master,
String name) |
<T extends PartitionTable> |
ptables(String catalog,
String schema,
String master,
String name) |
protected <T> EntitySet<T> |
querys(boolean recover,
Class<T> clazz,
ConfigStore configs,
String... conditions) |
protected DataSet |
querys(boolean recover,
Procedure procedure,
PageNavi navi) |
protected <T> EntitySet<T> |
querys(boolean recover,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions) |
protected DataSet |
querys(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
<T> EntitySet<T> |
querys(Class<T> clazz,
ConfigStore configs,
String... conditions) |
DataSet |
querys(Procedure procedure,
PageNavi navi)
根据存储过程查询(MSSQL AS 后必须加 SET NOCOUNT ON)
|
<T> EntitySet<T> |
querys(RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原,querys会自动还原数据源(dao内部执行过程中不要调用除非是一些重载),而select不会 |
DataSet |
querys(RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询
注意:如果设置了自动还原,querys会自动还原数据源(dao内部执行过程中不要调用除非是一些重载),而select不会 |
DataSet |
querys(RunPrepare prepare,
String... conditions) |
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(JDBCRuntime runtime,
MasterTable origin,
String name) |
boolean |
rename(JDBCRuntime runtime,
PartitionTable origin,
String name) |
boolean |
rename(JDBCRuntime runtime,
Table origin,
String name) |
boolean |
rename(JDBCRuntime runtime,
View 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(Table origin,
String name)
重命名
|
boolean |
rename(Tag origin,
String name) |
boolean |
rename(Trigger origin,
String name) |
boolean |
rename(View origin,
String name) |
protected static DataRow |
row(boolean system,
JDBCRuntime runtime,
LinkedHashMap<String,Column> metadatas,
ResultSet rs)
封装查询结果
|
protected JDBCRuntime |
runtime() |
int |
save(Object data,
boolean checkPrimary,
String... columns) |
int |
save(Object data,
String... columns) |
int |
save(String dest,
Object data,
boolean checkPrimary,
String... columns)
保存(insert|upate)
|
int |
save(String dest,
Object data,
String... columns) |
protected int |
saveObject(String dest,
Object data,
boolean checkPrimary,
String... columns) |
protected DataSet |
select(boolean system,
JDBCRuntime runtime,
String table,
String sql,
List<Object> values)
查询
|
protected <T> EntitySet<T> |
select(JDBCRuntime runtime,
Class<T> clazz,
String table,
String sql,
List<Object> values,
int dependency)
查询
|
protected DataSet |
select(JDBCRuntime runtime,
String table,
String sql,
List<Object> values) |
DataSet |
selects(RunPrepare prepare,
ConfigStore configs,
String... conditions)
查询
|
DataSet |
selects(RunPrepare prepare,
String... conditions) |
DataRow |
sequence(boolean next,
String... names) |
void |
setDatasource(String datasource) |
void |
setListener(DMListener listener) |
void |
setRuntime(JDBCRuntime runtime) |
<T extends Table> |
tables() |
<T extends Table> |
tables(boolean greedy) |
<T extends Table> |
tables(boolean greedy,
String types) |
<T extends Table> |
tables(boolean greedy,
String name,
String types) |
<T extends Table> |
tables(boolean greedy,
String schema,
String name,
String types) |
<T extends Table> |
tables(boolean greedy,
String catalog,
String schema,
String pattern,
String types)
tables
|
<T extends Table> |
tables(String types) |
<T extends Table> |
tables(String name,
String types) |
<T extends Table> |
tables(String schema,
String name,
String types) |
<T extends Table> |
tables(String catalog,
String schema,
String pattern,
String types) |
<T extends Tag> |
tags(boolean greedy,
String table) |
<T extends Tag> |
tags(boolean greedy,
String catalog,
String schema,
String table) |
<T extends Tag> |
tags(boolean greedy,
Table table) |
<T extends Tag> |
tags(JDBCRuntime runtime,
boolean greedy,
Table table) |
<T extends Tag> |
tags(String table) |
<T extends Tag> |
tags(String catalog,
String schema,
String table) |
<T extends Tag> |
tags(Table table) |
<T extends Trigger> |
triggers(boolean greedy,
Table table,
List<Trigger.EVENT> events) |
int |
truncate(String table) |
protected int |
update(boolean recover,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
int |
update(Object data,
ConfigStore configs,
List<String> columns) |
int |
update(Object data,
ConfigStore configs,
String... columns) |
int |
update(Object data,
List<String> columns) |
int |
update(Object data,
String... columns) |
int |
update(String dest,
Object data,
ConfigStore configs,
List<String> columns)
更新记录
|
int |
update(String dest,
Object data,
ConfigStore configs,
String... columns) |
int |
update(String dest,
Object data,
List<String> columns) |
int |
update(String dest,
Object data,
String... columns) |
<T extends View> |
views() |
<T extends View> |
views(boolean greedy) |
<T extends View> |
views(boolean greedy,
String types) |
<T extends View> |
views(boolean greedy,
String name,
String types) |
<T extends View> |
views(boolean greedy,
String schema,
String name,
String types) |
<T extends View> |
views(boolean greedy,
String catalog,
String schema,
String pattern,
String types)
views
|
<T extends View> |
views(String types) |
<T extends View> |
views(String name,
String types) |
<T extends View> |
views(String schema,
String name,
String types) |
<T extends View> |
views(String catalog,
String schema,
String pattern,
String types) |
protected static final org.slf4j.Logger log
@Autowired(required=false) protected static DMListener dmListener
@Autowired(required=false) protected static DDListener ddListener
protected static boolean isBatchInsertRun
protected JDBCRuntime runtime
protected JDBCRuntime runtime()
public boolean isFix()
public DMListener getListener()
@Autowired(required=false) public void setListener(DMListener listener)
public JDBCRuntime getRuntime()
public void setRuntime(JDBCRuntime runtime)
setRuntime 在接口中 AnylineDao<E>public void setDatasource(String datasource)
setDatasource 在接口中 AnylineDao<E>public List<Map<String,Object>> maps(RunPrepare prepare, ConfigStore configs, String... conditions)
maps 在接口中 AnylineDao<E>prepare - RunPrepareconfigs - 查询条件conditions - 查询条件protected List<Map<String,Object>> maps(boolean recover, RunPrepare prepare, ConfigStore configs, String... conditions)
public List<Map<String,Object>> maps(RunPrepare prepare, String... conditions)
maps 在接口中 AnylineDao<E>public DataSet querys(RunPrepare prepare, ConfigStore configs, String... conditions)
querys 在接口中 AnylineDao<E>prepare - RunPrepareconfigs - 查询条件conditions - 查询条件protected DataSet querys(boolean recover, RunPrepare prepare, ConfigStore configs, String... conditions)
public <T> EntitySet<T> querys(Class<T> clazz, ConfigStore configs, String... conditions)
querys 在接口中 AnylineDao<E>protected <T> EntitySet<T> querys(boolean recover, Class<T> clazz, ConfigStore configs, String... conditions)
public <T> EntitySet<T> querys(RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions)
querys 在接口中 AnylineDao<E>prepare - RunPrepareconfigs - 查询条件conditions - 查询条件protected <T> EntitySet<T> querys(boolean recover, RunPrepare prepare, Class<T> clazz, ConfigStore configs, String... conditions)
public DataSet querys(RunPrepare prepare, String... conditions)
querys 在接口中 AnylineDao<E>public DataSet selects(RunPrepare prepare, ConfigStore configs, String... conditions)
selects 在接口中 AnylineDao<E>public DataSet selects(RunPrepare prepare, String... conditions)
selects 在接口中 AnylineDao<E>public DataRow sequence(boolean next, String... names)
sequence 在接口中 AnylineDao<E>public int count(RunPrepare prepare, ConfigStore configs, String... conditions)
count 在接口中 AnylineDao<E>protected int count(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
public int count(RunPrepare prepare, String... conditions)
count 在接口中 AnylineDao<E>public boolean exists(RunPrepare prepare, ConfigStore configs, String... conditions)
exists 在接口中 AnylineDao<E>protected boolean exists(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
public boolean exists(RunPrepare prepare, String... conditions)
exists 在接口中 AnylineDao<E>protected int getTotal(String sql, List<Object> values)
sql - sqlvalues - valuespublic int update(String dest, Object data, ConfigStore configs, List<String> columns)
update 在接口中 AnylineDao<E>data - 需要更新的数据dest - 需要更新的表,如果没有提供则根据data解析columns - 需要更新的列 如果没有提供则解析data解析configs - 更新条件 如果没提供则根据data主键protected int update(boolean recover,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
public int update(Object data, ConfigStore configs, String... columns)
update 在接口中 AnylineDao<E>public int update(String dest, Object data, ConfigStore configs, String... columns)
update 在接口中 AnylineDao<E>public int update(Object data, ConfigStore configs, List<String> columns)
update 在接口中 AnylineDao<E>public int update(String dest, Object data, String... columns)
update 在接口中 AnylineDao<E>public int update(Object data, String... columns)
update 在接口中 AnylineDao<E>public int update(String dest, Object data, List<String> columns)
update 在接口中 AnylineDao<E>public int save(String dest, Object data, boolean checkPrimary, String... columns)
save 在接口中 AnylineDao<E>dest - 表data - datacheckPrimary - 是否需要检查重复主键,默认不检查columns - columnspublic int save(Object data, boolean checkPrimary, String... columns)
save 在接口中 AnylineDao<E>public int save(Object data, String... columns)
save 在接口中 AnylineDao<E>protected int saveObject(String dest, Object data, boolean checkPrimary, String... columns)
protected boolean checkIsNew(Object obj)
public int insert(String dest, Object data, boolean checkPrimary, List<String> columns)
insert 在接口中 AnylineDao<E>checkPrimary - 是否需要检查重复主键,默认不检查columns - 需要插入的列dest - 表data - dataprotected int insert(boolean recover,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
public int insert(Object data, boolean checkPrimary, List<String> columns)
insert 在接口中 AnylineDao<E>public int insert(String dest, Object data, List<String> columns)
insert 在接口中 AnylineDao<E>public int insert(String dest, Object data, boolean checkPrimary, String... columns)
AnylineDaoinsert 在接口中 AnylineDao<E>dest - 表data - 需要插入的数据checkPrimary - 是否需要检查重复主键,默认不检查columns - 需要插入的列public int insert(Object data, boolean checkPrimary, String... columns)
insert 在接口中 AnylineDao<E>public int insert(String dest, Object data, String... columns)
insert 在接口中 AnylineDao<E>public int insert(Object data, String... columns)
insert 在接口中 AnylineDao<E>protected List<Map<String,Object>> maps(JDBCRuntime runtime, String sql, List<Object> values)
sql - sqlvalues - valuesprotected static DataRow row(boolean system, JDBCRuntime runtime, LinkedHashMap<String,Column> metadatas, ResultSet rs)
system - 系统表不检测列属性runtime - runtimemetadatas - metadatasrs - jdbc返回结果protected DataSet select(boolean system, JDBCRuntime runtime, String table, String sql, List<Object> values)
system - 系统表不查询表结构runtime - runtimetable - 查询表结构时使用sql - sqlvalues - 参数protected <T> EntitySet<T> select(JDBCRuntime runtime, Class<T> clazz, String table, String sql, List<Object> values, int dependency)
T - entity.classruntime - runtimeclazz - entity classtable - tablesql - sqlvalues - valuedependency - 是否加载依赖 >0时加载protected <T> void checkMany2ManyDependencyQuery(JDBCRuntime runtime, EntitySet<T> set, int dependency)
protected <T> void checkOne2ManyDependencyQuery(JDBCRuntime runtime, EntitySet<T> set, int dependency)
public int execute(RunPrepare prepare, ConfigStore configs, String... conditions)
execute 在接口中 AnylineDao<E>protected int execute(boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
public int execute(RunPrepare prepare, String... conditions)
execute 在接口中 AnylineDao<E>public boolean execute(Procedure procedure)
AnylineDaoexecute 在接口中 AnylineDao<E>procedure - procedureprotected boolean execute(boolean recover,
Procedure procedure)
public DataSet querys(Procedure procedure, PageNavi navi)
querys 在接口中 AnylineDao<E>procedure - procedurenavi - navipublic <T> int deletes(String table, String key, Collection<T> values)
AnylineDaodeletes 在接口中 AnylineDao<E>table - 表key - 列values - 值集合public int deletes(String table, String key, Object... values)
deletes 在接口中 AnylineDao<E>public int delete(String table, ConfigStore configs, String... conditions)
delete 在接口中 AnylineDao<E>protected int exeDelete(boolean recover,
JDBCRuntime runtime,
Run run)
recover - 执行完成后是否根据设置自动还原数据源runtime - JDBCRuntimerun - Runpublic int truncate(String table)
truncate 在接口中 AnylineDao<E>public LinkedHashMap<String,Database> databases()
databases 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(boolean greedy, String catalog, String schema, String pattern, String types)
tables 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL,则对应相应的数据库,对于Oracle来说,则是对应相应的数据库实例,可以不填,也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名,而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意,其登陆名必须是大写,不然的话是无法获取到相应的数据,而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话,可以直接设置为null,如果设置为特定的表名称,则返回该表的具体信息。types - 以逗号分隔 "TABLE"、"VIEW"、"SYSTEM TABLE"、"GLOBAL TEMPORARY"、"LOCAL TEMPORARY"、"ALIAS" 和 "SYNONYM"public <T extends Table> LinkedHashMap<String,T> tables(boolean greedy, String schema, String name, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(boolean greedy, String name, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(boolean greedy, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(boolean greedy)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(String catalog, String schema, String pattern, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(String schema, String name, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(String name, String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables(String types)
tables 在接口中 AnylineDao<E>public <T extends Table> LinkedHashMap<String,T> tables()
tables 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(boolean greedy, String catalog, String schema, String pattern, String types)
views 在接口中 AnylineDao<E>greedy - 贪婪模式 true:如果不填写catalog或schema则查询全部 false:只在当前catalog和schema中查询catalog - 对于MySQL,则对应相应的数据库,对于Oracle来说,则是对应相应的数据库实例,可以不填,也可以直接使用Connection的实例对象中的getCatalog()方法返回的值填充;schema - 可以理解为数据库的登录名,而对于Oracle也可以理解成对该数据库操作的所有者的登录名。对于Oracle要特别注意,其登陆名必须是大写,不然的话是无法获取到相应的数据,而MySQL则不做强制要求。pattern - 一般情况下如果要获取所有的表的话,可以直接设置为null,如果设置为特定的表名称,则返回该表的具体信息。types - 以逗号分隔 "TABLE"、"VIEW"、"SYSTEM TABLE"、"GLOBAL TEMPORARY"、"LOCAL TEMPORARY"、"ALIAS" 和 "SYNONYM"public <T extends View> LinkedHashMap<String,T> views(boolean greedy, String schema, String name, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(boolean greedy, String name, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(boolean greedy, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(boolean greedy)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(String catalog, String schema, String pattern, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(String schema, String name, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(String name, String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views(String types)
views 在接口中 AnylineDao<E>public <T extends View> LinkedHashMap<String,T> views()
views 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(boolean greedy, String catalog, String schema, String pattern, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(boolean greedy, String schema, String name, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(boolean greedy, String name, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(boolean greedy, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(boolean greedy)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(String catalog, String schema, String pattern, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(String schema, String name, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(String name, String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables(String types)
mtables 在接口中 AnylineDao<E>public <T extends MasterTable> LinkedHashMap<String,T> mtables()
mtables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, String catalog, String schema, String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, String schema, String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, String master)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, MasterTable master)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, MasterTable master, Map<String,Object> tags)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(boolean greedy, MasterTable master, Map<String,Object> tags, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(String catalog, String schema, String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(String schema, String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(String master, String name)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(String master)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(MasterTable master)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(MasterTable master, Map<String,Object> tags)
ptables 在接口中 AnylineDao<E>public <T extends PartitionTable> LinkedHashMap<String,T> ptables(MasterTable master, Map<String,Object> tags, String name)
ptables 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(boolean greedy, Table table)
columns 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(JDBCRuntime runtime, boolean greedy, Table table)
public <T extends Column> LinkedHashMap<String,T> columns(boolean greedy, String table)
columns 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(boolean greedy, String catalog, String schema, String table)
columns 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(Table table)
columns 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(String table)
columns 在接口中 AnylineDao<E>public <T extends Column> LinkedHashMap<String,T> columns(String catalog, String schema, String table)
columns 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(boolean greedy, Table table)
tags 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(JDBCRuntime runtime, boolean greedy, Table table)
public <T extends Tag> LinkedHashMap<String,T> tags(boolean greedy, String table)
tags 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(boolean greedy, String catalog, String schema, String table)
tags 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(Table table)
tags 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(String table)
tags 在接口中 AnylineDao<E>public <T extends Tag> LinkedHashMap<String,T> tags(String catalog, String schema, String table)
tags 在接口中 AnylineDao<E>public PrimaryKey primary(boolean greedy, Table table)
primary 在接口中 AnylineDao<E>table - 表public PrimaryKey primary(boolean greedy, String table)
primary 在接口中 AnylineDao<E>public PrimaryKey primary(boolean greedy, String catalog, String schema, String table)
primary 在接口中 AnylineDao<E>public PrimaryKey primary(Table table)
primary 在接口中 AnylineDao<E>public PrimaryKey primary(String table)
primary 在接口中 AnylineDao<E>public PrimaryKey primary(String catalog, String schema, String table)
primary 在接口中 AnylineDao<E>public <T extends ForeignKey> LinkedHashMap<String,T> foreigns(boolean greedy, Table table)
foreigns 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(boolean greedy, Table table, String name)
indexs 在接口中 AnylineDao<E>table - 表name - namepublic <T extends Index> LinkedHashMap<String,T> indexs(boolean greedy, Table table)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(boolean greedy, String table, String name)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(boolean greedy, String table)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(boolean greedy, String catalog, String schema, String table)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(Table table, String name)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(Table table)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(String table, String name)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(String table)
indexs 在接口中 AnylineDao<E>public <T extends Index> LinkedHashMap<String,T> indexs(String catalog, String schema, String table)
indexs 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(boolean greedy, Table table, String name)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(boolean greedy, Table table)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(boolean greedy, String table)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(boolean greedy, String table, String name)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(boolean greedy, String catalog, String schema, String table)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(Table table, String name)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(Table table)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(String table)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(String table, String name)
constraints 在接口中 AnylineDao<E>public <T extends Constraint> LinkedHashMap<String,T> constraints(String catalog, String schema, String table)
constraints 在接口中 AnylineDao<E>public <T extends Trigger> LinkedHashMap<String,T> triggers(boolean greedy, Table table, List<Trigger.EVENT> events)
triggers 在接口中 AnylineDao<E>public <T extends Procedure> LinkedHashMap<String,T> procedures(boolean greedy, String catalog, String schema, String name)
procedures 在接口中 AnylineDao<E>public <T extends Function> LinkedHashMap<String,T> functions(boolean greedy, String catalog, String schema, String name)
functions 在接口中 AnylineDao<E>public boolean create(Table table) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Table origin, String name) throws Exception
rename 在接口中 AnylineDao<E>origin - 原表name - 新名称Exception - DDL异常public boolean rename(JDBCRuntime runtime, Table origin, String name) throws Exception
Exceptionpublic boolean create(View view) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean rename(View origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean rename(JDBCRuntime runtime, View origin, String name) throws Exception
Exceptionpublic boolean create(MasterTable table) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean alter(MasterTable table) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(MasterTable table) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(MasterTable origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean rename(JDBCRuntime runtime, MasterTable origin, String name) throws Exception
Exceptionpublic boolean create(PartitionTable table) throws Exception
create 在接口中 AnylineDao<E>Exceptionpublic boolean alter(PartitionTable table) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(PartitionTable table) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(PartitionTable origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean rename(JDBCRuntime runtime, PartitionTable origin, String name) throws Exception
Exceptionpublic boolean alter(Table table, Column column) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Column column) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Column origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Tag tag) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Tag origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(PrimaryKey primary) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(PrimaryKey primary) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, PrimaryKey primary) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(PrimaryKey primary) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(PrimaryKey origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(ForeignKey foreign) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(ForeignKey foreign) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, ForeignKey foreign) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(ForeignKey foreign) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(ForeignKey origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Index index) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Index index) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Index origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean add(Constraint constraint) throws Exception
add 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Constraint constraint) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean alter(Table table, Constraint constraint) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Constraint constraint) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Constraint origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Trigger trigger) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>trigger - 触发器Exception - 异常 Exceptionpublic boolean alter(Trigger trigger) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Trigger trigger) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Trigger origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Procedure procedure) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>procedure - 存储过程Exception - 异常 Exceptionpublic boolean alter(Procedure procedure) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Procedure procedure) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Procedure origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean create(Function function) throws Exception
AnylineDaocreate 在接口中 AnylineDao<E>function - 函数Exception - 异常 Exceptionpublic boolean alter(Function function) throws Exception
alter 在接口中 AnylineDao<E>Exceptionpublic boolean drop(Function function) throws Exception
drop 在接口中 AnylineDao<E>Exceptionpublic boolean rename(Function origin, String name) throws Exception
rename 在接口中 AnylineDao<E>Exceptionpublic boolean execute(JDBCRuntime runtime, String title, String sql)
public boolean execute(JDBCRuntime runtime, String random, String title, String sql)
public boolean execute(JDBCRuntime runtime, String random, String title, List<String> sqls)
public boolean execute(JDBCRuntime runtime, String title, List<String> sqls)
public void checkSchema(JDBCRuntime runtime, Table table)
public void checkSchema(JDBCRuntime runtime, Column column)
public void checkSchema(JDBCRuntime runtime, Index index)
public void checkSchema(JDBCRuntime runtime, Constraint constraint)
public void checkSchema(JDBCRuntime runtime, Trigger trigger)
public void checkSchema(JDBCRuntime runtime, Procedure procedure)
public void checkSchema(JDBCRuntime runtime, Function function)
protected String paramLogFormat(List<?> params)
params - paramsCopyright © 2023. All rights reserved.