public class ViewProcessorImpl extends Object implements ViewProcessor
Constructor and Description |
---|
ViewProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addViews(Views views) |
boolean |
checkViewExists(View view,
Connection conn,
String language)
判断视图是否存在,根据不同的数据库类型调用对应的实现方法
|
void |
dependencyInit()
视图依赖初始化
|
List<String> |
getCreateSql(String language) |
String |
getCreateSql(String name,
String language) |
String |
getCreateSql(View view,
String language) |
List<String> |
getDropSql(String language) |
String |
getDropSql(String name,
String language) |
String |
getDropSql(View view,
String language) |
long |
getLastModifiedTime(String viewId) |
ProcessorManager |
getProcessorManager() |
String |
getUpdateSql(List<String> createViewSqls,
View view,
Connection connection,
String language) |
View |
getView(String name) |
View |
getViewById(String id) |
static ViewProcessor |
getViewProcessor() |
List<View> |
getViews() |
void |
registerModifiedTime(Views views,
long lastModify) |
void |
removeViews(Views views) |
void |
setProcessorManager(ProcessorManager processorManager) |
public static ViewProcessor getViewProcessor()
public ProcessorManager getProcessorManager()
getProcessorManager
in interface ViewProcessor
public void setProcessorManager(ProcessorManager processorManager)
setProcessorManager
in interface ViewProcessor
public void registerModifiedTime(Views views, long lastModify)
registerModifiedTime
in interface ViewProcessor
public long getLastModifiedTime(String viewId)
getLastModifiedTime
in interface ViewProcessor
public void addViews(Views views)
addViews
in interface ViewProcessor
public void removeViews(Views views)
removeViews
in interface ViewProcessor
public View getView(String name)
getView
in interface ViewProcessor
public String getCreateSql(String name, String language)
getCreateSql
in interface ViewProcessor
public String getCreateSql(View view, String language)
getCreateSql
in interface ViewProcessor
public String getUpdateSql(List<String> createViewSqls, View view, Connection connection, String language) throws SQLException
getUpdateSql
in interface ViewProcessor
SQLException
public List<String> getCreateSql(String language)
getCreateSql
in interface ViewProcessor
public String getDropSql(String name, String language)
getDropSql
in interface ViewProcessor
public String getDropSql(View view, String language)
getDropSql
in interface ViewProcessor
public List<String> getDropSql(String language)
getDropSql
in interface ViewProcessor
public List<View> getViews()
getViews
in interface ViewProcessor
public View getViewById(String id)
getViewById
in interface ViewProcessor
public void dependencyInit()
ViewProcessor
dependencyInit
in interface ViewProcessor
public boolean checkViewExists(View view, Connection conn, String language) throws SQLException
ViewProcessor
checkViewExists
in interface ViewProcessor
view
- 视图元数据conn
- 当前执行创建view的连接信息language
- 当前数据类型SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.