public class ViewSqlProcessorImpl extends Object implements ViewSqlProcessor
Constructor and Description |
---|
ViewSqlProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkViewExists(View view,
Connection conn)
判断视图是否存在
|
String |
getCreateSql(View view)
获取构建视图的完整sql语句
|
protected String |
getDatabaseType() |
String |
getDropSql(View view)
获取删除视图的语句
|
String |
getUpdateSql(View view)
默认获取全量
|
protected String getDatabaseType()
public String getCreateSql(View view)
ViewSqlProcessor
getCreateSql
in interface ViewSqlProcessor
view
- 视图配置信息元数据public String getDropSql(View view)
ViewSqlProcessor
getDropSql
in interface ViewSqlProcessor
view
- 视图配置信息元数据public boolean checkViewExists(View view, Connection conn) throws SQLException
ViewSqlProcessor
checkViewExists
in interface ViewSqlProcessor
view
- 视图元数据conn
- 当前执行创建view的连接信息SQLException
public String getUpdateSql(View view)
getUpdateSql
in interface ViewSqlProcessor
view
- Copyright © 2006–2018 TinyGroup. All rights reserved.