Interface SchemaChangeListener
-
- All Known Implementing Classes:
AbstractSchemaChangeListener
public interface SchemaChangeListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonColumnsAdded(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<QueryField> cols)Callback on columns added.voidonColumnsDropped(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<String> cols)Callback on columns dropped.voidonFunctionCreated(String schemaName, String name, boolean deterministic, Method method)Callback on function creation.voidonIndexCreated(String schemaName, String tblName, String idxName, IndexDescriptor idxDesc)Callback on index creation.voidonIndexDropped(String schemaName, String tblName, String idxName)Callback on index drop.voidonIndexRebuildFinished(String schemaName, String tblName)Callback on index rebuild finished for all indexes in the table.voidonIndexRebuildStarted(String schemaName, String tblName)Callback on index rebuild started for all indexes in the table.voidonSchemaCreated(String schemaName)Callback method.voidonSchemaDropped(String schemaName)Callback method.voidonSqlTypeCreated(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo)Callback method.voidonSqlTypeDropped(String schemaName, GridQueryTypeDescriptor typeDesc, boolean destroy)Callback method.voidonSystemViewCreated(String schemaName, SystemView<?> sysView)Callback on system view creation.voidonViewCreated(String schemaName, String viewName, String viewSql)Callback on user defined view creation.voidonViewDropped(String schemaName, String viewName)Callback on user defined view dropped.
-
-
-
Method Detail
-
onSchemaCreated
void onSchemaCreated(String schemaName)
Callback method.- Parameters:
schemaName- Schema name.
-
onSchemaDropped
void onSchemaDropped(String schemaName)
Callback method.- Parameters:
schemaName- Schema name.
-
onSqlTypeCreated
void onSqlTypeCreated(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo)
Callback method.- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.
-
onColumnsAdded
void onColumnsAdded(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<QueryField> cols)
Callback on columns added.- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.cols- Added columns' names.
-
onColumnsDropped
void onColumnsDropped(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<String> cols)
Callback on columns dropped.- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.cols- Dropped columns' names.
-
onSqlTypeDropped
void onSqlTypeDropped(String schemaName, GridQueryTypeDescriptor typeDesc, boolean destroy)
Callback method.- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.destroy- Cache destroy flag.
-
onIndexCreated
void onIndexCreated(String schemaName, String tblName, String idxName, IndexDescriptor idxDesc)
Callback on index creation.- Parameters:
schemaName- Schema name.tblName- Table name.idxName- Index name.idxDesc- Index descriptor.
-
onIndexDropped
void onIndexDropped(String schemaName, String tblName, String idxName)
Callback on index drop.- Parameters:
schemaName- Schema name.tblName- Table name.idxName- Index name.
-
onIndexRebuildStarted
void onIndexRebuildStarted(String schemaName, String tblName)
Callback on index rebuild started for all indexes in the table.- Parameters:
schemaName- Schema name.tblName- Table name.
-
onIndexRebuildFinished
void onIndexRebuildFinished(String schemaName, String tblName)
Callback on index rebuild finished for all indexes in the table.- Parameters:
schemaName- Schema name.tblName- Table name.
-
onFunctionCreated
void onFunctionCreated(String schemaName, String name, boolean deterministic, Method method)
Callback on function creation.- Parameters:
schemaName- Schema name.name- Function name.deterministic- Specifies if the function is deterministic (result depends only on input parameters)method- Public static method, implementing this function.
-
onSystemViewCreated
void onSystemViewCreated(String schemaName, SystemView<?> sysView)
Callback on system view creation.- Parameters:
schemaName- Schema name.sysView- System view.
-
onViewCreated
void onViewCreated(String schemaName, String viewName, String viewSql)
Callback on user defined view creation.- Parameters:
schemaName- Schema name.viewName- View name.viewSql- View SQL.
-
-