LogInterceptor
public class OutputLogInterceptor extends java.lang.Object implements LogInterceptor
Constructor | Description |
---|---|
OutputLogInterceptor(java.io.OutputStream output) |
|
OutputLogInterceptor(java.io.PrintWriter writer) |
|
OutputLogInterceptor(java.io.Writer writer) |
Modifier and Type | Method | Description |
---|---|---|
void |
creating(java.lang.Object objClass,
java.lang.Object identity) |
Called to indicate that an object of the given type and identity
is about to be created in persistent storage.
|
void |
exception(java.lang.Exception except) |
Reports an exception of some sort that is not delivered to the
application.
|
java.io.PrintWriter |
getPrintWriter() |
Returns the PrintWriter for this LogInterceptor.
|
void |
loading(java.lang.Object objClass,
java.lang.Object identity) |
Called to indicate that an object of the given type and identity
is about to be loaded into memory.
|
void |
message(java.lang.String message) |
Reports a message of some sort that is not delivered to the
application.
|
void |
queryStatement(java.lang.String statement) |
Reports a statement that will be used with the persistent
engine to conduct a query.
|
void |
removing(java.lang.Object objClass,
java.lang.Object identity) |
Called to indicate that an object of the given type and identity
is about to be deleted from persistent storage.
|
void |
storeStatement(java.lang.String statement) |
Reports a statement that will be used with the persistent
engine.
|
void |
storing(java.lang.Object objClass,
java.lang.Object identity) |
Called to indicate that an object of the given type and identity
is about to be stored in persistent storage.
|
public OutputLogInterceptor(java.io.PrintWriter writer)
public OutputLogInterceptor(java.io.OutputStream output)
public OutputLogInterceptor(java.io.Writer writer)
public void loading(java.lang.Object objClass, java.lang.Object identity)
LogInterceptor
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.
loading
in interface LogInterceptor
objClass
- The type of the objectidentity
- The object identitypublic void creating(java.lang.Object objClass, java.lang.Object identity)
LogInterceptor
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.
creating
in interface LogInterceptor
objClass
- The type of the objectidentity
- The object identitypublic void removing(java.lang.Object objClass, java.lang.Object identity)
LogInterceptor
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.
removing
in interface LogInterceptor
objClass
- The type of the objectidentity
- The object identitypublic void storing(java.lang.Object objClass, java.lang.Object identity)
LogInterceptor
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.
storing
in interface LogInterceptor
objClass
- The type of the objectidentity
- The object identitypublic void storeStatement(java.lang.String statement)
LogInterceptor
The SQL engine uses this method to report all the select, update, insert statements it creates upon initialization.
storeStatement
in interface LogInterceptor
statement
- The storage statementpublic void queryStatement(java.lang.String statement)
LogInterceptor
The SQL engine uses this method to report select statements when running new queries.
queryStatement
in interface LogInterceptor
statement
- The query statementpublic void message(java.lang.String message)
LogInterceptor
message
in interface LogInterceptor
message
- The reported messagepublic void exception(java.lang.Exception except)
LogInterceptor
exception
in interface LogInterceptor
except
- The exceptionpublic java.io.PrintWriter getPrintWriter()
LogInterceptor
getPrintWriter
in interface LogInterceptor
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com