LogInterceptorpublic 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)
LogInterceptorThis 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 LogInterceptorobjClass - The type of the objectidentity - The object identitypublic void creating(java.lang.Object objClass,
java.lang.Object identity)
LogInterceptorThis 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 LogInterceptorobjClass - The type of the objectidentity - The object identitypublic void removing(java.lang.Object objClass,
java.lang.Object identity)
LogInterceptorThis 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 LogInterceptorobjClass - The type of the objectidentity - The object identitypublic void storing(java.lang.Object objClass,
java.lang.Object identity)
LogInterceptorThis 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 LogInterceptorobjClass - The type of the objectidentity - The object identitypublic void storeStatement(java.lang.String statement)
LogInterceptorThe SQL engine uses this method to report all the select, update, insert statements it creates upon initialization.
storeStatement in interface LogInterceptorstatement - The storage statementpublic void queryStatement(java.lang.String statement)
LogInterceptorThe SQL engine uses this method to report select statements when running new queries.
queryStatement in interface LogInterceptorstatement - The query statementpublic void message(java.lang.String message)
LogInterceptormessage in interface LogInterceptormessage - The reported messagepublic void exception(java.lang.Exception except)
LogInterceptorexception in interface LogInterceptorexcept - The exceptionpublic java.io.PrintWriter getPrintWriter()
LogInterceptorgetPrintWriter in interface LogInterceptorIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com