use of org.dbflute.hook.SqlStringFilter in project dbflute-core by dbflute.
the class TnAbstractEntityDynamicCommand method doFilterExecutedSqlByCallbackFilter.
protected String doFilterExecutedSqlByCallbackFilter(String executedSql) {
final SqlStringFilter sqlStringFilter = getSqlStringFilter();
if (sqlStringFilter != null) {
final BehaviorCommandMeta meta = ResourceContext.behaviorCommand();
final String filteredSql = sqlStringFilter.filterEntityUpdate(meta, executedSql);
return filteredSql != null ? filteredSql : executedSql;
}
return executedSql;
}
use of org.dbflute.hook.SqlStringFilter in project dbflute-core by dbflute.
the class TnAbstractQueryDynamicCommand method filterSqlStringByCallbackFilter.
protected String filterSqlStringByCallbackFilter(String executedSql) {
final SqlStringFilter sqlStringFilter = getSqlStringFilter();
if (sqlStringFilter != null) {
final BehaviorCommandMeta meta = ResourceContext.behaviorCommand();
final String filteredSql = sqlStringFilter.filterQueryUpdate(meta, executedSql);
return filteredSql != null ? filteredSql : executedSql;
}
return executedSql;
}
Aggregations