JET_CBTYP
Applies to: Windows | Windows Server
JET_CBTYP
The JET_CBTYP group of constants describes all possible points in an operation that the database engine will notify an application by calling the JET_CALLBACK callback function. The database engine passes one of these constants in the cbtyp parameter of the callback function. The meaning of the other parameters passed by the database engine in this call depend on the specific JET_CBTYP passed.
Windows XP: The JET_CBTYP group of constants are introduced in Windows XP.
Constant/value |
Description |
---|---|
JET_cbtypNull |
This callback is reserved and always considered invalid. |
JET_cbtypFinalize |
This callback is reserved for future use. |
JET_cbtypBeforeInsert |
This callback will occur just before a new record is inserted into a table by a call to JetUpdate. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
|
JET_cbtypAfterInsert |
This callback will occur just after a new record has been inserted into a table by a call to JetUpdate but before JetUpdate returns to its caller. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
|
JET_cbtypBeforeReplace |
This callback will occur just prior to an existing record in a table being changed by a call to JetUpdate. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
|
JET_cbtypAfterReplace |
This callback will occur just after an existing record in a table has been changed by a call to JetUpdate but prior to JetUpdate returning to its caller. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
|
JET_cbtypBeforeDelete |
This callback will occur just before an existing record in a table is deleted by a call to JetDelete. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
|
JET_cbtypAfterDelete |
This callback will occur just after an existing record in a table has been deleted by a call to JetDelete but before JetDelete returns to its caller. The function pointer for this callback reason is either passed to JetCreateTableColumnIndex by means of JET_TABLECREATE or is configured at runtime by means of JetRegisterCallback. For more information, see JET_TABLECREATE or JetRegisterCallback. The callback parameters will have the following values:
If an error is returned by the callback, it will be ignored. |
JET_cbtypUserDefinedDefaultValue |
This callback will occur when the engine needs to retrieve the user defined default value of a column from the application. This callback is essentially a limited implementation of JetRetrieveColumn that is evaluated by the application. A maximum of one column value can be returned for a user defined default value. The function pointer for this callback reason is either passed to JetAddColumn by means of a JET_USERDEFINEDDEFAULT structure or passed to JetCreateTableColumnIndex by means of a JET_USERDEFINEDDEFAULT structure in a JET_COLUMNCREATE structure in a JET_TABLECREATE structure. The callback parameters will have the following values:
If an error is returned by the callback then the operation originating the callback will fail with that error. If JET_wrnBufferTruncated is returned by the callback, the operation will continue, but the entire value is not retrieved during the callback. If JET_wrnColumnNull is returned by the callback, the operation will continue, but the user defined default value for the column is NULL. |
JET_cbtypOnlineDefragCompleted |
This callback will occur when the online defragmentation of a database as initiated by JetDefragment has stopped due to either the process being completed or the time limit being reached. The function pointer for this callback reason is passed to JetDefragment. For more information, see JetDefragment. The callback parameters will have the following values:
If an error is returned by the callback, it will be ignored. |
JET_cbtypFreeCursorLS |
This callback will occur when the application needs to clean up the context handle for the Local Storage associated with a cursor that is being released by the database engine. For more information, see JetSetLS. The function pointer for this callback reason is configured by means of JetSetSystemParameter with JET_paramRuntimeCallback. The callback parameters will have the following values:
If an error is returned by the callback, it will be ignored. |
JET_cbtypFreeTableLS |
This callback will occur as the result of the need for the application to cleanup the context handle for the Local Storage associated with a table that is being released by the database engine. For more information, see JetSetLS. The function pointer for this callback reason is configured by means of JetSetSystemParameter with JET_paramRuntimeCallback. The callback parameters will have the following values:
If an error is returned by the callback, it will be ignored. |
Requirements
Requirement | Value |
---|---|
Client |
Requires Windows Vista or Windows XP. |
Server |
Requires Windows Server 2008 or Windows Server 2003. |
Header |
Declared in Esent.h. |