|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.db.LoggerDBListener
public class LoggerDBListener
provides convenient logging capabilities for Database objects
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.db.DBStoreListener |
|---|
DBStoreListener.Adapter, DBStoreListener.StoreUpdateAdapter |
| Constructor Summary | |
|---|---|
LoggerDBListener(Logger logger)
|
|
| Method Summary | |
|---|---|
void |
databaseAccessed(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter,
long timeTaken)
called upon successfully reading from the database (guaranteed to be called from within the transaction). |
void |
databaseError(DBClassStore<?> dbstore,
Throwable t,
DBClassStore.DBMethod method,
Object parameter)
called when an error occurred while accessing the database (not guaranteed to be called from within the transaction) |
void |
databaseUpdated(DBUpdateEvent event,
long timeTaken)
called upon successful insert, delete or update; note that the update becomes permanent ONLY if the current transaction successfully commits. |
void |
fetchCall(DBClassStore<?> dbstore,
DBEnumeration<?> e,
String method,
long timeTaken)
called when a method is called on a DBEnumeration that is returned by the store |
void |
prepareDatabaseCall(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter)
called before the given method is delegated to the embedded store |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggerDBListener(Logger logger)
| Method Detail |
|---|
public void prepareDatabaseCall(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter)
throws DBVetoException
DBStoreListener
prepareDatabaseCall in interface DBStoreListenerDBVetoException - if a listener seeks to prevent the call to the embedded store
public void databaseUpdated(DBUpdateEvent event,
long timeTaken)
DBStoreListener
databaseUpdated in interface DBStoreListenerTransactionListener,
DatabaseChangeMonitor,
DBVersionedUpdateEvent,
Database.setVersioningEnabled(Class, boolean)
public void databaseAccessed(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter,
long timeTaken)
DBStoreListenerDBStoreListener.databaseUpdated(DBUpdateEvent, long)
is called.
databaseAccessed in interface DBStoreListener
public void databaseError(DBClassStore<?> dbstore,
Throwable t,
DBClassStore.DBMethod method,
Object parameter)
DBStoreListener
databaseError in interface DBStoreListener
public void fetchCall(DBClassStore<?> dbstore,
DBEnumeration<?> e,
String method,
long timeTaken)
DBStoreListener
fetchCall in interface DBStoreListenerDBClassStore.fetch(com.antelmann.util.Filter),
DBClassStore.fetchStubs(com.antelmann.util.Filter),
DBEnumeration
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||