Package org.jdbi.v3.core.statement
Interface StatementContextListener
Listener interface for the
StatementContext. Each method will be called when specific events with the context happen.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcleanableAdded(StatementContext statementContext, Cleanable cleanable) ACleanableobject was added to this context for cleanup when the context is cleaned.default voidcleanableRemoved(StatementContext statementContext, Cleanable cleanable) ACleanableobject was removed from the context.default voidcontextCleaned(StatementContext statementContext) AStatementContextobject was cleaned.default voidcontextCreated(StatementContext statementContext) A newStatementContextis created.
-
Method Details
-
contextCreated
A newStatementContextis created.- Parameters:
statementContext- TheStatementContextobject that was created. Never null.
-
contextCleaned
AStatementContextobject was cleaned. Implementers should be aware that theStatementContext.close()method can be called multiple times as Statements can be reused.- Parameters:
statementContext- TheStatementContextobject that was cleaned. Never null.
-
cleanableAdded
ACleanableobject was added to this context for cleanup when the context is cleaned.- Parameters:
statementContext- TheStatementContext. Never null.cleanable- TheCleanableobject that should be closed when the context is closed. Never null.
-
cleanableRemoved
ACleanableobject was removed from the context.- Parameters:
statementContext- TheStatementContext. Never null.cleanable- TheCleanableobject that was removed from the context.
-