Class OutputLogInterceptor
- All Implemented Interfaces:
LogInterceptor
- Version:
- $Revision: 7089 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Assaf Arkin
-
Constructor Summary
ConstructorsConstructorDescriptionOutputLogInterceptor(OutputStream output) OutputLogInterceptor(PrintWriter writer) OutputLogInterceptor(Writer writer) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled to indicate that an object of the given type and identity is about to be created in persistent storage.voidReports an exception of some sort that is not delivered to the application.Returns the PrintWriter for this LogInterceptor.voidCalled to indicate that an object of the given type and identity is about to be loaded into memory.voidReports a message of some sort that is not delivered to the application.voidqueryStatement(String statement) Reports a statement that will be used with the persistent engine to conduct a query.voidCalled to indicate that an object of the given type and identity is about to be deleted from persistent storage.voidstoreStatement(String statement) Reports a statement that will be used with the persistent engine.voidCalled to indicate that an object of the given type and identity is about to be stored in persistent storage.
-
Constructor Details
-
OutputLogInterceptor
-
OutputLogInterceptor
-
OutputLogInterceptor
-
-
Method Details
-
loading
Description copied from interface:LogInterceptorCalled to indicate that an object of the given type and identity is about to be loaded into memory.This method is called when the cache engine decides to explicitly load the specified object from persistent storage and not use a cached copy. It is called prior to the retrieval.
- Specified by:
loadingin interfaceLogInterceptor- Parameters:
objClass- The type of the objectidentity- The object identity
-
creating
Description copied from interface:LogInterceptorCalled to indicate that an object of the given type and identity is about to be created in persistent storage.This method is called when the cache engine decides to explicitly create the specified object in persistent storage, either in response to a create method or upon transaction commit. It is called prior to the creation.
- Specified by:
creatingin interfaceLogInterceptor- Parameters:
objClass- The type of the objectidentity- The object identity
-
removing
Description copied from interface:LogInterceptorCalled to indicate that an object of the given type and identity is about to be deleted from persistent storage.This method is called when the cache engine decides to explicitly delete the specified object from persistent storage, either in response to a delete method or upon transaction commit. It is called prior to the deletion.
- Specified by:
removingin interfaceLogInterceptor- Parameters:
objClass- The type of the objectidentity- The object identity
-
storing
Description copied from interface:LogInterceptorCalled to indicate that an object of the given type and identity is about to be stored in persistent storage.This method is called when the cache engine decides to explicitly store the specified object in persistent storage, after detecting a modification in this object. It is called prior to storage.
- Specified by:
storingin interfaceLogInterceptor- Parameters:
objClass- The type of the objectidentity- The object identity
-
storeStatement
Description copied from interface:LogInterceptorReports a statement that will be used with the persistent engine.The SQL engine uses this method to report all the select, update, insert statements it creates upon initialization.
- Specified by:
storeStatementin interfaceLogInterceptor- Parameters:
statement- The storage statement
-
queryStatement
Description copied from interface:LogInterceptorReports a statement that will be used with the persistent engine to conduct a query.The SQL engine uses this method to report select statements when running new queries.
- Specified by:
queryStatementin interfaceLogInterceptor- Parameters:
statement- The query statement
-
message
Description copied from interface:LogInterceptorReports a message of some sort that is not delivered to the application. Only the interceptor will be notified of this message.- Specified by:
messagein interfaceLogInterceptor- Parameters:
message- The reported message
-
exception
Description copied from interface:LogInterceptorReports an exception of some sort that is not delivered to the application. Only the interceptor will be notified of this exception.- Specified by:
exceptionin interfaceLogInterceptor- Parameters:
except- The exception
-
getPrintWriter
Description copied from interface:LogInterceptorReturns the PrintWriter for this LogInterceptor.- Specified by:
getPrintWriterin interfaceLogInterceptor
-