File tree Expand file tree Collapse file tree
cayenne/src/main/java/org/apache/cayenne/dba Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import org .apache .cayenne .access .translator .procedure .ProcedureTranslator ;
2727import org .apache .cayenne .access .translator .select .SelectTranslator ;
2828import org .apache .cayenne .access .types .ExtendedTypeMap ;
29- import org .apache .cayenne .map .DataMap ;
3029import org .apache .cayenne .map .DbAttribute ;
3130import org .apache .cayenne .map .DbEntity ;
3231import org .apache .cayenne .map .DbRelationship ;
@@ -304,14 +303,10 @@ default int preferredBindingType(int jdbcType) {
304303 *
305304 * @since 5.0
306305 */
307- default QuotingStrategy getQuotingStrategy (DbEntity entity ) {
308- DataMap dataMap = entity != null ? entity .getDataMap () : null ;
309- return dataMap != null && dataMap .isQuotingSQLIdentifiers () ? getQuotingStrategy () : QuotingStrategy .NONE ;
310- }
306+ QuotingStrategy getQuotingStrategy (DbEntity entity );
311307
312308 /**
313- * Allows the users to get access to the adapter decorated by a given
314- * adapter.
309+ * Allows the users to get access to the adapter decorated by a given adapter.
315310 *
316311 * @since 4.0
317312 */
Original file line number Diff line number Diff line change 3838import org .apache .cayenne .configuration .RuntimeProperties ;
3939import org .apache .cayenne .di .Inject ;
4040import org .apache .cayenne .log .JdbcEventLogger ;
41+ import org .apache .cayenne .map .DataMap ;
4142import org .apache .cayenne .map .DbAttribute ;
4243import org .apache .cayenne .map .DbEntity ;
4344import org .apache .cayenne .map .DbJoin ;
@@ -709,6 +710,12 @@ public QuotingStrategy getQuotingStrategy() {
709710 return quotingStrategy ;
710711 }
711712
713+ @ Override
714+ public QuotingStrategy getQuotingStrategy (DbEntity entity ) {
715+ DataMap dataMap = entity != null ? entity .getDataMap () : null ;
716+ return dataMap != null && dataMap .isQuotingSQLIdentifiers () ? quotingStrategy : QuotingStrategy .NONE ;
717+ }
718+
712719 /**
713720 * Simply returns this, as JdbcAdapter is not a wrapper.
714721 *
You can’t perform that action at this time.
0 commit comments