|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogInterceptor
A log interceptor recieves notifications on various events that occur in the persistence layer is responsible for reporting them. The interceptor cannot affect the outcome of any operation.
The log interceptor is used for tracing persistence activity for performance tuning, viewing the generated SQL statements, and tracing messages that are not bubbled up to the application layer.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void loading(java.lang.Object objClass, java.lang.Object identity)
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.
objClass
- The type of the objectidentity
- The object identityvoid creating(java.lang.Object objClass, java.lang.Object identity)
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.
objClass
- The type of the objectidentity
- The object identityvoid removing(java.lang.Object objClass, java.lang.Object identity)
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.
objClass
- The type of the objectidentity
- The object identityvoid storing(java.lang.Object objClass, java.lang.Object identity)
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.
objClass
- The type of the objectidentity
- The object identityvoid storeStatement(java.lang.String statement)
The SQL engine uses this method to report all the select, update, insert statements it creates upon initialization.
statement
- The storage statementvoid queryStatement(java.lang.String statement)
The SQL engine uses this method to report select statements when running new queries.
statement
- The query statementvoid message(java.lang.String message)
message
- The reported messagevoid exception(java.lang.Exception except)
except
- The exceptionjava.io.PrintWriter getPrintWriter()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |