public class SQLBaseListener extends java.lang.Object implements SQLDetailedListener
SQLBaseListener is a base implementation of the SQLDetailedListener interface
with empty method implementations| Constructor and Description |
|---|
SQLBaseListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(SQLListenerContext context)
Called at the end of a query.
|
void |
exception(SQLListenerContext context)
Called if an exception happens during query building and execution.
|
void |
executed(SQLListenerContext context)
Called at the end of
PreparedStatement execution. |
void |
notifyDelete(RelationalPath<?> entity,
QueryMetadata md)
Notify about a deletion
|
void |
notifyDeletes(RelationalPath<?> entity,
java.util.List<QueryMetadata> batches)
Notify about a batch deletion
|
void |
notifyInsert(RelationalPath<?> entity,
QueryMetadata md,
java.util.List<Path<?>> columns,
java.util.List<Expression<?>> values,
SubQueryExpression<?> subQuery)
Notify about an insertion
|
void |
notifyInserts(RelationalPath<?> entity,
QueryMetadata md,
java.util.List<SQLInsertBatch> batches)
Notify about a batch insertion
|
void |
notifyMerge(RelationalPath<?> entity,
QueryMetadata md,
java.util.List<Path<?>> keys,
java.util.List<Path<?>> columns,
java.util.List<Expression<?>> values,
SubQueryExpression<?> subQuery)
Notify about a merge
|
void |
notifyMerges(RelationalPath<?> entity,
QueryMetadata md,
java.util.List<SQLMergeBatch> batches)
Notify about a batch merge
|
void |
notifyQuery(QueryMetadata md)
Notify about a query
|
void |
notifyUpdate(RelationalPath<?> entity,
QueryMetadata md,
java.util.Map<Path<?>,Expression<?>> updates)
Notify about an update operation
|
void |
notifyUpdates(RelationalPath<?> entity,
java.util.List<SQLUpdateBatch> batches)
Notify about a batch update
|
void |
preExecute(SQLListenerContext context)
Called at the start of
PreparedStatement execution. |
void |
prepared(SQLListenerContext context)
Called at the end of
PreparedStatement preparation. |
void |
prePrepare(SQLListenerContext context)
Called at the start of
PreparedStatement preparation. |
void |
preRender(SQLListenerContext context)
Called at the start of SQL rendering.
|
void |
rendered(SQLListenerContext context)
Called at the end of SQL rendering.
|
void |
start(SQLListenerContext context)
Called at the start of a query.
|
public void start(SQLListenerContext context)
SQLDetailedListenerstart in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void preRender(SQLListenerContext context)
SQLDetailedListenerpreRender in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void rendered(SQLListenerContext context)
SQLDetailedListenerrendered in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void prePrepare(SQLListenerContext context)
SQLDetailedListenerPreparedStatement preparation.prePrepare in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void prepared(SQLListenerContext context)
SQLDetailedListenerPreparedStatement preparation.prepared in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void preExecute(SQLListenerContext context)
SQLDetailedListenerPreparedStatement execution.preExecute in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void executed(SQLListenerContext context)
SQLDetailedListenerPreparedStatement execution.executed in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void exception(SQLListenerContext context)
SQLDetailedListenerexception in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void end(SQLListenerContext context)
SQLDetailedListenerend in interface SQLDetailedListenercontext - a context object that is progressively filled out as the query executespublic void notifyQuery(QueryMetadata md)
SQLListenernotifyQuery in interface SQLListenermd - metadata of the querypublic void notifyDelete(RelationalPath<?> entity, QueryMetadata md)
SQLListenernotifyDelete in interface SQLListenerentity - table to be deleted frommd - metadata of deletionpublic void notifyDeletes(RelationalPath<?> entity, java.util.List<QueryMetadata> batches)
SQLListenernotifyDeletes in interface SQLListenerentity - table to be deleted frombatches - metadata of batchespublic void notifyMerge(RelationalPath<?> entity, QueryMetadata md, java.util.List<Path<?>> keys, java.util.List<Path<?>> columns, java.util.List<Expression<?>> values, SubQueryExpression<?> subQuery)
SQLListenernotifyMerge in interface SQLListenerentity - table to be mergedmd - metadata of mergekeys - key columnscolumns - columns to be updated/insertedvalues - valuessubQuery - optional sub querypublic void notifyMerges(RelationalPath<?> entity, QueryMetadata md, java.util.List<SQLMergeBatch> batches)
SQLListenernotifyMerges in interface SQLListenerentity - table to be mergedmd - metadata of mergebatches - metadata of batchespublic void notifyInsert(RelationalPath<?> entity, QueryMetadata md, java.util.List<Path<?>> columns, java.util.List<Expression<?>> values, SubQueryExpression<?> subQuery)
SQLListenernotifyInsert in interface SQLListenerentity - table to be inserted intomd - metadata of insertioncolumns - columns to be inserted intovalues - values to be inserted intosubQuery - optional sub querypublic void notifyInserts(RelationalPath<?> entity, QueryMetadata md, java.util.List<SQLInsertBatch> batches)
SQLListenernotifyInserts in interface SQLListenerentity - table to be inserted intomd - metadata of insertionbatches - metadata of batchespublic void notifyUpdate(RelationalPath<?> entity, QueryMetadata md, java.util.Map<Path<?>,Expression<?>> updates)
SQLListenernotifyUpdate in interface SQLListenerentity - table to be updatedmd - metadata of updateupdates - metadata of batchespublic void notifyUpdates(RelationalPath<?> entity, java.util.List<SQLUpdateBatch> batches)
SQLListenernotifyUpdates in interface SQLListenerentity - table to be updatedbatches - metadata of batchesCopyright © 2007–2021 Querydsl. All rights reserved.