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 TypeMethodDescriptionvoid
Called to indicate that an object of the given type and identity is about to be created in persistent storage.void
Reports an exception of some sort that is not delivered to the application.Returns the PrintWriter for this LogInterceptor.void
Called to indicate that an object of the given type and identity is about to be loaded into memory.void
Reports a message of some sort that is not delivered to the application.void
queryStatement
(String statement) Reports a statement that will be used with the persistent engine to conduct a query.void
Called to indicate that an object of the given type and identity is about to be deleted from persistent storage.void
storeStatement
(String statement) Reports a statement that will be used with the persistent engine.void
Called 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:LogInterceptor
Called 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:
loading
in interfaceLogInterceptor
- Parameters:
objClass
- The type of the objectidentity
- The object identity
-
creating
Description copied from interface:LogInterceptor
Called 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:
creating
in interfaceLogInterceptor
- Parameters:
objClass
- The type of the objectidentity
- The object identity
-
removing
Description copied from interface:LogInterceptor
Called 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:
removing
in interfaceLogInterceptor
- Parameters:
objClass
- The type of the objectidentity
- The object identity
-
storing
Description copied from interface:LogInterceptor
Called 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:
storing
in interfaceLogInterceptor
- Parameters:
objClass
- The type of the objectidentity
- The object identity
-
storeStatement
Description copied from interface:LogInterceptor
Reports 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:
storeStatement
in interfaceLogInterceptor
- Parameters:
statement
- The storage statement
-
queryStatement
Description copied from interface:LogInterceptor
Reports 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:
queryStatement
in interfaceLogInterceptor
- Parameters:
statement
- The query statement
-
message
Description copied from interface:LogInterceptor
Reports a message of some sort that is not delivered to the application. Only the interceptor will be notified of this message.- Specified by:
message
in interfaceLogInterceptor
- Parameters:
message
- The reported message
-
exception
Description copied from interface:LogInterceptor
Reports an exception of some sort that is not delivered to the application. Only the interceptor will be notified of this exception.- Specified by:
exception
in interfaceLogInterceptor
- Parameters:
except
- The exception
-
getPrintWriter
Description copied from interface:LogInterceptor
Returns the PrintWriter for this LogInterceptor.- Specified by:
getPrintWriter
in interfaceLogInterceptor
-